﻿:root {
    --primary-color: #1a4b8c;
    --secondary-color: #f8a31b;
    --accent-color: #34b233;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --nav-bg: #ffffff;
    --nav-text: #2c3e50;
    --nav-hover: #1a4b8c;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-color);
}

/* Header Styles */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.school-name {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 0;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.school-info {
    font-size: 0.85rem;
    color: #6c757d;
    letter-spacing: 0.5px;
}

/* School Name Row */
.school-name-row {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Enhanced Navigation */
.main-navbar {
    background: var(--nav-bg);
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    padding: 0;
    transition: all 0.3s ease;
}

.nav-container {
    padding: 0 15px;
}

.navbar-brand {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-navbar .navbar-nav .nav-link {
    color: var(--nav-text);
    font-weight: 500;
    padding: 1.1rem 1.2rem;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

    .main-navbar .navbar-nav .nav-link:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: var(--secondary-color);
        transition: all 0.3s ease;
    }

    .main-navbar .navbar-nav .nav-link:hover:before,
    .main-navbar .navbar-nav .nav-link.active:before {
        width: 80%;
    }

    .main-navbar .navbar-nav .nav-link:hover,
    .main-navbar .navbar-nav .nav-link.active {
        color: var(--nav-hover);
        background: rgba(26, 75, 140, 0.05);
    }

.main-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 0;
}

.main-navbar .dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--nav-text);
    font-family: 'Poppins', sans-serif;
}

    .main-navbar .dropdown-item:hover {
        background: var(--primary-color);
        color: white;
        padding-left: 25px;
    }

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* Hero Slider */
.hero-slider .slick-slide {
    position: relative;
}

.hero-slider img {
    width: 100%;
    height: 550px;
    object-fit: fill;
}

.hero-caption {
    position: absolute;
    bottom: 80px;
    left: 60px;
    max-width: 550px;
    background: rgba(26, 75, 140, 0.85);
    color: white;
    padding: 25px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

    .hero-caption h2 {
        color: white;
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-caption p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

/* Section Styles */
.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
    text-align: center;
    font-size: 2.2rem;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: var(--secondary-color);
        border-radius: 2px;
    }

.section-intro {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s, box-shadow 0.4s;
    margin-bottom: 25px;
    height: 100%;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }

.bg-light {
    background-color: #f8f9fa !important;
}

/* Why Choose Us */
.feature-box {
    text-align: center;
    padding: 25px 20px;
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

.feature-box h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-box p {
    color: #666;
    line-height: 1.7;
}

/* News Slider */
.news-slider .slick-slide {
    padding: 0 15px;
}

.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

    .news-item:hover {
        transform: translateY(-5px);
    }

.news-date {
    background: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
}

.news-content {
    padding: 20px;
}

    .news-content h5 {
        margin-bottom: 12px;
        font-size: 1.2rem;
    }

    .news-content p {
        color: #666;
        margin-bottom: 15px;
        line-height: 1.6;
    }

/* Facilities & Infrastructure */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .gallery-item img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 75, 140, 0.85);
    color: white;
    padding: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Mission & Vision Tiles */
.tile {
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s;
}

    .tile:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

.mission-tile {
    background: linear-gradient(135deg, #1a4b8c 0%, #2a6bc6 100%);
    color: white;
}

.vision-tile {
    background: linear-gradient(135deg, #f8a31b 0%, #f9b845 100%);
    color: white;
}

.tile-icon {
    font-size: 42px;
    margin-bottom: 20px;
}

.tile h3 {
    margin-bottom: 15px;
    color: white;
}

.tile p {
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 60px;
    font-size: 0.95rem;
}

.footer-title {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 12px;
    font-size: 1.4rem;
    color: white;
}

    .footer-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--secondary-color);
        border-radius: 2px;
    }

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

    .footer-links a:hover {
        color: white;
        padding-left: 5px;
    }

.social-icons a {
    display: inline-block;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    padding-top: 11px;
    color: white;
    margin-right: 12px;
    transition: all 0.3s;
}

    .social-icons a:hover {
        background: var(--secondary-color);
        transform: translateY(-5px);
    }

.copyright {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Custom styles for carousels */
.facilities-slider .slick-slide,
.achievers-slider .slick-slide {
    padding: 0 15px;
}

.facilities-slider .gallery-item,
.achievers-slider .card {
    margin: 0 10px 20px;
}

/* Achievers section specific styles */
.achievers-slider .card-img-top {
    height: 180px;
    object-fit: cover;
}

.achievers-slider .card-body {
    padding: 20px;
}

.achievers-slider .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.achievers-slider .card-text {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background: #153a6d;
        border-color: #153a6d;
        transform: translateY(-2px);
    }

.btn-warning {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #333;
}

    .btn-warning:hover {
        background: #e5940e;
        border-color: #e5940e;
        color: #333;
        transform: translateY(-2px);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-slider img {
        height: 400px;
    }

    .hero-caption {
        left: 30px;
        bottom: 50px;
        max-width: 80%;
        padding: 20px;
    }

        .hero-caption h2 {
            font-size: 1.8rem;
        }

    .main-navbar .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
    }

    .school-name {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .hero-slider img {
        height: 350px;
    }

    .hero-caption {
        left: 20px;
        bottom: 30px;
        padding: 15px;
    }

        .hero-caption h2 {
            font-size: 1.5rem;
        }

        .hero-caption p {
            font-size: 1rem;
        }

    .school-name {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .achievers-slider .card-img-top {
        height: 160px;
    }

    .main-navbar .navbar-nav .nav-link {
        padding: 0.7rem 0.8rem;
    }

    .news-slider .slick-slide {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-caption {
        left: 15px;
        bottom: 20px;
        padding: 12px;
    }

        .hero-caption h2 {
            font-size: 1.3rem;
            margin-bottom: 10px;
        }

        .hero-caption p {
            font-size: 0.9rem;
            margin-bottom: 15px;
        }

    .section-title {
        font-size: 1.5rem;
    }

    .section-intro {
        font-size: 1rem;
    }
}

/* Slick arrow customization */
.slick-prev, .slick-next {
    z-index: 1;
    width: 45px;
    height: 45px;
    background: rgba(26, 75, 140, 0.8);
    border-radius: 50%;
    transition: all 0.3s;
}

    .slick-prev:hover, .slick-next:hover {
        background: var(--primary-color);
        transform: scale(1.1);
    }

.slick-prev {
    left: 15px;
}

.slick-next {
    right: 15px;
}

    .slick-prev:before, .slick-next:before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 20px;
        color: white;
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

.slick-prev:before {
    content: "\f104";
}

.slick-next:before {
    content: "\f105";
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

/* Principal message section */
.principal-section {
    background: linear-gradient(to right, #f8f9fa 50%, #ffffff 50%);
}

@media (max-width: 992px) {
    .principal-section {
        background: #f8f9fa;
    }
}

.text-justify {
    text-align: justify;
}

/*************************** Events******************/
.events-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.events-header {
    background: white;
    padding: 40px 30px 20px;
    text-align: center;
}

.events-slider .slick-slide {
    padding: 0 15px;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

.event-image {
    height: 220px;
    overflow: hidden;
}

    .event-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-block;
    border-radius: 0 0 12px 0;
}

.event-content {
    padding: 20px;
}

.event-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.event-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.event-location {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

    .event-location i {
        margin-right: 5px;
        color: var(--secondary-color);
    }

.btn-event {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

    .btn-event:hover {
        background: #153a6d;
        color: white;
        transform: translateY(-2px);
    }

    /***************** Custom css from previous system *******************/
    .pages-img {
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 25px 20px 0;
    padding:5px;
}

.author {
    color: #6c757d;
    font-style: italic;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.author i {
    margin-right: 10px;
    color: #f8a31b;
}

/* Gallery Section */
.gallery-section {
    margin: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Downloads Section */
.downloads-section {
    margin: 40px 0;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.download-item:hover {
    transform: translateX(5px);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: #1a4b8c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.5rem;
}

.download-info {
    flex-grow: 1;
}

.download-info h4 {
    margin: 0 0 5px 0;
    color: #1a4b8c;
    font-size: 1.1rem;
}

.download-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.download-btn {
    background: #f8a31b;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background: #e5940e;
    color: #333;
}

/* Members Section */
.members-section {
    margin: 40px 0;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.member-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.member-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    margin: 0 0 10px 0;
    color: #1a4b8c;
    font-size: 1.3rem;
}

.member-info p {
    margin: 0;
    color: #6c757d;
}

/* Videos Section */
.videos-section {
    margin: 40px 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.video-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(26, 75, 140, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.video-item:hover .video-play-btn {
    background: rgba(26, 75, 140, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin: 0 0 10px 0;
    color: #1a4b8c;
    font-size: 1.2rem;
}

.video-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    margin: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 40px;
    color: #1a4b8c;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin: 0 0 15px 0;
    color: #1a4b8c;
    font-size: 1.3rem;
}

.feature-card p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes bounceInUp {
    from, 60%, 75%, 90%, to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    from {
        opacity: 0;
        transform: translate3d(0, 3000px, 0);
    }
    60% {
        opacity: 1;
        transform: translate3d(0, -20px, 0);
    }
    75% {
        transform: translate3d(0, 10px, 0);
    }
    90% {
        transform: translate3d(0, -5px, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

.bounceInUp {
    animation-name: bounceInUp;
}

@keyframes pulse {
    from {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.05, 1.05, 1.05);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

.pulse {
    animation-name: pulse;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
}

.zoomIn {
    animation-name: zoomIn;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.7rem;
    }
    
    .pages-img {
        float: none !important;
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .gallery-grid,
    .members-grid,
    .videos-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
    }
    
    .download-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}