/* --- General Styles --- */
body {
    font-family: 'Heebo', sans-serif;
}

/* =========================================
   1. GLOBAL SETTINGS
   ========================================= */
html,
body {
    overflow-x: hidden;
    /* Prevents horizontal scrollbar */
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Pushes content down so it doesn't hide behind the fixed header. */
body {
    padding-top: 140px;
}

/* =========================================
   2. HEADER SECTION (Container)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1020;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    /* Spacing Fixes */
    padding-top: 15px;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

/* =========================================
   3. TOP ROW (Logo & Donate Button)
   ========================================= */
.flex-align {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
}

.logo {
    height: 60px;
    width: auto;
}

.btn {
    font-size: 16px;
    font-weight: 700;
    border-radius: 20px;
    padding: 8px 20px;
}

.btn-dark {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

/* =========================================
   4. NAVBAR STYLING
   ========================================= */
.header .navbar-default {
    background-color: #2b6cb0;
    border-color: #2a4365;
    border: none !important;
    margin-bottom: 0 !important;
    min-height: 50px;
    border-radius: 0 !important;
}

/* Link Styling */
.navbar-default .navbar-nav>li>a {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 20px;
    line-height: 20px;
}

/* Hover Effects */
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus,
.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
    color: #ffffff;
    background-color: #4299e1;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.dropdown-menu>li>a {
    font-weight: 500;
    color: #333;
    padding: 10px 20px;
}

/* Center Nav on Desktop */
@media (min-width: 768px) {
    .navbar-nav.center-nav {
        float: none;
        margin: 0 auto;
        display: inline-block;
    }

    .navbar-default .container {
        text-align: center;
    }
}

/* =========================================
   5. MOBILE RESPONSIVENESS (The Fix)
   ========================================= */
@media (max-width: 767px) {

    /* --- A. Fix Top Row (Logo & Donate on one line) --- */
    .flex-align {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* Forces them side-by-side */
        justify-content: space-between !important;
        padding-bottom: 5px;
    }

    /* Resize columns to fit content */
    .header .col-xs-6 {
        width: auto !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Make logo smaller */
    .logo {
        height: 40px !important;
    }

    /* Make button smaller */
    .btn {
        font-size: 13px !important;
        padding: 6px 12px !important;
        margin-top: 0;
    }

    /* --- B. Fix Navbar (Hamburger & Collapsing) --- */

    /* Make Hamburger Lines White */
    .navbar-default .navbar-toggle .icon-bar {
        background-color: #fff;
    }

    .navbar-default .navbar-toggle {
        border-color: transparent;
        margin-right: 0;
    }

    .navbar-default .navbar-toggle:hover,
    .navbar-default .navbar-toggle:focus {
        background-color: #4299e1;
    }

    /* Navbar alignment fixes */
    .navbar-header {
        text-align: right;
        /* Puts hamburger on the right */
    }

    /* Collapsed Menu Styling */
    .navbar-nav.center-nav {
        margin: 0;
        text-align: left;
        /* Align links to left in menu */
    }

    .navbar-default .navbar-nav .open .dropdown-menu>li>a {
        color: #fff;
        /* White text inside mobile dropdown */
        padding: 10px 25px;
    }

    /* Reduce body padding for smaller header */
    body {
        padding-top: 110px !important;
    }
}


/* --- Who Are We Page: Hero Banner --- */

.who-are-we-hero {
    position: relative;
    height: 80vh;
    /* 80% of the viewport height, adjust as needed */
    background-image: url('whoareweimage2.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligns content to the left */
    color: #ffffff;
    text-align: left;
}

/* This creates the dark gradient from the left */
.who-are-we-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right,
            rgba(26, 32, 44, 0.95) 30%,
            /* Darker overlay on the left */
            rgba(43, 108, 176, 0.5) 70%,
            /* Fades to a stronger blue tint */
            transparent 100%
            /* Fully transparent on the right */
        );
    z-index: 1;
}

/* Ensures the text and button are on top of the overlay */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding-left: 5%;
    /* Adds some space from the left edge */
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 300;
    /* Lighter weight for the first line */
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 strong {
    font-weight: 800;
    /* Bolder weight for the second line */
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Custom button style for this section */
.btn-outline-light {
    color: #ffffff;
    background-color: transparent;
    border: 2px solid #ffffff;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    color: #1A202C;
    /* Dark text on hover */
    background-color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .who-are-we-hero {
        height: 60vh;
        justify-content: center;
        /* Center content on mobile */
        text-align: center;
    }

    .hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-content h1 {
        font-size: 38px;
    }
}

/* --- The Proud Beginning Section --- */

.proud-beginning-section {
    padding: 80px 0;
    font-family: 'Heebo', sans-serif;
    /* Applying the Heebo font */
    background-color: #f8f9fa;
    /* A light, clean background */
}

.proud-beginning-section .text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
    /* Ensure text is above images if they overlap */
}

.proud-beginning-section h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    color: #2b6cb0;
    /* Using your blue theme color */
    margin-bottom: 30px;
}

.proud-beginning-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5em;
    /* Spacing between paragraphs */
}

.proud-beginning-section .image-column {
    position: relative;
    /* Establishes a positioning context for the images */
    min-height: 600px;
    /* Give the column height so images have space */
}

.story-image {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 80%;
    /* Make images slightly smaller than the column */
    position: absolute;
    /* Allows for overlapping and precise placement */
    transition: all 0.3s ease;
}

.story-image:hover {
    transform: scale(1.05) rotate(0deg) !important;
    /* Enlarge and straighten on hover */
    z-index: 10;
    /* Bring hovered image to the front */
}

/* Playful positioning for the left images */
.left-images .story-image:nth-child(1) {
    top: 2%;
    left: 15%;
    transform: rotate(-10deg);
}

.left-images .story-image:nth-child(2) {
    top: 35%;
    left: -10%;
    transform: rotate(8deg);
}

.left-images .story-image:nth-child(3) {
    top: 70%;
    left: 10%;
    transform: rotate(-5deg);
}

/* Playful positioning for the right images */
.right-images .story-image:nth-child(1) {
    top: 15%;
    right: 5%;
    transform: rotate(7deg);
}

.right-images .story-image:nth-child(2) {
    top: 50%;
    right: -5%;
    transform: rotate(-10deg);
}


/* Responsive adjustments for mobile */
@media (max-width: 991px) {
    .proud-beginning-section .image-column {
        display: none;
        /* Hide the complex image columns on mobile for a cleaner look */
    }
}

/* --- The Founder Section --- */

.founder-section {
    padding: 80px 0 0 0;
    /* Padding only on top to space it from content above */
    /* Removed background-color to prevent the unwanted gray space */
}

.founder-section .section-heading {
    font-weight: 800;
    font-size: 36px;
    color: #2b6cb0;
    /* Changed title color to blue */
    margin-bottom: 40px;
}

/* This is the white box */
.founder-box {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    padding: 40px;
    position: relative;
    z-index: 10;
    margin-bottom: -120px;
    /* Negative margin pulls the banner up behind the box */
}

/* This rule vertically centers the image and text columns */
.founder-box .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* Allows columns to stack on mobile */
}

.founder-image {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
    /* Helps with margin auto */
    margin: 0 auto;
    /* Centers the image if it's smaller than the column */
}

.founder-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Removed height: 100% as flexbox handles alignment */
}

.founder-text h3 {
    font-weight: 700;
    font-size: 28px;
    color: #2b6cb0;
}

.founder-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.founder-text h4 {
    margin-top: 20px;
    font-weight: 800;
    font-size: 22px;
    color: #000;
}

.founder-text .founder-role {
    font-size: 16px;
    color: #555;
    font-style: italic;
}

/* This is the new full-width background image banner */
.founder-background-banner {
    height: 450px;
    /* You can adjust the height of the banner */
    background-image: url('whoareweimage7.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 150px;
    /* Adds space at the top for the overlapping box */
}

/* This adds the stronger blue tint to the banner */
.founder-background-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(43, 108, 176, 0.6);
    /* Stronger blue tint */
}


/* Responsive adjustments for mobile */
@media (max-width: 991px) {
    .founder-box {
        margin-bottom: -80px;
        /* Adjust overlap for mobile */
    }

    .founder-image {
        margin-bottom: 30px;
    }

    .founder-text {
        text-align: center;
    }

    .founder-background-banner {
        padding-top: 120px;
    }
}


/* --- The Team Section --- */

.team-section {
    padding: 80px 0;
    background-color: #2b6cb0;
    /* The blue theme background */
}

.team-section .section-title {
    text-align: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 40px;
}

.trustee-yap {
    text-align: center;
    color: #ffffff;
    font-size: 20px;
}

.team-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    /* For positioning the plus button */
    margin-bottom: 30px;
}

.team-card img {
    width: 100%;
    height: auto;
}

.team-info {
    padding: 25px 15px;
}

.team-info h3 {
    margin-top: 0;
    font-weight: 700;
    color: #2b6cb0;
    /* Blue text */
}

.team-info p {
    color: #555;
    font-size: 16px;
    margin-bottom: 0;
}

/* Plus Button */
.plus-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: #2b6cb0;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.plus-btn:hover {
    background-color: #4299e1;
    transform: scale(1.1);
}

/* Learn More Button */
.learn-more-btn {
    margin-top: 15px;
    background-color: #2b6cb0;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

.learn-more-btn:hover {
    background-color: #2a4365;
}


/* Members List */
.members-title {
    margin-top: 50px;
}

.members-list {
    list-style: none;
    padding: 0;
    text-align: center;
    color: #e2e8f0;
    font-size: 18px;
}

.members-list li {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Modal Styling */
.modal-header {
    background-color: #2b6cb0;
    color: white;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
}

.modal-title {
    font-weight: 700;
}

.modal-role {
    font-size: 14px;
    opacity: 0.9;
}

/* Styling for the new icon link in the modal */
.modal-social-container {
    text-align: center;
    margin-top: 20px;
}

.social-icon-link img {
    width: 40px;
    /* Adjust size as needed */
    height: 40px;
    transition: transform 0.2s ease-in-out;
}

.social-icon-link:hover img {
    transform: scale(1.1);
}

/* --- Our Philosophy Section --- */

#Our-Philosophy {
    padding: 80px 0;
    background-color: #ffffff;
}

#Our-Philosophy .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.philosophy-title {
    font-weight: 800;
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
}

.philosophy-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Accordion styles remain the same below */

.panel-group {
    margin-bottom: 0;
}

.panel-group .panel {
    border-radius: 10px;
    box-shadow: none;
    border: none;
    margin-bottom: 15px;
}

.panel-group .panel-heading {
    padding: 0;
    border-radius: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e7e7e7;
}

.panel-group .panel-heading a {
    display: block;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    color: #2b6cb0;
    transition: color 0.3s ease;
}

.panel-group .panel-heading a.visited {
    color: #000000;
}

.panel-group .panel-heading a:not(.collapsed) {
    color: #000000;
}

.panel-heading .caret {
    display: none;
}

.accordion-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 14px;
    transition: transform 0.3s ease;
}

.panel-group .panel-heading a:not(.collapsed) .accordion-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.panel-group .panel-body {
    padding: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    border-top: 1px solid #e7e7e7;
}

.Philosophy-yap {
    text-align: center;
    /* Centers the text on the page */
    max-width: 800px;
    /* Constrains the width for better readability */
    margin: 0 auto 60px auto;
    /* Centers the container and adds space below it */
}

.Philosophy-yap h2 {
    /* Assuming the text is an h2, adjust if it's a <p> tag */
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: #555;
    /* A soft, dark gray color */
    font-style: italic;
    /* Adds a nice touch for an introductory quote or statement */
}

.philosophy-title {
    color: #2b6cb0;
}

/* --- Achievements Section --- */

.achievements-section {
    padding-bottom: 80px;
    background-color: #2b6cb0;
    /* Blue background for the section below the banner */
}

/* Title Banner Styling */
.achievements-title-banner {
    background-image: url('whoareweimage9.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px 0;
    text-align: center;
}

.achievements-title-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(43, 108, 176, 0.6);
    /* Blue tint */
}

.achievements-title-banner h1 {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 48px;
    font-weight: 800;
    margin: 0;
}

/* Container for the tabs below the banner */
.achievements-container {
    padding-top: 40px;
}

/* Custom Tab Styling */
.achievements-tabs {
    border-bottom: 2px solid #4a5568;
    /* Darker blue border */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.achievements-tabs>li {
    margin-bottom: -2px;
}

.achievements-tabs>li>a {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    /* Light text for inactive tabs */
    border: none;
    border-bottom: 2px solid transparent;
    padding: 15px 20px;
    transition: all 0.3s ease;
    margin: 0 5px 10px 5px;
    border-radius: 5px 5px 0 0;
    text-transform: uppercase;
}

.achievements-tabs>li>a:hover {
    background-color: #4299e1;
    color: #ffffff;
    border-bottom-color: #63b3ed;
}

.achievements-tabs>li.active>a,
.achievements-tabs>li.active>a:hover,
.achievements-tabs>li.active>a:focus {
    color: #2b6cb0;
    background-color: #ffffff;
    border: none;
    border-bottom: 2px solid #ffffff;
}

/* Tab Content Styling */
.tab-content {
    background-color: #ffffff;
    padding: 40px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.achievement-writeup {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-writeup h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2b6cb0;
    margin-top: 0;
    margin-bottom: 15px;
}

.achievement-writeup p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.image-gallery {
    padding-left: 20px;
}

.gallery-img {
    border-radius: 10px;
    margin-bottom: 15px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* --- Image Modal (Lightbox) Styling --- */
/* The problematic 'display: flex' rule has been REMOVED */
#imageModal .modal-dialog {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    /* Using standard Bootstrap margin for centering */
}

#imageModal .modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
}

#imageModal .modal-body {
    padding: 0;
}

.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#imageModal .close {
    color: #ffffff;
    opacity: 0.9;
    font-size: 40px;
    position: absolute;
    top: -35px;
    right: 0;
    text-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .achievement-writeup {
        margin-bottom: 30px;
        text-align: center;
    }

    .image-gallery {
        padding-left: 0;
    }
}

/* --- Our History Section General --- */
/* General Font and Section Styling */
#our-history-section {
    font-family: 'Heebo', sans-serif;
    background-color: #f7fafc;
    padding: 40px 0;
    /* overflow-x: hidden; REMOVED to prevent sticky breakage */
}

/* --- 1. FLEXBOX SETUP (Crucial for Sticky) --- */
.display-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* Ensures sidebar col is as tall as content col */
}

/* --- 2. SIDEBAR COLUMN --- */
.sidebar-container {
    background-color: #fff;
    border-right: 1px solid #e2e8f0;
    z-index: 10;
}

/* --- 3. THE STICKY ELEMENT --- */
.sticky-sidebar {
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 50px;
    /* Distance from top of browser window */
    padding: 20px 0;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
}

/* Sidebar Link Styling */
.sidebar-title {
    color: #2b6cb0;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 15px;
}

.nav-pills>li>a {
    border-radius: 4px;
    color: #4a5568;
    transition: all 0.3s;
    font-weight: 600;
}

.nav-pills>li.active>a,
.nav-pills>li.active>a:focus,
.nav-pills>li.active>a:hover {
    background-color: #2b6cb0;
    color: #fff;
}

/* --- 4. TIMELINE STYLING --- */
.timeline-wrapper {
    padding: 20px 40px;
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* The Central Vertical Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #cbd5e0;
    transform: translateX(-50%);
    z-index: 0;
}

/* Year Headers in the timeline */
.timeline-year-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 50px 0 30px 0;
    clear: both;
}

.timeline-year-label {
    background-color: #2b6cb0;
    color: white;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(43, 108, 176, 0.3);
}

/* Milestone Item Container */
.milestone-item {
    position: relative;
    width: 50%;
    padding: 15px 40px;
    /* Adjusted padding for better fit */
    box-sizing: border-box;
    clear: both;
}

/* Alternating Sides */
.milestone-item.left {
    float: left;
    text-align: right;
}

.milestone-item.right {
    float: right;
    text-align: left;
    margin-top: 40px;
    /* Offset for staggering effect */
}

/* The Blue Circle (Dot) on the line */
.milestone-dot {
    position: absolute;
    top: 50%;
    /* Center dot vertically relative to card */
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #2b6cb0;
    border: 4px solid #ebf8ff;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 2px #2b6cb0;
}

.milestone-item.left .milestone-dot {
    right: -10px;
}

.milestone-item.right .milestone-dot {
    left: -10px;
}

/* The Content Box (Card) */
.milestone-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 5px solid #2b6cb0;
    transition: transform 0.3s ease;
    display: flex;
    /* Flex to align image and text */
    align-items: center;
    gap: 15px;
}

/* Reverse flex direction for left items to put image on outside */
.milestone-item.left .milestone-content {
    flex-direction: row-reverse;
}

.milestone-content:hover {
    transform: translateY(-5px);
}

/* Image Styling - Uniform Squares */
.milestone-img {
    width: 100px;
    height: 100px;
    /* Fixed height for uniformity */
    object-fit: cover;
    /* Ensures image covers square without stretching */
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    /* Prevents image from shrinking */
}

.milestone-info {
    flex-grow: 1;
}

.milestone-date {
    font-size: 14px;
    font-weight: 800;
    color: #2b6cb0;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.milestone-text {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    margin: 0;
}

/* Helper to clear floats */
.clearfix::after,
.clearfix::before {
    content: "";
    clear: both;
    display: table;
}

/* Global body fix */
body,
html {
    overflow-x: visible !important;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .milestone-item {
        width: 100%;
        float: none;
        padding-left: 50px;
        padding-right: 10px;
        text-align: left;
    }

    .milestone-item.right {
        margin-top: 0;
    }

    .milestone-item.left .milestone-content {
        flex-direction: row;
        /* Reset flex direction for mobile */
    }

    .milestone-item.left .milestone-dot,
    .milestone-item.right .milestone-dot {
        left: 10px;
        right: auto;
    }

    /* Hide sidebar on mobile to save space */
    .sidebar-container {
        display: none;
    }

    .col-xs-9 {
        width: 100%;
        padding: 0 15px;
    }
}



/* --- Goals Section General --- */
#Goals-Section {
    font-family: 'Heebo', sans-serif;
    width: 100%;
    /* No overflow hidden here, to allow the card to float nicely */
}

/* --- NEW: Floating Intro Card Styles --- */
.goals-intro-wrapper {
    position: relative;
    z-index: 20;
    /* High z-index to stay on top of the blue background */
    margin-bottom: -80px;
    /* This pulls the card DOWN into the blue section */
    pointer-events: none;
    /* Allows clicking through the empty sides if needed */
}

.intro-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px 30px;
    padding-top: 50px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    /* Deep, soft shadow */
    pointer-events: auto;
    /* Re-enable clicking on the card itself */
}

.intro-title {
    font-weight: 800;
    font-size: 36px;
    color: #000;
    /* Bold Black */
    margin-top: 0;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Goal Blocks --- */
.goal-block {
    padding: 60px 0;
    position: relative;
}

/* ADJUSTMENT: The first blue block needs extra padding on top because the card overlaps it */
.first-block {
    padding-top: 140px;
}

/* Background Colors */
.blue-bg {
    background: linear-gradient(135deg, #2b6cb0 0%, #4299e1 100%);
    color: white;
}

.white-bg {
    background-color: #ffffff;
    color: #333;
}

/* Titles */
.goal-title {
    text-align: center;
    font-weight: 800;
    margin-bottom: 40px;
    font-size: 32px;
    letter-spacing: 0.5px;
}

.white-text {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blue-text {
    color: #2b6cb0;
}

/* Goal List Container */
.goal-list {
    max-width: 900px;
    margin: 0 auto;
}

/* Individual Goal Items */
.goal-item {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 18px 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Setup for JS Animation */
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.6s ease-out;
}

/* Separate transition for the fade-in effect to avoid conflict with hover */
.goal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.goal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Styling for items on the WHITE background */
.item-bordered {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.item-bordered:hover {
    background-color: #ebf8ff;
    border-color: #bee3f8;
}

/* Numbers */
.goal-number {
    font-weight: 900;
    font-size: 20px;
    color: #2b6cb0;
    margin-right: 25px;
    min-width: 35px;
    line-height: 1.2;
}

/* Text Content */
.goal-text {
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
    line-height: 1.5;
}

/* Arrow Styling */
.arrow-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: -40px;
    /* Pulls it down to overlap the next section */
    position: relative;
    z-index: 10;
}

.arrow-down {
    width: 50px;
    height: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .intro-title {
        font-size: 28px;
    }

    .intro-card {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .goal-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .goal-item {
        padding: 15px;
    }

    .first-block {
        padding-top: 100px;
    }

    /* Less padding needed on mobile */
}

/* Animation Class for Intro Card */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}



/* --- Site Footer Existing Styles --- */
.site-footer {
    background-color: #1A202C;
    color: #A0AEC0;
    padding-top: 60px;
    font-size: 15px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-style: italic;
    margin-bottom: 25px;
}

.footer-contact-info p {
    margin-bottom: 10px;
}

.footer-contact-info a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-info a:hover {
    color: #ffffff;
}

.footer-contact-info .glyphicon {
    margin-right: 10px;
    color: #4299e1;
}

.footer-social-icons {
    margin-top: 25px;
}

.footer-social-icons a img {
    height: 32px;
    width: 32px;
    margin-right: 15px;
    opacity: 0.8;
    transition: all 0.2s ease-in-out;
}

.footer-social-icons a:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

.site-footer h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.developer-credit {
    text-align: right;
    font-style: italic;
    color: #A0AEC0;
}

/* Make the name clickable */
#dev-credit-link {
    color: #4299e1;
    /* Light Blue to show it is clickable */
    text-decoration: none;
    border-bottom: 1px dashed #4299e1;
    cursor: pointer;
}

#dev-credit-link:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

.footer-bottom-bar {
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #2D3748;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

/* Responsive adjustments for mobile */
@media (max-width: 991px) {
    .site-footer {
        text-align: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .col-md-2,
    .col-md-3,
    .col-md-4 {
        margin-bottom: 40px;
    }

    .developer-credit {
        text-align: center;
    }
}

/* --- NEW: Modal Popup Styles --- */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    backdrop-filter: blur(2px);
    /* Slight blur effect */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    /* Max width of the popup card */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    font-family: 'Heebo', sans-serif;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header (Blue part) */
.modal-header {
    background-color: #2b6cb0;
    /* Your theme blue */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.close-modal {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #e2e8f0;
}

/* Body (White part) */
.modal-body {
    padding: 25px 20px;
    text-align: center;
    color: #333;
}

.modal-subtitle {
    color: #718096;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-contact-item {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-contact-item a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
}

.modal-contact-item a:hover {
    text-decoration: underline;
}

.modal-contact-item .glyphicon {
    color: #4a5568;
}

/* Instagram Icon Area */
.modal-icon-area {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-insta-logo {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-insta-logo:hover {
    transform: scale(1.1);
}