/* ============================================
   Lions School and College, Rangpur - Frontend
   Simple, clean, edit-friendly. Green primary
   (matching typical BD school branding).
   ============================================ */

:root {
    --primary: #0a5c36;
    --primary-dark: #074026;
    --primary-light: #e8f3ee;
    --accent: #f39c12;
    --text: #2c3e50;
    --muted: #6c757d;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #f7f9fc;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 10px 0;
}
.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}
.top-bar a:hover {
    color: var(--accent);
}
.top-bar .socials a {
    margin-left: 14px;
    font-size: 0.92rem;
}
.top-bar .socials a:first-child {
    margin-left: 0;
}
/* Admin Login Button */
.btn-admin-login {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}
.btn-admin-login:hover {
    background-color: #ffffff;
    color: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.18);
}
.btn-admin-login i {
    font-size: 0.85rem;
    margin-right: 4px;
}

/* Brand Strip & Logo Styles */
.brand-strip {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}
.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    gap: 20px;
}
.brand-logo {
    height: 75px;
    max-height: 75px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.brand-link:hover .brand-logo {
    transform: scale(1.04);
}
.brand-name {
    color: var(--primary);
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.brand-tagline {
    color: #64748b;
    font-size: 0.88rem;
    margin: 3px 0 0 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

@media (max-width: 768px) {
    .brand-link {
        gap: 12px;
    }
    .brand-logo {
        height: 52px;
        max-height: 52px;
        max-width: 90px;
    }
    .brand-name {
        font-size: 1.35rem;
    }
    .brand-tagline {
        font-size: 0.78rem;
    }
}

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--accent);
}
.main-nav .container {
    position: relative;
}
.main-nav .nav-item {
    position: relative;
}
.main-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 18px 22px !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
}
.main-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05);
}
.main-nav .nav-link.active {
    color: var(--accent) !important;
    background-color: rgba(0, 0, 0, 0.15);
}
/* Premium Underline Indicator */
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}
.navbar-toggler {
    color: #fff;
    border-color: #fff;
    margin: 10px;
}
.navbar-toggler-icon {
    filter: invert(1);
}

/* Hero */
.hero {
    position: relative;
    height: 480px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%), url('../images/hero-default.jpg') center/cover;
    color: #fff;
    display: flex;
    align-items: center;
}
.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Section */
.section {
    padding: 60px 0;
}
.section-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}
.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}
.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.card {
    border: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Notice ticker */
.notice-ticker {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
}
.notice-ticker .label {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 0.85rem;
}
.notice-item {
    display: flex;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}
.notice-item:last-child { border-bottom: 0; }
.notice-date {
    background: var(--primary);
    color: #fff;
    padding: 6px 10px;
    text-align: center;
    min-width: 60px;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.1;
    margin-right: 12px;
}
.notice-date .day { font-size: 1.2rem; font-weight: 700; display: block; }

/* Principal message */
.principal-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.principal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin: 0 auto 20px;
    display: block;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #fff;
    margin-top: 60px;
}
.site-footer h5 {
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
}
.site-footer a {
    color: #fff;
    opacity: 0.85;
}
.site-footer a:hover {
    opacity: 1;
    color: var(--accent);
}
.site-footer ul li {
    padding: 4px 0;
}
.social-links a {
    font-size: 1.3rem;
    margin-right: 12px;
}

/* Module list grid */
.module-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.module-item .image {
    height: 200px;
    background: #eee center/cover no-repeat;
}
.module-item .body {
    padding: 20px;
    flex: 1;
}
.module-item h5 {
    color: var(--primary);
    font-weight: 600;
}

/* Breadcrumb */
.page-header {
    background: var(--primary-light);
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}
.page-header h1 {
    color: var(--primary);
    margin: 0;
    font-size: 2rem;
}

/* Utility */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .site-title { font-size: 1.1rem; }
    .hero { height: 320px; }
    .hero-content h2 { font-size: 1.5rem; }
    .section { padding: 40px 0; }
}

/* ================================================================
   Hero Carousel (Premium visual design styles)
   ================================================================ */
.hero-carousel {
    position: relative;
    width: 100%;
}
.hero-carousel .carousel-item {
    height: 520px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out;
}
.hero-carousel .carousel-caption-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 100%);
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-carousel .carousel-content {
    max-width: 800px;
}
.hero-carousel .carousel-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    letter-spacing: -0.5px;
}
.hero-carousel .carousel-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    font-weight: 300;
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 6%;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 24px;
    border-radius: 50%;
    background-size: 55%;
    transition: background-color 0.2s;
}
.hero-carousel .carousel-control-prev-icon:hover,
.hero-carousel .carousel-control-next-icon:hover {
    background-color: var(--accent);
}
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    border: 2px solid #fff;
    background-color: transparent;
    opacity: 0.6;
    transition: all 0.2s;
}
.hero-carousel .carousel-indicators .active {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    opacity: 1;
    transform: scale(1.2);
}

@media (max-width: 991px) {
    .hero-carousel .carousel-item { height: 420px; }
    .hero-carousel .carousel-content h2 { font-size: 2.2rem; }
    .hero-carousel .carousel-content p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item { height: 320px; }
    .hero-carousel .carousel-content h2 { font-size: 1.6rem; }
    .hero-carousel .carousel-content p { font-size: 0.95rem; margin-bottom: 20px; }
    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        padding: 15px;
    }
}

/* ================================================================
   Dropdown & Submenu Menus (Premium Styling & Animations)
   ================================================================ */
.main-nav .dropdown-menu {
    display: block; /* Managed by transitions/opacities for animation */
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    position: absolute;
    background-color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 3px solid var(--accent);
    z-index: 1000;
}

/* Show Dropdown on Hover */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.main-nav .dropdown-item {
    color: var(--text);
    padding: 10px 24px;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-nav .dropdown-item:hover,
.main-nav .dropdown-item.active {
    color: var(--primary) !important;
    background-color: var(--primary-light) !important;
    padding-left: 28px; /* Subtle shifting micro-interaction */
}

/* Dropdown Submenus (Level 3 Nested Dropdowns) */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: -3px;
    left: 100%;
    margin-left: 5px;
    border-radius: 8px;
    border-top: 3px solid var(--primary);
    transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateX(0) translateY(0) !important;
        pointer-events: auto;
        display: block !important;
    }
}

/* Elegant Submenu arrow indicators */
.dropdown-submenu > .dropdown-item::after {
    display: inline-block;
    font-family: 'bootstrap-icons';
    content: "\F285"; /* bi-chevron-right */
    border: 0;
    float: right;
    font-size: 0.75rem;
    color: var(--muted);
    transition: transform 0.2s ease, color 0.2s ease;
    margin-top: 2px;
}
.dropdown-submenu:hover > .dropdown-item::after {
    color: var(--primary);
    transform: translateX(3px);
}

/* Mobile responsive navigation overrides */
@media (max-width: 991px) {
    .main-nav {
        padding: 5px 0;
    }
    .main-nav .nav-link {
        padding: 12px 15px !important;
    }
    .main-nav .nav-link::after {
        display: none; /* No underlines on mobile */
    }
    .main-nav .dropdown-menu {
        position: relative !important;
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border: 0 !important;
        border-left: 3px solid var(--accent);
        border-radius: 0;
        background-color: rgba(0,0,0,0.03);
        margin: 0;
        padding: 5px 0;
    }
    /* Toggle visible on mobile click */
    .main-nav .dropdown-menu.show {
        display: block !important;
    }
    .dropdown-submenu > .dropdown-menu {
        border-left: 3px solid var(--primary) !important;
        margin-left: 15px !important;
        display: none !important;
    }
    .dropdown-submenu.show > .dropdown-menu {
        display: block !important;
    }
    .main-nav .dropdown-item {
        color: rgba(255, 255, 255, 0.95) !important;
    }
    .main-nav .dropdown-item:hover,
    .main-nav .dropdown-item.active {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
        padding-left: 28px;
    }
    .dropdown-submenu > .dropdown-item::after {
        transform: rotate(0deg) !important;
        transition: transform 0.2s ease;
        color: rgba(255, 255, 255, 0.75) !important;
    }
    .dropdown-submenu.show > .dropdown-item::after {
        transform: rotate(90deg) !important;
        color: #ffffff !important;
    }
}

/* ================================================================
   Campus Media Gallery (Photo & Video Tabbed Layout)
   ================================================================ */
.btn-custom-pill {
    border-radius: 50px !important;
    background-color: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}
.btn-custom-pill:hover {
    background-color: #e2e8f0;
}
.btn-custom-pill.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(10, 92, 54, 0.2);
}

.gallery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.gallery-img-container {
    position: relative;
    overflow: hidden;
}
.gallery-image {
    transition: transform 0.5s ease;
}
.gallery-img-container:hover .gallery-image {
    transform: scale(1.06);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 92, 54, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-img-container:hover .gallery-overlay {
    opacity: 1;
}
.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.max-vh-80 {
    max-height: 80vh !important;
    object-fit: contain;
}
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #000000;
    border-radius: 8px 8px 0 0;
}
.video-container .plyr {
    width: 100%;
    height: 100%;
}
/* Skin Plyr custom controls to match our school primary green brand color */
:root {
    --plyr-color-main: var(--primary);
}

/* Hide YouTube native title bars, channel info, and logo overlays */
.plyr--youtube .plyr__video-wrapper iframe {
    width: 100% !important;
    height: 125% !important;
    top: -12.5% !important;
    transform: scale(1.25) !important;
    transform-origin: center center !important;
    pointer-events: none !important; /* Directs clicks to custom Plyr controls instead of iframe */
}

/* ================================================================
   3D Book Flip Page Animation Styles
   ================================================================ */
.book-wrapper {
    perspective: 1500px;
    width: 100%;
    max-width: 900px; /* Double page landscape width */
    height: 520px;
    margin: 40px auto;
    position: relative;
    user-select: none;
}
.book-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    background-color: transparent;
}
/* Spine marker in the middle */
.book-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.15) 100%);
    z-index: 100;
    transform: translate(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.book-page {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}
.page-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    border-radius: 0 8px 8px 0;
    box-shadow: inset 3px 0 20px rgba(0,0,0,0.04), 8px 8px 25px rgba(0,0,0,0.12);
}
.page-front {
    z-index: 2;
    background-color: #ffffff;
    border-left: 1px solid #e2e8f0;
}
.page-back {
    z-index: 1;
    transform: rotateY(180deg);
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    border-radius: 8px 0 0 8px;
    box-shadow: inset -3px 0 20px rgba(0,0,0,0.04), -8px 8px 25px rgba(0,0,0,0.12);
}
.page-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.book-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.book-controls {
    margin-top: 30px;
}
/* Responsive book scaling for smaller viewports */
@media (max-width: 991px) {
    .book-wrapper {
        height: 420px;
        max-width: 720px;
    }
    .book-img {
        max-height: 300px;
    }
}
@media (max-width: 767px) {
    .book-wrapper {
        height: 320px;
        max-width: 500px;
    }
    .book-img {
        max-height: 200px;
    }
    .book-controls {
        font-size: 0.9rem;
    }
}

/* Read More / Read Less Toggle Link */
.read-more-btn {
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.read-more-btn:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline !important;
}

/* ================================================================
   Hero Section 2 (Spotlight & Stat Cards)
   ================================================================ */
.hero-section-2 {
    position: relative;
    overflow: hidden;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
.hero-section-2 .container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero2-logo-glow {
    max-height: 110px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 28px rgba(255, 255, 255, 0.5));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.hero2-logo-glow:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) drop-shadow(0 0 36px rgba(255, 255, 255, 0.75));
}
.hero2-stat-card {
    padding: 12px 14px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.hero2-stat-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}



