
html {
    /* This single line is the modern, preferred way to enable smooth scrolling */
    scroll-behavior: smooth;
}

/* --- CSS for the Back to Top Button Appearance --- */
#backToTopBtn {
    /* display: none; */
     /* Hidden by default, JavaScript will show it */
    position: fixed; /* Fixed position on the screen */
    bottom: 50px; /* Distance from the bottom of the screen */
    right: 30px; /* Distance from the right of the screen */
    z-index: 999; /* Ensures it's on top of other content */
    /* border: 5px solid red; */
    outline: none;
    /* background-color: #333; */
    /* Dark background */
    color: white;
    cursor: pointer;
    /* padding: 15px 20px; */
    border-radius: 50%;
    font-size: 18px;
    /* border: 2px solid #6B4EFF; */
    text-decoration: none; /* If using <a> tag */
    transition: background-color 0.3s; /* Smooth hover effect */
}
/* Custom Properties / Variables (Consistent with previous design) */
:root {
    --purple-accent: #6B4EFF;
    --dark-blue: #002347; /* Darker blue color inferred from the banner text/overlay */
    --white: #ffffff;
    --light-gray-bg: #f5f7fa;
    --dark-text: #333333;
    --medium-text: #555555;
    --soft-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius-lg: 15px;
    --purple-accent: #6B4EFF;
    --dark-text: #333333;
    --medium-text: #666666;
    --light-gray: #f9f9f9;
    --soft-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius-lg: 10px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'system-ui', sans-serif; 
}

body {
    background-color: var(--white);
}

@media (max-width: 576px) {

    #backToTopBtn img {
        width: 40px;
        height: auto;
    }
    .brand-name img{
        width: 100px;
        height: auto;
        margin-left: -20px !important;
    }
}


/* --- Desktop / Normal View (Space Around) --- */

.realestate-navbar .container-fluid {
    display: flex;
    /* KEY CHANGE 1: Use space-around for even spacing */
    justify-content: space-around; 
    align-items: center;
    max-width: 1400px; /* Limit width for large screens */
    margin: 0 auto;
}

/* Logo */
.navbar-brand {
    /* Ensure the logo link itself doesn't have extra margins */
    padding: 0;
}

.navbar-brand img {
    width: 150px;
    height: auto;
}

/* Menu Inline */
.navbar-nav.menu {
    display: flex;
    flex-direction: row;
    gap: 25px;
    /* Remove any default Bootstrap margins that might interfere */
    margin: 0; 
}

.menu .nav-link {
    font-size: 18px;
    font-weight: 500;
    color: #333 !important;
    padding: 0 !important;
}

.menu .nav-link:hover {
    color: #9e10a6 !important;
}

/* Phone */
.contact-info {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #444;
    flex-shrink: 0; /* Prevents phone number from disappearing */
}

/* --- Mobile / Tablet View (Max 768px) - Logo Left, Content Right --- */
@media (max-width: 768px) {
    
    .realestate-navbar .container-fluid {
        /* Set main container to flow horizontally */
        flex-direction: row; 
        flex-wrap: wrap; /* Allow wrapping if content is too wide */
        justify-content: space-between; /* Space out Logo and Right Content Group */
        align-items: flex-start; /* Align contents to the top */
        padding: 10px 15px !important; 
    }
    
    /* 1. Logo (Left Side) */
    .navbar-brand {
        flex-shrink: 0; /* Prevent the logo from shrinking */
        /* Since the phone was moved out of here in the previous step, this is just the logo. */
        width: auto;
        margin: 0;
        padding: 0;
    }

    .navbar-brand img {
        width: 100px; /* Smaller logo */
    }

    /* 2. Content Group (Right Side) */
    /* Create a container for the Menu and Phone to keep them together on the right */
    .navbar-right-mobile {
        display: flex;
        flex-direction: column; /* Stack Menu and Phone vertically on the right */
        align-items: flex-end; /* Align the content within this group to the right */
        width: auto;
        flex-grow: 1; /* Allow it to take up available space */
    }

    /* The HTML doesn't have a dedicated .navbar-right-mobile. 
       We will apply this stacking logic directly to the two right-side elements: Menu and Phone. */
    
    /* Phone Number (Top Right) */
    .contact-info {
        order: 1; /* Place phone first */
        font-size: 14px;
        margin-top: 5px; 
        margin-bottom: 5px;
        /* Ensure it aligns to the far right */
        align-self: flex-end; 
    }

    /* Menu Links (Below Phone Number) */
    .navbar-nav.menu {
        order: 2; /* Place menu second */
        
        /* Force menu items inline/horizontal wrap */
        display: flex;
        flex-direction: row; 
        flex-wrap: wrap; 
        /* justify-content: flex-end; */
         /* Align links to the far right */
        
        width: 100%; /* Take full width to allow centering or right alignment */
        margin-top: 10px;
        margin-left: 0;
        gap: 10px; /* Compact gap */
    }

    .menu .nav-link {
        font-size: 14px; /* Compact font size */
        padding: 3px 6px !important;
        margin: 0;
    }
}

/* Hero Section Styling */
.hero-section {
    /* border: 2px solid red; */
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
    background: url('asset/Gemini_Generated_Image_u41ds2u41ds2u41d.png') no-repeat center center/cover; /* Replace 'hero-bg.jpg' with your image */
    display: flex;
    align-items: center;
    justify-content: center; /* Align content to the left */
    overflow: hidden; /* Important for parallax and ensuring content stays within bounds */
}

/* Background Image Parallax Effect (subtle) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* Inherit the background image */
    background-attachment: fixed; /* Makes the background fixed relative to the viewport */
    z-index: -1; /* Place behind content */
    transform: scale(1.05); /* Slightly enlarge to avoid gaps during scroll */
    filter: brightness(0.7); /* Darken the image for better text contrast */
}

/* Overlay for text readability */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.1); */
    z-index: 0; /* Above the background image, below the content */
}


.hero-title {
    font-size: 3.5em; /* Large title */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
    opacity: 0; /* Start hidden for animation */
    animation: fadeInSlideUp 1s ease-out forwards 0.2s; /* Apply animation */
}




/* Keyframe Animation for Fade In and Slide Up */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        height: 500px;
    }
    .hero-title {
        font-size: 3.5em;
    }
    .hero-subtitle {
        font-size: 1.5em;
    }
    .hero-content {
        margin-left: 5%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 200px;
        justify-content: center; /* Center content on smaller screens */
        text-align: center;
    }
    .hero-content {
        margin-left: 0;
        padding: 0 20px;
        max-width: 90%; /* Allow content to take more width */
    }
    .hero-title {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    .hero-description {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {

    .hero-section {
         height: 200px;
    }
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .hero-description {
        display: none; /* Hide description on very small screens if space is tight */
    }
}



/* --- Our Story Section --- */
.our-story-section {
    padding:  80px 80px;
}

.story-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.story-image-block {
    flex-shrink: 0;
    width: 50%;
    position: relative;
    /* This section contains the overlapping image and plant graphic */
}

.story-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Note: Overlapping effect requires complex CSS or using a single composite image */
}

.story-text-stats {
    flex-grow: 1;
    width: 50%;
}

.story-paragraph {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--medium-text);
    margin-bottom: 30px;
}

/* --- Base Desktop/Tablet/Mobile Inline Structure --- */


.story-text-stats {
    display: flex !important;
    flex-direction: column !important;
}

.story-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}
.story-stat-card {
    flex: 1 !important;
    min-width: 70px !important;
    text-align: center !important;
}

.story-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap; /* keep inline */
    padding-top: 20px;
}

/* FIX: allow shrinking + prevent breaking */
.story-stat-card {
    flex: 1 1 0;          /* allow shrink */
    min-width: 70px;      /* stop wrap */
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* --- Tablet View (up to 768px) --- */
@media (max-width: 768px) {
    .story-stats {
        justify-content: space-evenly;
        gap: 10px;
        padding: 20px 10px;
    }

    .story-stat-card {
        min-width: 60px;       /* IMPORTANT FIX */
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

/* --- Mobile View (up to 480px) --- */
@media (max-width: 480px) {
    .story-stats {
        gap: 5px;
    }

    .story-stat-card {
        min-width: 55px;       /* Ensures inline even on small phones */
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}














/* --- Why Choose Nexus? Section --- */
.why-choose-section {
    padding: 60px 80px 100px;
    background-color: var(--light-gray-bg);
    text-align: center;
}

.section-description {
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--medium-text);
}

.choose-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.choose-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--soft-shadow);
    height: 300px; /* Fixed height for visual consistency */
}

.choose-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.choose-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px;
    color: var(--white);
}

.card-overlay h4 {
    font-size: 1.2rem;
    margin: 0;
}

/* Featured Card (Rightmost card with text content) */
.featured-card {
    background: var(--dark-blue); /* Dark background for featured text */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.featured-content h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.featured-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.explore-btn {
    display: inline-block;
    background: var(--purple-accent);
    color: var(--white);
    text-decoration: none;
    margin-bottom: 10px;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.explore-btn:hover {
    background: var(--light-purple);
}

/* --- Media Queries for basic responsiveness --- */
@media (max-width: 1200px) {
    .choose-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }
    .featured-card {
        grid-column: 1 / -1; /* Make featured card full width */
    }
}

@media (max-width: 768px) {
    .about-hero-banner { height: 400px; }
    .banner-title { font-size: 3rem; }
    .banner-subtitle { font-size: 1.5rem; }
    
    .our-story-section, .why-choose-section { padding: 40px 20px; }
    .section-heading { font-size: 2rem; }

    .story-content {
        flex-direction: column;
        gap: 30px;
    }
    .story-image-block, .story-text-stats {
        width: 100%;
    }
    .story-stats {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .choose-cards-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

/* --- EXISTING choose-card styles (from previous code) --- */
.choose-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--soft-shadow);
    height: 300px; /* Fixed height for visual consistency */
    /* Add this if you want to make sure hover content aligns properly */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to bottom */
}

.choose-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    /* Ensure image is behind text */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.choose-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px;
    color: var(--white);
    z-index: 2; /* Ensure overlay is above image but below hover-text */
    transition: opacity 0.3s ease; /* For fading out the title on hover */
}

.card-overlay h4 {
    font-size: 1.2rem;
    margin: 0;
}


/* --- NEW CSS for hover-text-content --- */
/* --- Custom Variables (ensure these are defined in your CSS) --- */
:root {
    --purple-accent: #6B4EFF;
    --dark-blue-card: #0A1F44; /* A specific dark blue for the card background, slightly different from a pure navy */
    --white: #ffffff;
    /* ... other variables ... */
}

/* --- EXISTING choose-card styles (as before) --- */
.choose-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--soft-shadow);
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.choose-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.choose-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px;
    color: var(--white);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.card-overlay h4 {
    font-size: 1.2rem;
    margin: 0;
}


/* --- MODIFIED CSS for hover-text-content --- */
.hover-text-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* --- Styles to match Guaranteed Quality Homes card --- */
    background: var(--dark-blue-card); /* Solid dark blue background */
    color: var(--white); /* White text for all content */
    padding: 30px; /* Adjust padding for better look, matches featured card */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    align-items: flex-start; /* Align content to the left */
    text-align: left; /* Text alignment */
    /* --- End of matching styles --- */

    opacity: 0;
    transform: translateY(100%); /* Start off-screen at the bottom */
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.hover-text-content h4 { /* Add specific styling for the title within hover-text-content */
    color: var(--white);
    font-size: 1.6rem; /* Slightly larger title for impact */
    font-weight: bold; /* Make it bold like the example */
    margin-bottom: 20px;
     /* Space below title */
}

.hover-text-content p {
    font-size: 15px; /* Adjust font size to match example */
    line-height: 1.6; /* Adjust line height for readability */
    margin-bottom: 20px;
     /* Space below paragraph */
    max-width: none; /* Let it fill the width if needed, remove previous max-width */
}

/* --- Style for the Explore button inside hover content --- */
.hover-text-content .explore-btn {
    display: inline-block; /* Ensure it's a block for padding/margin */
    background: var(--purple-accent); /* Solid purple background */
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px; /* Generous padding for the button */
    border-radius: 5px; /* Slightly rounded corners */
    font-weight: bold;
    font-size: 1rem; /* Clear font size */
    transition: background 0.3s;
    border: none; /* Ensure no border */
}

.hover-text-content .explore-btn:hover {
    background: var(--light-purple); /* Lighter purple on hover */
}

/* State on Hover */
.choose-card:hover .card-overlay {
    opacity: 0;
}

.choose-card:hover .hover-text-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Original Featured Card (if you still have it) --- */
.featured-card {
    background: var(--dark-blue-card); /* Consistent dark blue */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    color: var(--white); /* Ensures text inside is white */
}

.featured-content h4 {
    color: var(--white);
    font-size: 1.6rem; /* Match hover title size */
    font-weight: bold;
    margin-bottom: 20px;
}

.featured-content p {
    color: rgba(255, 255, 255, 0.85); /* Slightly less white for body text */
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 60px;
}

/* --- Directors Section --- */
.directors-section {
    padding-bottom: 80px;
}

/* Featured Director (Khondokar) */
.director-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.director-image-wrapper {
    flex-shrink: 0;
    width: 40%;
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: transform 0.3s ease-out;
}

.director-image-wrapper:hover {
    transform: scale(1.02) translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.director-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.director-details {
    flex-grow: 1;
    padding: 20px 0;
}

.director-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.director-title {
    font-size: 1.2rem;
    color: var(--medium-text);
    margin-bottom: 25px;
}

.director-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    padding: 15px 0 0 20px;
    /* Styles to look like the quotation marks in the image */
    border-left: 4px solid var(--purple-accent);
    font-style: italic;
}

/* Supporting Directors Grid */
.supporting-directors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 40px;
}

.director-card {
    text-align: center;
    padding: 10px;
    border-radius: var(--border-radius-lg);
    transition: transform 0.3s ease-out;
}

.director-card:hover {
    transform: translateY(-8px); /* Animation: Card moves up */
}

.director-card-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.director-card-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.director-card:hover img {
    filter: grayscale(0%); /* Animation: Remove grayscale on hover */
    transform: scale(1.05); /* Animation: Subtle zoom on hover */
}

/* Initial state for smaller director images (subtle fade/grayscale) */
.supporting-directors-grid img {
    filter: grayscale(10%);
}

.card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.card-title {
    font-size: 1rem;
    color: var(--medium-text);
}


/* --- Partners Section --- */
.partners-section {
    text-align: center;
    padding: 60px 0 80px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 0;
    border-top: 1px solid #eee; /* Subtle separator line */
    border-bottom: 1px solid #eee;
}

.partner-logo-wrapper {
    max-width: 100px;
    opacity: 0; /* Hidden initially for fade-in animation */
}

.partner-logo-wrapper img {
    width: 100%;
    height: auto;
    filter: grayscale(100%); /* Logos initially desaturated */
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo-wrapper:hover img {
    filter: grayscale(0%); /* Colorize on hover */
    opacity: 1;
}

/* --- Animations (Keyframes) --- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Application */
.logo-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Animation Delays for Staggered Effect */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }


/* --- Media Queries for basic responsiveness --- */
@media (max-width: 992px) {
    .director-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .director-image-wrapper {
        width: 60%;
        max-width: 100%;
    }
    .director-details {
        text-align: center;
    }
    .director-quote {
        border-left: none;
        padding: 15px 0;
    }
}

@media (max-width: 768px) {
    .supporting-directors-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .director-card-image img {
        height: 250px;
    }
    .partners-logos {
        gap: 30px;
        flex-wrap: wrap;
    }
}


/* --- Existing director-card-image styles --- */
.director-card-image {
    position: relative; /* Crucial for positioning the overlay */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.director-card-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* --- Social Icons Overlay Styles --- */
.social-icons-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 78, 255, 0.75); /* Semi-transparent purple background */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Space between icons */
    opacity: 0; /* Hidden by default */
    transform: translateY(100%); /* Start from below the image */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* Smooth transition */
    z-index: 2; /* Ensures it's above the image */
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--white);
    color: var(--purple-accent);
    border-radius: 50%;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    background: var(--dark-text); /* Change background on hover */
    color: var(--white); /* Change icon color on hover */
    transform: translateY(-3px); /* Subtle lift */
}

/* --- Hover State for Director Card Image --- */
.director-card:hover .director-card-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --- Show Social Icons on Director Card Hover --- */
.director-card:hover .social-icons-overlay {
    opacity: 1; /* Make visible */
    transform: translateY(0); /* Slide into place */
}








:root {
    --primary-color: #5d5dff; /* A common accent color for links/icons */
    --light-bg: #f4f6fa; /* Background for the header/contact section */
    --footer-bg: #e6e8f4; /* Background for the footer section */
    --dark-text: #333;
    --light-text: #555;
    --footer-heading-color: #333;
}
/* ----------------------------------------
   2. FOOTER SECTION STYLING
---------------------------------------- */

.main-footer {
    background-color: var(--footer-bg);
    padding: 60px 5%;
    color: var(--light-text);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2.5fr; /* Define column widths */
    gap: 30px;
}

.footer-heading {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--footer-heading-color);
    margin-bottom: 20px;
}

/* Footer Column 1: About/Logo */
.footer-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    /* Basic logo shape from image */
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: transparent;
    position: relative;
}

.footer-description {
    font-size: 0.9em;
    margin-bottom: 20px;
}

/* Social Links Animation */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    /* Animation: Subtle scale and shadow change on hover */
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Links Animation (Columns 2 & 3) */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

/* Animation: Underline slide-in on hover */
.footer-links li a::before {
    content: '\f0da'; /* Font Awesome right arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary-color);
}

.footer-links li a:hover::before {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

/* Office Details (Column 4) */
.office-location {
    margin-bottom: 25px;
}

.office-contact-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.office-contact-item i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}


/* ----------------------------------------
   MEDIA QUERIES (Responsiveness) - UPDATED
---------------------------------------- */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

    /* ... other styles remain the same ... */
}

@media (max-width: 600px) {
    .footer-grid {
        /* CORRECTED: Set grid to 2 equal columns on the smallest screens */
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; /* Reduce gap slightly for smaller screens */
    }

    .footer-about {
        /* To maintain a 2/2 grid, we need to span the largest column (footer-about) 
           across both columns of the grid. It should take the full width of the first row. */
        grid-column: 1 / span 2; 
        order: 4; /* Keep the about section at the bottom (as requested in original CSS) */
        
        /* If you want the 'About' section to remain large but appear in the first row, 
           you would change 'order: 4' to 'order: 1'. */
    }

    .footer-office-details {
        /* Force the contact details to span both columns so it occupies a full row
           at the bottom, ensuring a 2/2/1 layout (2 links, 2 offices, 1 about) */
        grid-column: 1 / span 2;
    }
    
    /* Optional: If you want 2/2/2 layout (2 links, 2 offices, 2 about/social) */
    /* You may need to remove the 'grid-column: 1 / span 2;' from footer-about 
       and re-evaluate the order based on the required layout. */
    
    /* Default flow (without specific grid-column/order) will be:
       Row 1: Sister Concern | Quick Links
       Row 2: Dhaka Office | Gazipur Office (if split)
       Row 3: About (if it spans 2 columns) 
    */
    
    /* By default (no 'order' or 'span' on middle columns), the grid will flow as:
       1. Sister Concern (Col 1) | Quick Links (Col 2) 
       2. Footer About (Col 1) | Footer Office Details (Col 2)
    */

    /* We will stick to the default two-column flow without spanning the office details
       to guarantee the **2/2** result (4 items in a 2x2 grid), with the 'About' section 
       (the widest original column) spanning the bottom: */
    
    /* Final flow with this code:
       Row 1: Sister Concern | Quick Links
       Row 2: Dhaka/Gazipur Office 1 | Dhaka/Gazipur Office 2
       Row 3: Footer About (full width)
    */
    
    /* Since the office details is one combined div, we remove the span from footer-office-details 
       and let it naturally take the next column spot. */

    .footer-office-details {
        /* Remove the spanning to allow 4 columns to flow into 2x2 grid */
    }
}



.footer-links li a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}