/* =============================================
   VIDVIDA ACADEMY - FRONTEND CSS
   Modern School Theme: Royal Blue + Deep Gold
   ============================================= */

:root {
    --primary: #1a3a8c;
    /* Royal Blue */
    --primary-light: #2d5bbf;
    --primary-dark: #0f2264;
    --gold: #d4a017;
    /* Deep Gold */
    --gold-light: #f0c040;
    --white: #ffffff;
    --light-bg: #f4f7fc;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --shadow: 0 4px 20px rgba(26, 58, 140, 0.12);
    --shadow-lg: 0 10px 40px rgba(26, 58, 140, 0.18);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

/* =============================================
   BOOTSTRAP 5 COLOR OVERRIDES
   Force ALL Bootstrap utility classes to use the
   academy's Royal Blue (#1a3a8c) + Deep Gold (#d4a017)
   ============================================= */
:root {
    /* Override Bootstrap primary → Royal Blue */
    --bs-primary: #1a3a8c;
    --bs-primary-rgb: 26, 58, 140;
    --bs-primary-text-emphasis: #0f2264;
    --bs-primary-bg-subtle: #d6dff5;
    --bs-primary-border-subtle: #a7b8ea;

    /* Override Bootstrap link → Royal Blue */
    --bs-link-color: #1a3a8c;
    --bs-link-hover-color: #0f2264;

    /* Override Bootstrap focus ring */
    --bs-focus-ring-color: rgba(26, 58, 140, 0.25);

    /* Override Bootstrap secondary → Deep Gold */
    --bs-secondary: #d4a017;
    --bs-secondary-rgb: 212, 160, 23;

    /* We keep Bootstrap's info/danger/success closer to theme */
    --bs-info: #2d5bbf;
    --bs-info-rgb: 45, 91, 191;
    --bs-success: #1a3a8c;
    --bs-success-rgb: 26, 58, 140;
    --bs-danger: #d4a017;
    --bs-danger-rgb: 212, 160, 23;
}

/* =============================================
   EXPLICIT UTILITY CLASS OVERRIDES
   Covers text-primary, bg-primary, border-primary,
   btn-primary, btn-outline-primary used in pages
   ============================================= */

/* text-primary → Royal Blue */
.text-primary {
    color: #1a3a8c !important;
}

/* text-gold (custom, used in home.blade.php) */
.text-gold {
    color: #d4a017 !important;
}

/* bg-primary → Royal Blue */
.bg-primary {
    background-color: #1a3a8c !important;
}

/* bg-primary-light → lighter Royal Blue */
.bg-primary-light {
    background-color: #2d5bbf !important;
}

/* bg-gold (custom helper) */
.bg-gold {
    background-color: #d4a017 !important;
}

/* bg-light-bg (custom, used in home & style.css) */
.bg-light-bg {
    background-color: #f4f7fc !important;
}

/* border-primary → Royal Blue */
.border-primary {
    border-color: #1a3a8c !important;
}

/* Override Bootstrap info / danger / success / secondary background
   to use academy palette instead of Bootstrap defaults */
.bg-info {
    background-color: #1a3a8c !important;
}

.bg-danger {
    background-color: #d4a017 !important;
}

.bg-success {
    background-color: #2d5bbf !important;
}

.bg-secondary {
    background-color: #0f2264 !important;
}

/* btn-primary → Royal Blue */
.btn-primary {
    background-color: #1a3a8c !important;
    border-color: #1a3a8c !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #152d6b !important;
    border-color: #152d6b !important;
    box-shadow: 0 4px 12px rgba(26, 58, 140, 0.3) !important;
    color: #ffffff !important;
}

/* btn-outline-primary → Royal Blue outline */
.btn-outline-primary {
    color: #1a3a8c !important;
    border-color: #1a3a8c !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #1a3a8c !important;
    border-color: #1a3a8c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(26, 58, 140, 0.25) !important;
}

/* Feature card icon circles on homepage — override Bootstrap bg classes */
.card-img-top.eco-friendly,
.card-img-top.interactive_pannel,
.card-img-top.healthcare,
.card-img-top.transport,
.card-img-top.drinkingWater,
.card-img-top.bestTeachers {
    background-color: rgba(26, 58, 140, 0.1) !important;
    color: #1a3a8c !important;
    font-size: 1.6rem;
}

/* Gold-accented icon circles */
.card-img-top.healthcare,
.card-img-top.transport,
.card-img-top.bestTeachers {
    background-color: rgba(212, 160, 23, 0.12) !important;
    color: #d4a017 !important;
}

/* Card hover effect */
.hover-translate-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-translate-up:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(26, 58, 140, 0.15) !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Google Sans Text', 'Google Sans', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: #fff;
}

/* =============================================
   GLOBAL PARAGRAPH TYPOGRAPHY — CONSISTENT SIZE
   All <p> tags and content paragraph classes
   across every frontend page use the SAME size.
   ============================================= */
p,
.missionVissionPara,
.aboutUsPara,
.CurricularPara,
.homepageIntroPara,
.footer-address,
.footer-tagline {
    font-family: 'Google Sans Text', 'Google Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: inherit;
}

/* Override Bootstrap fs-5 (1.25rem) so it stays consistent
   when used on paragraph content classes */
p.fs-5,
.missionVissionPara.fs-5,
.aboutUsPara.fs-5,
.CurricularPara.fs-5,
.homepageIntroPara.fs-5 {
    font-size: 1.05rem !important;
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: var(--transition);
}

#mainNav {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow);
    padding: 0.6rem 0;
    transition: all var(--transition);
}

#mainNav.scrolled {
    padding: 0.3rem 0;
    box-shadow: var(--shadow-lg);
}

/* Logo */
.nav-logo {
    /* height: 52px; */
    width: 70px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.08);
}

.brand-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    font-family: 'Google Sans Display', 'Google Sans', sans-serif;
}

.brand-tagline {
    display: block;
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Nav Links */
.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(26, 58, 140, 0.06);
}

/* Dropdown Menu */
.dropdown-menu-animated {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    border-top: 3px solid var(--gold);
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu-animated .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all var(--transition);
}

.dropdown-menu-animated .dropdown-item:hover {
    background: var(--primary);
    color: white;
}

.dropdown-menu-animated .dropdown-item i {
    width: 18px;
    color: var(--gold);
    transition: var(--transition);
}

.dropdown-menu-animated .dropdown-item:hover i {
    color: white;
}

/* Custom Toggler */
.navbar-toggler {
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
}

.toggler-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   PAGE BANNER (reusable)
   ============================================= */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(212, 160, 23, 0.15);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.page-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: 10%;
}

.page-banner-title {
    font-family: 'Google Sans Display', 'Google Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.page-banner-subtitle {
    color: var(--gold-light);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.page-banner-breadcrumb {
    position: relative;
    z-index: 1;
}

.page-banner-breadcrumb .breadcrumb-item a {
    color: var(--gold-light);
}

.page-banner-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.page-banner-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
    font-family: 'Google Sans Display', 'Google Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

.section-divider.left {
    margin-left: 0;
}

/* =============================================
   TIMING & CALENDAR PAGE
   ============================================= */
.calendar-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    overflow: hidden;
    background: white;
}

.calendar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.calendar-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1.5rem;
    position: relative;
}

.calendar-card-header .year-badge {
    background: var(--gold);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.calendar-card-body {
    padding: 1.2rem 1.5rem;
}

.calendar-preview {
    background: var(--light-bg);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.calendar-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================
   PUBLIC DISCLOSURE PAGE
   ============================================= */
.disclosure-section-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
    font-family: 'Google Sans Display', 'Google Sans', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.disclosure-table-wrapper {
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
}

.disclosure-table-wrapper .table {
    margin: 0;
}

.disclosure-table-wrapper .table thead th {
    background: var(--light-bg);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--gold);
    padding: 0.9rem 1rem;
}

.disclosure-table-wrapper .table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.disclosure-table-wrapper .table tbody tr:hover {
    background: rgba(26, 58, 140, 0.04);
}

.view-link {
    background: var(--primary);
    color: white !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.view-link:hover {
    background: var(--gold);
    transform: scale(1.05);
}

/* =============================================
   NEWSLETTER PAGE
   ============================================= */
.newsletter-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    overflow: hidden;
    background: white;
    height: 100%;
}

.newsletter-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.newsletter-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.newsletter-card:hover .newsletter-thumbnail img {
    transform: scale(1.08);
}

.newsletter-thumbnail .no-thumb {
    color: rgba(255, 255, 255, 0.5);
    font-size: 4rem;
}

.newsletter-month-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-body {
    padding: 1.2rem;
}

.newsletter-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsletter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-view-pdf {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view-pdf:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-download-pdf {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-download-pdf:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4rem;
}

.footer-top {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 64px;
    width: 64px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
    margin-bottom: 1rem;
}

.footer-school-name {
    font-family: 'Google Sans Display', 'Google Sans', sans-serif;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
}

.footer-tagline {
    color: var(--gold-light);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-heading {
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '›';
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-contact i {
    color: var(--gold);
    margin-top: 2px;
    min-width: 18px;
}

/* Social Buttons */
.footer-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white !important;
    text-decoration: none;
    transition: all var(--transition);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.youtube {
    background: #ff0000;
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-footer-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-dark) !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 25px;
    padding: 8px 18px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.82rem;
    transition: var(--transition);
}

.footer-bottom-link:hover {
    color: var(--gold-light);
}

/* =============================================
   UTILITIES
   ============================================= */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Section padding */
.section-py {
    padding: 4rem 0;
}

.section-py-sm {
    padding: 2.5rem 0;
}

/* Scroll-reveal base */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .page-banner-title {
        font-size: 2rem;
    }

    #mainMenu {
        background: white;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        margin-top: 0.5rem;
        border-top: 3px solid var(--gold);
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 0.5rem !important;
    }
}

@media (max-width: 575px) {
    .page-banner-title {
        font-size: 1.6rem;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-top {
        text-align: center;
    }

    .footer-heading {
        display: block;
    }

    .footer-links a::before {
        display: none;
    }
}