/* =============================================
   Child of Hope - Modern NGO Website
   Color Palette: #0F5DA6 (Primary Blue), #F7941D (Orange), #222222 (Dark), #F8FAFC (Light)
   Typography: Poppins (Headings), Inter (Body)
   ============================================= */

:root {
    --primary-blue: #0F5DA6;
    --accent-orange: #F7941D;
    --dark-bg: #222222;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* =============================================
   Base Styles
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
picture,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark-bg);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

/* =============================================
   Navigation
   ============================================= */

#mainNavbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0.5rem 0 !important;
    transition: all 0.3s ease;
}

#mainNavbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Constrain brand logo to avoid large image pushing content off-screen */
.navbar-logo {
    max-height: 64px;
    width: auto;
    display: block;
}

@media (max-width: 576px) {
    .navbar-logo { max-height: 48px; }
}

.brand-icon {
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.btn-donate {
    background: var(--accent-orange);
    color: white !important;
    font-weight: 600;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-donate:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 93, 166, 0.3);
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    animation: heroZoom 15s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 93, 166, 0.45) 0%, rgba(2, 23, 43, 0.65) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-cta {
    font-weight: 600;
    padding: 0.9rem 2rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary.btn-cta {
    background: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    color: white;
}

.btn-primary.btn-cta:hover {
    background: transparent;
    box-shadow: 0 6px 20px rgba(247, 148, 29, 0.4);
    transform: translateY(-3px);
}

.btn-outline-light.btn-cta {
    border: 2px solid white;
    color: white;
}

.btn-outline-light.btn-cta:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* =============================================
   Statistics Section
   ============================================= */

/* Offset anchor targets for fixed header */
#impact {
    scroll-margin-top: 90px; /* Adjust to match height of #mainNavbar */
}

.statistics {
    background: linear-gradient(135deg, var(--light-bg) 0%, #E8F4FF 100%);
    padding: 5rem 0;
    position: relative;
}

.stat-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.8rem;
    color: var(--accent-orange);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* =============================================
   Section Styles
   ============================================= */

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), #2980B9);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

/* Standardized program header color for donation/CTA sections */
.program-header {
    color: var(--primary-blue);
}

/* Consistent image presentation across program sections */
.image-section {
    overflow: hidden;
    border-radius: 16px;
    background: #eef4fa;
}

.image-section {
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.image-section img,
.gallery-item img,
.about-section img,
.program-card img,
.programs-section img,
.team-item img,
.team-member img,
.story-image img,
.testimonial-item img,
.cause-image img,
main img:not(.navbar-logo):not(.logo):not([class*="icon"]):not(.img-fluid) {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f3f6fa;
}

/* =============================================
   About Section
   ============================================= */

.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.about-section img {
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-weight: 500;
}

.highlight-item i {
    color: var(--accent-orange);
    font-size: 1.3rem;
    margin-top: 2px;
}

/* =============================================
   Programs Section
   ============================================= */

.programs-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border-top: 4px solid var(--accent-orange);
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), #2980B9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.team-image {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    min-height: 240px;
}

@media (max-width: 768px) {
    .team-image {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .team-image {
        min-height: 180px;
    }
}

.program-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.program-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-orange);
    transition: all 0.3s ease;
}

.card-link:hover {
    gap: 1rem;
    color: var(--primary-blue);
}

/* =============================================
   Featured Story Section
   ============================================= */

.featured-story {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F0F8FF 0%, #F0F4FF 100%);
}

.story-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-quote {
    background: white;
    border-left: 4px solid var(--accent-orange);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    font-style: italic;
    color: var(--text-dark);
}

.story-quote footer {
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--accent-orange);
}

/* =============================================
   Gallery Section
   ============================================= */

.gallery-section {
    padding: 5rem 0;
    background: var(--white);
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 240px;
    background: #eef4fa;
    transition: all 0.3s ease;
}

.gallery-item img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.05);
    transition: all 0.4s ease;
    z-index: 1;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 93, 166, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-link {
    width: 60px;
    height: 60px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.gallery-link:hover {
    transform: scale(1);
    background: white;
    color: var(--accent-orange);
}

/* Watermark Overlay for images and video containers */
.watermark-container {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
}

.watermark-container img,
.watermark-container video {
    display: block;
    width: 100%;
    height: auto;
}

.watermark-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.75rem;
    z-index: 20;
}

.watermark-logo {
    max-width: 70px;
    height: auto;
    opacity: 0.25;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.2));
}

/* =============================================
   Why Choose Us Section
   ============================================= */

.why-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.why-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-orange), #F5A623);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* =============================================
   CTA Section
   ============================================= */

.cta-section {
    position: relative;
    padding: 5rem 0;
    color: white;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #E67E22 100%);
    z-index: -1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-large {
    background: white;
    color: var(--accent-orange);
    font-weight: 700;
    padding: 1rem 2.5rem !important;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-large:hover {
    background: var(--dark-bg);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* =============================================
   Newsletter Section
   ============================================= */

.newsletter-section {
    padding: 4rem 0;
    background: white;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: 2px solid var(--border-light);
    padding: 0.9rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(15, 93, 166, 0.1);
    outline: none;
}

.newsletter-form .btn-primary {
    border-radius: 50px;
    padding: 0.9rem 2rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.newsletter-form .btn-primary:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* =============================================
   Footer
   ============================================= */

.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1rem;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 0.5rem;
}

.contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-info i {
    color: var(--accent-orange);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-legal {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-orange);
}

.footer-views {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(247, 148, 29, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--accent-orange);
}

.footer-views i {
    color: var(--accent-orange);
}

.footer-views strong {
    color: white;
    font-weight: 700;
}

/* =============================================
   Utility Classes
   ============================================= */

.rounded-lg {
    border-radius: 16px;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

/* =============================================
   Responsive Design
   ============================================= */

@media (max-width: 768px) {
    .hero-background {
        background-attachment: scroll;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .gallery-link {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .why-icon,
    .program-icon,
    .watermark-logo {
        max-width: 70px;
        width: auto;
        height: auto;
    }

    .footer-legal {
        gap: 1rem;
    }

    .stat-card {
        padding: 2rem 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .row.g-5,
    .row.g-4 {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }

    .program-card,
    .stat-card,
    .card,
    .service-item {
        margin-bottom: 1rem;
    }

    .img-fluid,
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 70vh;
        margin-top: 50px;
    }

    .about-highlights {
        gap: 1rem;
    }

    .program-card {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-links,
    .contact-info {
        gap: 0.6rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    .gallery-link {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .why-icon,
    .program-icon {
        width: 60px;
        height: 60px;
    }

    .watermark-logo {
        max-width: 50px;
    }

    .navbar-brand {
        font-size: 1.15rem;
    }

    .navbar-nav .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .row,
    .row.align-items-center.g-5,
    .row.g-4,
    .row.g-5 {
        margin-left: 0;
        margin-right: 0;
    }

    .row > [class*="col-"],
    .row > [class^="col-"] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .story-row {
        margin: 0;
        width: 100%;
    }

    .story-image-col,
    .story-content-col {
        width: 100%;
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .story-content-col {
        margin-top: 1.5rem;
    }

    .story-content-col .section-title,
    .story-content-col .section-description,
    .story-content-col .btn {
        width: 100%;
        max-width: 100%;
    }

    .story-content-col .btn {
        display: block;
        text-align: center;
    }

    .btn,
    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-content .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section,
    section {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .form-control,
    .form-select,
    textarea {
        font-size: 1rem;
    }

    .hero-content,
    .page-header,
    .video-section,
    .programs-section,
    .statistics,
    .newsletter-section,
    .footer {
        overflow-x: hidden;
    }

    .d-flex,
    .row,
    .navbar-nav {
        flex-wrap: wrap;
    }
}

/* =============================================
   Animations
   ============================================= */

/* Additional small-screen adjustments to avoid oversized layout */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        margin-top: 56px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    /* Reduce heavy section paddings used site-wide */
    .programs-section,
    .why-section,
    .cta-section,
    .newsletter-section,
    .statistics,
    .footer {
        padding: 3rem 0 !important;
    }

    section[style],
    section {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Tame very large typography on medium-small screens */
    h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
    h2 { font-size: clamp(1.25rem, 3.5vw, 1.6rem); }
}

@media (max-width: 480px) {
    .hero {
        height: 55vh;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .programs-section,
    .why-section,
    .cta-section,
    .newsletter-section,
    .statistics,
    .footer {
        padding: 2rem 0 !important;
    }
}


@media (max-width: 992px) {
    [style*="width: 80px;"][style*="height: 80px;"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.6rem !important;
    }

    [style*="width: 45px;"][style*="height: 45px;"] {
        width: 40px !important;
        height: 40px !important;
    }

    [style*="width: 35px;"][style*="height: 35px;"] {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
    }

    [style*="height: 300px;"] {
        height: auto !important;
    }

    [style*="height: 250px;"] {
        height: auto !important;
        min-height: 220px !important;
    }

    [style*="height: 500px;"] {
        height: auto !important;
        min-height: 45vh !important;
    }

    [style*="min-height: 400px;"] {
        min-height: 0 !important;
    }

    [style*="min-height: 240px;"] {
        min-height: 0 !important;
    }
}

@media (max-width: 768px) {
    [style*="width: 80px;"][style*="height: 80px;"] {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.4rem !important;
    }

    [style*="width: 60px;"][style*="height: 60px;"] {
        width: 48px !important;
        height: 48px !important;
    }

    [style*="width: 45px;"][style*="height: 45px;"] {
        width: 38px !important;
        height: 38px !important;
    }

    [style*="width: 35px;"][style*="height: 35px;"] {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
    }

    [style*="height: 250px;"] {
        min-height: 180px !important;
    }

    [style*="height: 300px;"] {
        min-height: 200px !important;
    }
}

@media (max-width: 576px) {
    [style*="width: 80px;"][style*="height: 80px;"] {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.3rem !important;
    }

    [style*="width: 45px;"][style*="height: 45px;"] {
        width: 34px !important;
        height: 34px !important;
    }

    [style*="width: 35px;"][style*="height: 35px;"] {
        width: 28px !important;
        height: 28px !important;
        line-height: 28px !important;
    }

    [style*="height: 250px;"] {
        min-height: 160px !important;
    }

    [style*="height: 300px;"] {
        min-height: 180px !important;
    }

    [style*="height: 500px;"] {
        min-height: 35vh !important;
    }

    [style*="min-height: 400px;"] {
        min-height: auto !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS Custom Settings */
[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* =============================================
   Buttons
   ============================================= */

.btn-primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0a3d7a;
    border-color: #0a3d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 93, 166, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Smooth scrolling support */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Hide scrollbar on mobile to maximize screen space */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 0px;
    }
}
