/* =====================================================
   Green Valley School & College - Modern Professional CSS
   ===================================================== */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #198754;
    --accent: #fd7e14;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gradient: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    color: #333;
    background: #fff;
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 0.875rem;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
}

.top-bar a:hover {
    color: #fff;
}

.lang-btn {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.3);
    margin-left: 5px;
}

.lang-btn.active, .lang-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

.social-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    margin-left: 5px;
    font-size: 0.8rem;
}

.social-icon:hover {
    background: var(--primary);
}

/* ========== NAVBAR ========== */
.main-nav {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 0.5rem 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 400;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    padding: 0.6rem 1rem !important;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* ========== HERO SLIDER ========== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slide {
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,110,253,0.85) 0%, rgba(25,135,84,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-hero {
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    background: #fff;
    color: var(--primary);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ========== SECTION STYLES ========== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .subtitle {
    display: inline-block;
    background: rgba(13,110,253,0.1);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 1.6rem;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

/* ========== NOTICE / NEWS ========== */
.notice-card, .news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}

.notice-card:hover, .news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-card .news-img {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.news-card .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body, .notice-body {
    padding: 25px;
}

.news-date, .notice-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.news-body h5, .notice-body h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.1rem;
}

.news-body p, .notice-body p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.badge-important {
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ========== ABOUT SECTION ========== */
.about-img-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-img-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ========== FACULTY ========== */
.faculty-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.faculty-photo {
    height: 220px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
}

.faculty-info {
    padding: 25px 20px;
}

.faculty-info h5 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.faculty-info .designation {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.faculty-info .department {
    color: var(--gray);
    font-size: 0.85rem;
}

/* ========== GALLERY ========== */
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item .gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,110,253,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* ========== CONTACT ========== */
.contact-info-card {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 40px;
    color: #fff;
    height: 100%;
}

.contact-info-card h3 {
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

.btn-primary-custom {
    background: var(--gradient);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13,110,253,0.3);
    color: #fff;
}

/* ========== PAGE BANNER ========== */
.page-banner {
    background: var(--gradient);
    padding: 80px 0 60px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.page-banner h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item.active {
    color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ========== FOOTER ========== */
.main-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    margin-right: 8px;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.875rem;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(13,110,253,0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* ========== CONTENT AREA ========== */
.content-area {
    line-height: 1.9;
}

.content-area h3 {
    color: var(--dark);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-area ul {
    padding-left: 20px;
}

.content-area ul li {
    margin-bottom: 8px;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--gradient);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section .btn {
    background: #fff;
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 15px;
}

.cta-section .btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .page-banner h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .hero-section, .hero-slide {
        height: 70vh;
        min-height: 400px;
    }
    .hero-content h1 {
        font-size: 1.9rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .section-padding {
        padding: 50px 0;
    }
    .brand-name {
        font-size: 0.95rem;
    }
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== NOTICE MARQUEE ========== */
.notice-marquee {
    background: var(--primary);
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
}

.notice-marquee .marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.notice-marquee a {
    color: #fff;
    margin-right: 50px;
    font-size: 0.9rem;
}

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