/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== CSS VARIABLES (NAVY BLUE & GOLD THEME) ===== */
:root {
    /* Navy Blue Palette */
    --navy-primary: #1a365d;
    --navy-secondary: #2d4a66;
    --navy-light: #4a6fa5;
    --navy-dark: #0f1419;
    --navy-accent: #3182ce;
    
    /* Gold Palette */
    --gold-primary: #d69e2e;
    --gold-secondary: #f6e05e;
    --gold-light: #faf089;
    --gold-dark: #b7791f;
    --gold-accent: #ecc94b;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-shadow: #e9e9e8;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #495057;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(74, 111, 165, 0.8) 100%);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--navy-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--gold-primary);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--navy-primary);
}

.btn-primary:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-secondary {
    background: var(--gradient-gold);
    color: var(--navy-dark);
    border-color: var(--gold-primary);
}

.btn-secondary:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--navy-primary);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    color: var(--navy-primary);
    font-weight: 700;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy-primary);
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: -0.25rem;
}

.cambodian-institute-james-scott-ngo-logo{
    width: 325px;
}

.cambodian-institute-james-scott-footer-logo{
    width: 255px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-contact {
    background: var(--gradient-gold);
    color: var(--navy-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.nav-contact:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.nav-contact::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* Tailwind Utilities Custom CSS */
@layer utilities {
  /* Contact button */
  .tw-nav-contact {
    @apply text-white font-medium rounded-md transition duration-300;
    background: var(--gradient-gold);
  }

  .tw-nav-contact:hover {
    background-image: none;
    background-color: #b8860b; /* dark gold */
    color: #fff;
  }

  /* Hover gold text */
  .hover\:tw-text-gold:hover {
    color: var(--gold-dark);
  }

  /* Always gold text */
  .tw-text-gold {
    color: var(--gold-dark);
  }
}


/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-primary);
}

.home-hero-padding{
    padding: 2rem 0 7rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: center;
    padding-top: 100px;
    text-align: center;
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.title-main {
    display: block;
    color: var(--white);
}

.title-highlight {
    display: block;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.stats-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    display: flex;
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--gold-light);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-xs);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--navy-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--spacing-xxl) 0;
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(26, 54, 93, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--navy-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== INSTITUTIONAL DIFFERENTIATORS HOME ===== */
.differentiators-home {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.differentiators-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.diff-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-top: 4px solid var(--navy-primary);
}

.diff-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.diff-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.5rem;
    color: var(--white);
}

.diff-item h3 {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-md);
    color: var(--navy-primary);
}

.diff-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== PROGRAMS OVERVIEW ===== */
.programs-overview {
    padding: var(--spacing-xxl) 0;
    background: var(--light-gray);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

.program-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.program-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    font-size: 1.25rem;
    color: var(--navy-dark);
}

.program-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--navy-primary);
}

.program-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--navy-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.program-link:hover {
    color: var(--gold-primary);
    gap: var(--spacing-sm);
}

/* ===== IMPACT METRICS ===== */
.impact-metrics {
    padding: var(--spacing-xxl) 0;
    background: var(--light-gray);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

.metric-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.metric-card.span-two, .diff-item.span-two {
    grid-column: 1 / span 2;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.metric-chart-container {
    margin-bottom: var(--spacing-lg);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.metric-info{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--light-gray);
    border-radius: var(--radius-md);
}

.number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-primary);
    font-family: var(--font-heading);
}

.number-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--navy-primary);
}

.metric-description {
    color: var(--text-secondary);
}

/* ===== CALL TO ACTION ===== */
.cta {
    padding: var(--spacing-xxl) 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-logo h3 {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-xs);
}

.footer-logo p {
    font-size: 0.9rem;
    color: var(--gold-light);
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--gold-primary);
    color: var(--navy-dark);
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--gold-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-light);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--gold-primary);
    width: 20px;
}

.funding-info {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.funding-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.funding-link {
    color: var(--gold-light);
    font-weight: 600;
}

.funding-link:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.footer-copyright a {
    color: var(--gold-light);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}


/* iPad specific padding adjustment */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
            min-height: 65vh;
    }
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-card.span-two, .diff-item.span-two {
    grid-column: 1 / span 1;
    }
    
}

/* Mobile CSS */
@media (max-width: 768px) {

    .cambodian-institute-james-scott-ngo-logo{
        width: 300px;
    }

    .metric-card.span-two, .diff-item.span-two {
    grid-column: 1 / span 1;
    }

    .stats-container{
        display: flex;
        justify-content: center;
        gap: var(--spacing-xl);
        max-width: 800px;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--spacing-xl);
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .features-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: auto;
        min-width: 200px;
    }
}

/* ===== NOTIFICATION SYSTEM ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--navy-primary);
    z-index: 10000;
    transform: translateX(100%);
    transition: var(--transition-normal);
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.notification-success {
    border-left-color: #28a745;
}

.notification.notification-error {
    border-left-color: #dc3545;
}

.notification.notification-warning {
    border-left-color: #ffc107;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
}

.notification-message {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-xs);
    margin-left: var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.notification-close:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    border-top-color: var(--navy-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SKIP LINK FOR ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--navy-primary);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 10000;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ===== SEARCH FUNCTIONALITY ===== */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    border-bottom: 1px solid var(--light-gray);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    display: block;
    padding: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.search-result-item:hover a {
    background: var(--light-gray);
}

.result-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.result-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.search-no-results {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--navy-accent);
    transform: translateY(-5px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .home-hero-padding{
        padding: 7rem 0 6rem 0;
    }
}
