/* 
 * Apan Mithila Foundation - Enterprise Design System 
 * Primary: #fa1089 | Secondary: #1b3c73 | Accent: #ffcc00 | Bg: #f8f9fa
 */

:root {
    --primary-color: #fa1089;
    --primary-hover: #d3006f;
    --secondary-color: #1b3c73;
    --accent-color: #ffcc00;
    --bg-color: #f8f9fa;
    --text-color: #222222;
    --card-bg: #ffffff;
    --shadow-soft: 0 10px 30px rgba(27, 60, 115, 0.08);
    --shadow-hover: 0 15px 35px rgba(250, 16, 137, 0.15);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
}

/* Top Bar Styles */
.topbar-amf {
    background-color: var(--secondary-color);
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1045 !important;
}

.topbar-amf .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.topbar-amf .btn-outline-light:hover,
.topbar-amf .btn-outline-light:focus,
.topbar-amf .btn-outline-light.show {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.topbar-amf .dropdown-menu {
    background-color: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    z-index: 1060 !important;
    margin-top: 6px !important;
}

.topbar-amf .dropdown-item {
    color: #1b3c73 !important;
    font-weight: 600;
    padding: 8px 16px !important;
    transition: all 0.2s ease;
}

.topbar-amf .dropdown-item:hover,
.topbar-amf .dropdown-item:focus {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.topbar-brand-pink {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* Highlighted Notice Ticker Section */
.notice-bar-amf {
    background: linear-gradient(90deg, #1b3c73 0%, #2a5298 100%);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1010;
}

.notice-badge {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(250, 16, 137, 0.35);
    animation: pulseNotice 2s infinite ease-in-out;
}

@keyframes pulseNotice {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.notice-marquee {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.92rem;
}

.notice-item {
    display: inline-block;
    padding: 0 25px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.notice-item:hover {
    color: var(--accent-color) !important;
    text-decoration: underline;
}

/* Custom Navigation Bar */
.navbar-amf {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    padding: 6px 0;
    z-index: 1020 !important;
}

.navbar-amf .navbar-brand {
    font-size: 1.35rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-logo {
    height: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 50px !important;
        max-height: 50px !important;
    }
}

.brand-badge {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.navbar-amf .nav-link {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 8px 16px !important;
    transition: color 0.2s ease;
}

.navbar-amf .nav-link:hover, .navbar-amf .nav-link.active {
    color: var(--primary-color);
}

/* Buttons */
.btn-amf-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(250, 16, 137, 0.3);
}

.btn-amf-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 0, 111, 0.4);
}

.btn-amf-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-amf-secondary:hover {
    background-color: #122950;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-amf-accent {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-amf-accent:hover {
    background-color: #e6b800;
    color: var(--secondary-color);
}

/* Cards */
.amf-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(27, 60, 115, 0.05);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    overflow: hidden;
}

.amf-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(250, 16, 137, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1b3c73 0%, #0d1e3d 100%);
    color: #ffffff;
    padding: 100px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(250, 16, 137, 0.25) 0%, rgba(27, 60, 115, 0) 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}



.hero-title span {
    color: var(--accent-color);
}

.hero-badge {
    background: rgba(255, 204, 0, 0.15);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* Section Header */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Statistics Counter */
.stat-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border-bottom: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.stat-box .stat-label {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Focus Area Icons */
.focus-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: rgba(250, 16, 137, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Progress Bars */
.progress-amf {
    height: 10px;
    border-radius: 5px;
    background: #e9ecef;
}

.progress-amf .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #ff4db2);
    border-radius: 5px;
}

/* Digital ID Card Styling */
.digital-id-card {
    background: linear-gradient(135deg, #1b3c73 0%, #fa1089 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(27, 60, 115, 0.25);
    position: relative;
    overflow: hidden;
}

.digital-id-card::after {
    content: 'APAN MITHILA FOUNDATION';
    position: absolute;
    bottom: -15px;
    right: 10px;
    font-size: 1.8rem;
    font-weight: 900;
    opacity: 0.08;
    letter-spacing: 2px;
}

/* Verifiable Certificate Container */
.certificate-frame {
    border: 12px double var(--secondary-color);
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.certificate-seal {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 4px solid var(--secondary-color);
}

/* Footer */
.footer-amf {
    background: #0e203f;
    color: #a0aec0;
    padding: 70px 0 30px 0;
}

.footer-amf h5 {
    color: #ffffff;
    margin-bottom: 25px;
}

.footer-amf a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-amf a:hover {
    color: var(--primary-color);
}

/* Our Partners Pure Horizontal Infinite Auto-Scroll Carousel */
.partners-carousel-wrapper {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    width: 100% !important;
    position: relative;
    padding: 15px 0;
    white-space: nowrap !important;
}

.partners-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 24px !important;
    width: max-content !important;
    animation: smoothHorizontalScroll 25s linear infinite !important;
}

.partners-carousel-wrapper:hover .partners-carousel-track {
    animation-play-state: paused !important;
}

.partner-carousel-card {
    flex: 0 0 220px !important;
    width: 220px !important;
    display: inline-block !important;
    white-space: normal !important;
}

@keyframes smoothHorizontalScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* What Our Community Says Smooth Horizontal Carousel – 5 Columns */
.community-carousel-wrapper {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    width: 100% !important;
    position: relative;
    padding: 24px 0;
}

.community-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: max-content !important;
    animation: smoothCommunityScroll 50s linear infinite !important;
    will-change: transform;
}

.community-carousel-wrapper:hover .community-carousel-track {
    animation-play-state: paused !important;
}

/* Each card = exactly 1/5 viewport width, accounting for 4 gaps per view (20px * 4 = 80px / 5 = 16px per card) */
.community-carousel-card {
    flex: 0 0 calc(20vw - 16px) !important;
    width: calc(20vw - 16px) !important;
    min-width: 220px !important;
    max-width: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    white-space: normal !important;
}

.community-carousel-card .amf-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

@keyframes smoothCommunityScroll {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}
