/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.min-h-screen {
    min-height: 100vh;
}

/* Header Placeholder Adjustments */
#header-placeholder {
    /* Add any specific styling for the header's container if needed */
}

/* General Hidden/Visible States for Animation */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section - Improved Responsive Design */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Adjusted padding-top to create space below the fixed header */
    padding: 120px 20px 80px 20px; /* Top, Right, Bottom, Left padding */
    min-height: 70vh;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    flex: 1;
}

.hero-content h2 {
    /* Reduced font size for h2 */
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #333;
}

.hero-content .subtext {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 30px;
    color: #666;
}

.hero-content .btn { /* Target the button within hero-content */
    display: block; /* Make it a block-level element */
    margin: 0 auto; /* Center it horizontally */
    /* Ensure other button styles are maintained */
    background-color: #28a745; /* Example: Retain Bootstrap success button color */
    border-color: #28a745;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 40%; /* Retain the width from w-40 */
}

.hero-content .btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.hero-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hero Section Responsive */
@media (min-width: 1024px) {
    .hero-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 60px;
    }

    .hero-content {
        text-align: left;
        flex: 1;
        max-width: 50%;
    }
    /* Adjust button alignment for larger screens if hero-content is left-aligned */
    .hero-content .btn {
        margin-left: 0; /* Align button to left if parent text is left */
        margin-right: auto;
    }

    /* If you want the button centered even when text is left on large screens: */
    /*
    .hero-content .btn {
        display: block;
        margin: 0 auto;
    }
    */

    .hero-image {
        flex: 1;
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        /* Adjusted padding-top for smaller screens as well */
        padding: 100px 15px 60px 15px; /* Top, Right, Bottom, Left padding */
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        /* Adjusted padding-top for very small screens */
        padding: 80px 15px 40px 15px; /* Top, Right, Bottom, Left padding */
        gap: 25px;
    }
}

/* Header Navigation Specifics for Alignment */
.main-nav .nav-list {
    display: flex; /* Ensure it's a flex container */
    justify-content: center; /* Center the items horizontally */
    align-items: center; /* Vertically align items */
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

.main-nav .nav-item {
    padding: 0 15px; /* Add some horizontal spacing between items */
    /* Ensure no conflicting properties that would misalign it */
    text-align: center; /* Ensure text within each item is centered if it wraps */
}

/* Service Buttons Section - Enhanced Responsive Design */
.service-buttons-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34db87 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.service-buttons-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.service-buttons-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.service-buttons-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.service-button-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-button-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-button-card:hover::before {
    left: 100%;
}

.service-button-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.icon-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

.service-button-card:hover .icon-container {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15) rotate(5deg);
}

.icon-container svg {
    width: 45px;
    height: 45px;
    fill: white;
}

.service-button-card h3 {
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-button-card .subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    color: white;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Buttons Responsive Design */
@media (max-width: 1200px) {
    .service-buttons-row {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .service-buttons-section {
        padding: 60px 0;
    }
    
    .service-button-card {
        padding: 35px 20px;
        min-height: 260px;
    }
    
    .icon-container {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .icon-container svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .service-buttons-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-button-card {
        padding: 30px 20px;
        min-height: 240px;
    }
    
    .icon-container {
        width: 70px;
        height: 70px;
        margin-bottom: 18px;
    }
    
    .icon-container svg {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .service-buttons-section {
        padding: 50px 0;
    }
    
    .service-buttons-container {
        padding: 0 15px;
    }
    
  .service-button-card {
        padding: 25px 15px;
        min-height: 220px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

/* Partners Scroller - Enhanced Responsive Design */
.partners-scroller-container {
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.partners-scroller {
    display: flex;
    white-space: nowrap;
    animation: scroll-partners 30s linear infinite;
    align-items: center;
}

.partners-scroller:hover {
    animation-play-state: paused;
}

.partners-scroller img {
    height: clamp(60px, 10vw, 80px);
    width: auto;
    margin: 0 clamp(20px, 5vw, 40px);
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
    filter: grayscale(100%);
}

.partners-scroller img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Society Container - Enhanced Responsive Design */
.society-container.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.society-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.society-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 50px 20px;
    background-color: #eef4f8;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.society-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.society-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.info-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #34495e;
    margin-bottom: 15px;
}

.info-box p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #7f8c8d;
    line-height: 1.8;
}

.society-content-partners {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.society-content-partners h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #2c3e50;
    margin-bottom: 20px;
}

.society-info-partners h4 {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Society Container Responsive */
@media (max-width: 768px) {
    .society-content,
    .society-content-partners {
        padding: 30px 15px;
        margin-bottom: 30px;
    }

    .society-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .society-content,
    .society-content-partners {
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .partners-scroller-container {
        margin-top: 20px;
        padding: 10px 0;
    }
}

/* Service Details Section - Enhanced Responsive */
.service-details-section {
    padding: 80px 0;
    background: white;
}

.service-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.details-header {
    text-align: center;
    margin-bottom: 64px;
}

.header-content {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.header-icon {
    width: clamp(56px, 8vw, 64px);
    height: clamp(56px, 8vw, 64px);
    background: linear-gradient(135deg, #1e40af, #059669);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header-icon svg {
    width: clamp(28px, 4vw, 32px);
    height: clamp(28px, 4vw, 32px);
}

.details-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: bold;
    color: #111827;
}

.title-underline {
    width: 96px;
    height: 4px;
    background: linear-gradient(135deg, #1e40af, #059669);
    margin: 0 auto;
    border-radius: 2px;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.service-card {
    position: relative;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .card-background {
    opacity: 1;
}

.card-content {
    position: relative;
}

.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(56px, 8vw, 64px);
    height: clamp(56px, 8vw, 64px);
    background: linear-gradient(135deg, #1e40af, #059669);
    color: white;
    font-weight: bold;
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    border-radius: 16px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.service-card:hover .card-number {
    transform: scale(1.1);
}

.card-title {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    font-weight: bold;
    color: #111827;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.service-card:hover .card-title {
    color: #1e40af;
}

.card-description {
    color: #6b7280;
    line-height: 1.75;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e40af, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(16px) scale(0.8);
    transition: all 0.3s ease;
}

.service-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0) scale(1);
}