/* ============================================================
   Tejaswi Academy – Main Stylesheet
   Colors: Primary Red #C0392B | Yellow #F39C12 | Blue #2980B9
   Fonts: Playfair Display (headings) | Inter (body)
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --red:        #C0392B;
    --red-dark:   #96281B;
    --red-light:  #E74C3C;
    --yellow:     #F39C12;
    --yellow-dk:  #D68910;
    --blue:       #2980B9;
    --blue-dark:  #1F6391;
    --white:      #FFFFFF;
    --off-white:  #F8F9FA;
    --light-gray: #EBEBEB;
    --text-dark:  #1A1A1A;
    --text-mid:   #444444;
    --text-light: #777777;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    --transition: 0.3s ease;
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
    --radius:     10px;
    --radius-lg:  16px;
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
}

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

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

/* ── Top Bar ───────────────────────────────────────────────── */
.top-bar {
    background: var(--text-dark);
    color: #ccc;
    font-size: 13px;
    padding: 7px 0;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--yellow); }
.top-bar-right a {
    font-size: 16px;
    margin-left: 10px;
    color: #ccc;
}
.top-bar-right a:hover { color: var(--yellow); }

/* ── News Ticker ───────────────────────────────────────────── */
.news-ticker {
    background: var(--red);
    color: var(--white);
    padding: 8px 0;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 500;
}
.ticker-label {
    background: var(--yellow);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    margin-left: 16px;
}
.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}
.ticker-content span { margin: 0 20px; }
.ticker-sep { color: var(--yellow); font-weight: bold; }
@keyframes ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.news-ticker:hover .ticker-content { animation-play-state: paused; }

/* ── Navigation ────────────────────────────────────────────── */
#mainNav {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0;
    transition: all var(--transition);
}
#mainNav.transparent-nav {
    background: rgba(0,0,0,0.3);
    box-shadow: none;
}
.navbar-brand { padding: 10px 0; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    color: var(--red);
    line-height: 1.2;
}
.brand-tagline {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 14.5px;
    padding: 20px 14px !important;
    position: relative;
    transition: color var(--transition);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.navbar-nav .nav-link:hover { color: var(--red) !important; }
.navbar-nav .nav-link:hover::after { transform: scaleX(1); }
.btn-admission {
    background: var(--red) !important;
    color: var(--white) !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}
.btn-admission::after { display: none !important; }
.btn-admission:hover { background: var(--red-dark) !important; }
#mainNav.transparent-nav .nav-link { color: rgba(255,255,255,0.9) !important; }
#mainNav.transparent-nav .brand-name { color: var(--white); }
#mainNav.transparent-nav .brand-tagline { color: rgba(255,255,255,0.7); }

/* ── Hero Slider ───────────────────────────────────────────── */
.hero-slider { position: relative; height: 88vh; min-height: 520px; overflow: hidden; background: linear-gradient(135deg, #8B0000 0%, #C0392B 40%, #2980B9 100%); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; background: linear-gradient(135deg, #8B0000 0%, #C0392B 40%, #2980B9 100%); }
.slide.active { opacity: 1; }
.slide-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.slide-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    color: var(--white);
    padding: 20px;
}
.slide-subtitle {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--yellow);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
    font-weight: 600;
}
.slide-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    margin: 12px 0;
    max-width: 650px;
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s ease 0.5s;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.slide-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.75s;
}
.slide.active .slide-subtitle,
.slide.active .slide-title,
.slide.active .slide-btn { opacity: 1; transform: translateY(0); }

.btn-slide-primary {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 13px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}
.btn-slide-primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Slider controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}
.slider-dot.active {
    background: var(--yellow);
    border-color: var(--white);
    transform: scale(1.3);
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
    font-size: 18px;
}
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ── Section Utility ────────────────────────────────────────── */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 55px 0; }
.section-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-family: var(--font-display);
    color: var(--text-dark);
}
.section-title span { color: var(--red); }
.section-divider {
    width: 50px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
    margin: 14px 0 24px;
}

/* ── Quick Stats ───────────────────────────────────────────── */
.stats-strip {
    background: var(--red);
    color: var(--white);
    padding: 30px 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
}
.stat-label { font-size: 13px; opacity: 0.85; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Principal's Message ──────────────────────────────────── */
.principal-section { background: var(--off-white); }
.principal-photo-wrapper {
    position: relative;
    display: inline-block;
}
.principal-photo {
    width: 240px; height: 290px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.principal-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: var(--shadow-sm);
}
.principal-quote {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-mid);
    font-style: italic;
    border-left: 4px solid var(--yellow);
    padding-left: 20px;
    margin: 20px 0;
}

/* ── Why Tejaswi (Feature Grid) ───────────────────────────── */
.why-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: all var(--transition);
    height: 100%;
}
.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: transparent;
}
.why-icon {
    width: 64px; height: 64px;
    background: rgba(192,57,43,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 26px;
    color: var(--red);
    transition: all var(--transition);
}
.why-card:hover .why-icon { background: var(--red); color: var(--white); }
.why-card h5 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-light); margin: 0; }

/* ── Mission Vision History ────────────────────────────────── */
.mvh-section { background: var(--text-dark); color: var(--white); }
.mvh-card {
    border-left: 3px solid var(--yellow);
    padding-left: 24px;
    margin-bottom: 40px;
}
.mvh-card:last-child { margin-bottom: 0; }
.mvh-card h4 { color: var(--yellow); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.mvh-card p { color: rgba(255,255,255,0.75); font-size: 15px; margin: 0; }

/* ── Notice Board Sidebar ──────────────────────────────────── */
.notice-card-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--light-gray);
}
.notice-card-item:last-child { border-bottom: none; }
.notice-date-box {
    background: var(--red);
    color: var(--white);
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    min-width: 52px;
    flex-shrink: 0;
}
.notice-date-box .day { font-size: 20px; font-weight: 700; line-height: 1; }
.notice-date-box .mon { font-size: 11px; text-transform: uppercase; }
.notice-meta { font-size: 13px; color: var(--text-light); }
.notice-meta a { color: var(--text-dark); font-weight: 600; font-size: 14px; }
.notice-meta a:hover { color: var(--red); }
.badge-urgent { background: var(--red); color: var(--white); font-size: 10px; padding: 2px 7px; border-radius: 3px; }

/* ── Admissions Page ───────────────────────────────────────── */
.admission-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}
.form-label { font-weight: 600; font-size: 14px; color: var(--text-mid); }
.form-control, .form-select {
    border: 1.5px solid var(--light-gray);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.btn-submit-inquiry {
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 13px 32px;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    transition: all var(--transition);
}
.btn-submit-inquiry:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery-grid { columns: 3; gap: 12px; }
.gallery-item { break-inside: avoid; margin-bottom: 12px; border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; display: block; transition: transform 0.4s ease; }
.gallery-item::after {
    content: '\F52A';
    font-family: 'bootstrap-icons';
    position: absolute;
    inset: 0;
    background: rgba(192,57,43,0.7);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }
@media (max-width: 768px) { .gallery-grid { columns: 2; } }
@media (max-width: 480px) { .gallery-grid { columns: 1; } }

/* ── Page Hero Banner ──────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(243,156,18,0.12);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb-item.active { color: var(--yellow); }
.breadcrumb-separator { color: rgba(255,255,255,0.4); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: #111111; color: #aaa; padding: 70px 0 0; }
.footer-heading {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}
.footer-about { font-size: 14px; color: #888; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #888; font-size: 14px; transition: all var(--transition); }
.footer-links a:hover { color: var(--yellow); padding-left: 4px; }
.footer-links .bi-chevron-right { font-size: 11px; margin-right: 6px; color: var(--red); }
.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; color: #888; }
.footer-contact-list .bi { color: var(--red); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { color: #888; }
.footer-contact-list a:hover { color: var(--yellow); }
.footer-bottom {
    background: #0a0a0a;
    padding: 18px 0;
    margin-top: 40px;
    font-size: 13px;
    color: #555;
}
.fb-page-wrapper { overflow: hidden; border-radius: var(--radius); }

/* ── Admission Popup Modal ──────────────────────────────────── */
.popup-modal { background: var(--white); border-radius: var(--radius-lg); border: none; overflow: hidden; }
.popup-modal .modal-header { background: var(--red); padding: 12px 20px; }
.popup-badge { background: var(--yellow); color: var(--text-dark); font-size: 12px; font-weight: 700; padding: 5px 15px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.08em; display: inline-block; }
.popup-title { font-family: var(--font-display); font-size: 1.8rem; color: var(--text-dark); }
.popup-text { color: var(--text-light); max-width: 400px; margin: 0 auto; }
.btn-popup { background: var(--red); color: var(--white); padding: 12px 30px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: all var(--transition); }
.btn-popup:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); }

/* ── Contact Page ──────────────────────────────────────────── */
.contact-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 30px; text-align: center; }
.contact-icon { width: 56px; height: 56px; background: rgba(192,57,43,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--red); margin: 0 auto 16px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary-ta { background: var(--red); color: var(--white); border: none; border-radius: 6px; padding: 11px 26px; font-weight: 600; font-size: 15px; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-primary-ta:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline-ta { border: 2px solid var(--red); color: var(--red); border-radius: 6px; padding: 10px 24px; font-weight: 600; font-size: 15px; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-outline-ta:hover { background: var(--red); color: var(--white); }

/* ── Notices Page ──────────────────────────────────────────── */
.notice-list-item { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 16px; border-left: 4px solid var(--blue); transition: all var(--transition); }
.notice-list-item.urgent { border-color: var(--red); }
.notice-list-item:hover { box-shadow: var(--shadow-md); }
.notice-list-item h5 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.notice-list-item .notice-body { color: var(--text-light); font-size: 14.5px; }

/* ── Lightbox (simple) ─────────────────────────────────────── */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: none; align-items: center; justify-content: center; }
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: var(--white); font-size: 36px; cursor: pointer; line-height: 1; }

/* ── Utility ────────────────────────────────────────────────── */
.bg-light-red { background: rgba(192,57,43,0.05); }
.text-red { color: var(--red) !important; }
.text-yellow { color: var(--yellow) !important; }
.fw-700 { font-weight: 700; }

/* ── Animations ─────────────────────────────────────────────── */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .navbar-nav .nav-link { padding: 12px 8px !important; border-bottom: 1px solid var(--light-gray); }
    .navbar-nav .nav-link::after { display: none; }
    .hero-slider { height: 70vh; }
    .section-pad { padding: 55px 0; }
    .admission-form-card { padding: 24px 18px; }
}
@media (max-width: 575px) {
    .hero-slider { height: 60vh; min-height: 380px; }
    .principal-photo { width: 180px; height: 215px; }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
    .top-bar, .news-ticker, #mainNav, .site-footer, .hero-slider { display: none !important; }
}
