/* style/index-core-services.css */

/* Base Styles for the page content */
.page-index-core-services {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: 0; /* Handled by hero section or shared.css body padding */
}

/* Section common styles */
.page-index-core-services__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-index-core-services__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    position: relative;
}

.page-index-core-services__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #017439;
    margin: 10px auto 0;
}

.page-index-core-services__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-index-core-services__sub-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-index-core-services__text-block p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* Hero Section */
.page-index-core-services__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.page-index-core-services__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
}

.page-index-core-services__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 1;
}

.page-index-core-services__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-index-core-services__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-core-services__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-index-core-services__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-index-core-services__btn-primary,
.page-index-core-services__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-index-core-services__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

.page-index-core-services__btn-primary:hover {
    background-color: #a00707;
    transform: translateY(-3px);
}

.page-index-core-services__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808; /* Use Register/Login button color for consistency */
}

.page-index-core-services__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
}

/* About Section */
.page-index-core-services__about-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for this section */
    color: #ffffff;
}

.page-index-core-services__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-index-core-services__image-wrapper {
    text-align: center;
}

.page-index-core-services__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
}

/* Services Section */
.page-index-core-services__services-section {
    padding: 80px 0;
    background-color: #2a2a2a; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-index-core-services__services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-core-services__service-card {
    background-color: #017439; /* Brand color as background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff; /* Light text for brand color background */
}

.page-index-core-services__service-card:hover {
    transform: translateY(-10px);
}

.page-index-core-services__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-index-core-services__card-title {
    font-size: 1.4em;
    padding: 20px 20px 10px;
    color: #ffffff;
}

.page-index-core-services__card-text {
    padding: 0 20px 20px;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
    color: #f0f0f0;
}

.page-index-core-services__btn-link {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFF00; /* Custom yellow for links on dark background */
    text-decoration: none;
    font-weight: bold;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-index-core-services__btn-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}