/* Variables */
:root {
    --primary-teal: #005d6e;
    --primary-teal-dark: #004653;
    --accent-gold: #d0923f;
    --bg-cream: #f9f8f4;
    --text-dark: #2c3e50;
    --border-color: #e5e5e5;
}

/* Global Rules */
body {
    overflow-y: hidden;
}

/* Typography Custom Classes */
.font-montserrat {
    font-family: 'Montserrat', sans-serif !important;
}

.font-serif {
    font-family: 'Times New Roman', Times, serif !important;
}

.font-opensans {
    font-family: 'Open Sans', sans-serif !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

h1,
.h1 {
    font-size: 42px !important;
}

h2,
.h2 {
    font-size: 34px !important;
}

h3,
.h3 {
    font-size: 28px !important;
}

h4,
.h4 {
    font-size: 24px !important;
}

h5,
.h5 {
    font-size: 20px !important;
}

h6,
.h6 {
    font-size: 17px !important;
}

p {
    font-size: 16px !important;
    line-height: 1.5;
}

.fs-4 {
    font-size: 26px !important;
}

.fs-5 {
    font-size: 22px !important;
}

.fs-6 {
    font-size: 18px !important;
}

.fs-7 {
    font-size: 16px !important;
}

.fs-8 {
    font-size: 14px !important;
}

html,
body {
    overflow-x: hidden;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
}

/* Colors */
.text-teal {
    color: var(--primary-teal) !important;
}

.bg-teal {
    background-color: var(--primary-teal) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.icon-bottom {
    font-size: 20px;
}

.bg-gold {
    background-color: var(--accent-gold) !important;
}

.bg-light-cream {
    background-color: var(--bg-cream) !important;
}

.btn-teal {
    background-color: var(--primary-teal);
    color: white;
    border: 1px solid var(--primary-teal);
    transition: all 0.3s ease;
}

.btn-teal:hover {
    background-color: var(--primary-teal-dark);
    color: white;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #b87d32;
    color: white;
}

/* Header & Nav */


.custom-nav .nav-link {
    color: var(--primary-teal);
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif !important;
}

.custom-nav .nav-link:hover,
.custom-nav .nav-link.active {
    color: var(--primary-teal);
    border-bottom: 2px solid var(--primary-teal);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
}

/* Core Values in Hero */
.value-item img {
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.value-item:hover img {
    transform: translateY(-5px);
}

/* Fundraiser Section */
.section-title-line::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

.donor-card {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
}

.w-45 {
    width: 47%;
}

/* Timeline */
.timeline-item {
    z-index: 2;
}


.icon-circle {
    transition: all 0.3s ease;
}

.timeline-item:hover .icon-circle {
    transform: scale(1.1);
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
}

/* Programmes Cards */
.programme-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color) !important;
}

.programme-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-teal) !important;
}

.programme-card img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.programme-card:hover img {
    transform: scale(1.05);
}

.img-wrapper {
    overflow: hidden;
}

.programme-card h6 {
    font-size: 17px !important;
    font-weight: 700 !important;
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-teal) !important;
    color: white !important;
    border-color: var(--primary-teal) !important;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .donor-card {
        margin-top: 0 !important;
    }

    .timeline-wrapper {
        padding-bottom: 20px;
    }

    .navbar {
        position: static !important;
    }

    .navbar-collapse {
        background-color: white;
        padding: 16px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        width: auto;
        z-index: 1000;
        border: 1px solid var(--border-color);
        margin-top: 10px;
    }
}

/* Hover dropdowns for desktop */
@media (min-width: 1200px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Extracted Semantic Classes */
.logo-img {
    max-height: 100px;
    object-fit: contain;
}

.custom-dropdown-menu {
    border-top-color: #dee2e600 !important;
}

.custom-dropdown-menu .dropdown-item {
    font-size: 15px;
    font-weight: 700 !important;
}

.hero-bg {
    background: url('../images/banner.png') right center/cover no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 40%, rgba(255, 255, 255, 0) 62%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fundraiser-card-left {
    background-color: #fcfbf7;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.fundraiser-title {
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

.stat-label {
    font-size: 13px;
    letter-spacing: 0.5px;
}

.progress-track {
    height: 14px;
    background-color: #eadecd;
}

/* General utility replacements */
.text-dark {
    color: var(--text-dark) !important;
}

.text-teal {
    color: var(--primary-teal) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.text-teal-dark {
    color: var(--primary-teal-dark) !important;
}

/* Component Typography */


.hero-content p {
    font-size: 22px !important;
    font-weight: 500 !important;
}

.hero-content h1 {
    font-weight: 800 !important;
    font-size: 65px !important;
}

@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 50px !important;
    }
}

@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 44px !important;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 36px !important;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 30px !important;
    }
}

.stat-box h2 {
    font-weight: 600 !important;
}

.fundraiser-card-left p {
    font-weight: 500 !important;
}

.timeline-item p,
.programme-card p {
    font-size: 16px !important;
}

.text-teal-dark {
    color: var(--primary-teal-dark) !important;
}

.text-dark-gray {
    color: #333 !important;
}

.donor-subtitle {
    letter-spacing: 0.5px;
    font-size: 16px;
    font-weight: 500;
}

.donor-title {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700 !important;
    font-size: 40px;
}

.donor-text {
    font-size: 17px;
    color: #f0f0f0 !important;
}

.donor-divider {
    border-top: 1px solid var(--accent-gold);
    opacity: 0.6;
    margin: 24px 0;
}

.donor-payment-text {
    font-size: 16px;
}

.pledge-box-outline {
    border: 1px solid var(--accent-gold);
    flex: 1;
    min-width: 140px;
}

.pledge-period {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.donor-footer-text {
    font-size: 16px;
    color: #f0f0f0 !important;
    font-weight: 500;
}

.timeline-card {
    background: radial-gradient(circle, #fdfcf9 0%, #f4efe6 100%);
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.timeline-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.timeline-title-line {
    height: 2px;
    width: 70px;
    background-color: var(--accent-gold);
}

.timeline-line {
    top: 45px;
    left: 10%;
    width: 80% !important;
    z-index: 0;
    border-top: 3px dashed var(--accent-gold);
    opacity: 0.8;
}

.timeline-line::before,
.timeline-line::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 50px;
    border-top: 3px solid var(--accent-gold);
}

.timeline-line::before {
    right: 100%;
    margin-right: 70px;
}

.timeline-line::after {
    left: 100%;
    margin-left: 55px;
}

.icon-circle {
    width: 90px;
    height: 90px;
    border: none !important;
    z-index: 2;
    transition: all 0.3s ease;
}

.icon-circle i {
    font-size: 38px;
}

.volunteer-icon-wrapper {
    margin-bottom: -1px;
}

.bg-banner-cream {
    background-color: #fcfbf7;
}

.donate-banner-card {
    background: url('../images/donate-bg.png') center/cover no-repeat, #fdfcf9;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.donate-divider {
    position: absolute;
    right: 0;
    top: 5%;
    height: 90%;
    border-right: 1px solid var(--accent-gold);
    opacity: 0.4;
}

.fonate-title {
    font-size: 35px !important;
    font-weight: 800 !important;
}


.bank-text .text-uppercase {
    font-weight: 700 !important;
}

.reference-text .text-uppercase {
    font-weight: 700 !important;
}

.bank-text h5 {
    font-weight: 700 !important;
}

.reference-text h5 {
    font-weight: 700 !important;
}

.footer-left-text h6 {
    font-family: "Times New Roman", Times, serif !important;
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: 800;
}

.footer-gradient {
    background: linear-gradient(135deg, #fcfbf7 0%, #f3eee3 100%);
}

.icon-lg {
    width: 80px;
    height: 80px;
}

.banner-heart-icon {
    top: 0px;
    margin-top: -5px;
}

.social-icon-btn {
    width: 25px;
    height: 25px;
}

.footer-calligraphy {
    object-fit: contain;
    max-width: 250px;
}

.contact-link-text {
    font-size: 16px !important;
}

@media (min-width: 1200px) and (max-width: 1640px) {
    .custom-nav .nav-link {
        padding: 8px 10px !important;
        font-size: 10px;
    }

    .logo-img {
        max-height: 80px;
    }

    .btn-teal {
        font-size: 13px;
    }
}

/* Responsive Stat Box Borders */
@media (min-width: 768px) {
    .middle-stat-box {
        border-left: 1px solid rgba(108, 117, 125, 0.25);
        border-right: 1px solid rgba(108, 117, 125, 0.25);
    }
}

@media (max-width: 767px) {
    .middle-stat-box {
        border-top: 1px solid rgba(108, 117, 125, 0.25);
        border-bottom: 1px solid rgba(108, 117, 125, 0.25);
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .icon-bottom {
        font-size: 18px;
    }

    .hero-overlay {
        background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 63%, rgba(255, 255, 255, 0) 100%);
    }

    .hero-content p {
        font-size: 17px !important;
    }

    .pledge-box {
        flex-direction: column;
        text-align: center;
    }

    .core-values .value-item {
        flex: 0 0 calc(50% - 0.75rem) !important;
        max-width: calc(50% - 0.75rem);
    }

    .core-values .value-item:nth-child(3) {
        border-left: 0 !important;
    }
}