/* Prahar Career Academy - Army Training Theme */
:root {
    --maroon: #7a0f14;
    --maroon-dark: #5c0a0e;
    --navy: #0d1f3c;
    --navy-light: #1a3568;
    --gold: #c9a227;
    --gold-light: #e8c547;
    --saffron: #e67e22;
    --green: #1b5e20;
    --white: #ffffff;
    --off-white: #f6f4ef;
    --gray: #6b7280;
    --text: #1a1a2e;
    --shadow: 0 4px 24px rgba(13, 31, 60, 0.12);
    --radius: 10px;
    --font: 'Noto Sans Devanagari', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--off-white);
    line-height: 1.7;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--maroon); }

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Top bar */
.top-bar {
    background: var(--navy);
    color: var(--white);
    font-size: 0.82rem;
    padding: 0.4rem 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--maroon);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
}

.brand:hover { color: var(--text); }

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
}

.brand-text strong {
    display: block;
    font-size: 1.05rem;
    color: var(--maroon);
    line-height: 1.3;
}

.brand-text small {
    color: var(--gray);
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 6px;
    color: var(--navy);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--maroon);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--maroon);
    border-radius: 2px;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font);
}

.btn-primary {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: var(--white);
    border-color: var(--maroon-dark);
}

.btn-primary:hover {
    background: var(--maroon-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 15, 20, 0.35);
}

.btn-secondary {
    background: var(--navy);
    color: var(--white);
}

.btn-secondary:hover { background: var(--navy-light); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover { background: var(--white); color: var(--maroon); }

.btn-block { display: block; text-align: center; width: 100%; }

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,31,60,0.88) 0%, rgba(122,15,20,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.hero-desc {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats banner */
.stats-banner {
    background: linear-gradient(90deg, var(--maroon), var(--navy));
    color: var(--white);
    padding: 1.25rem 0;
    text-align: center;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-dark {
    background: var(--navy);
    color: var(--white);
    text-align: center;
}

.section-header { margin-bottom: 2.5rem; }
.section-header.center { text-align: center; }

.section-label {
    display: inline-block;
    color: var(--maroon);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--navy);
    font-weight: 800;
}

.section-dark h2 { color: var(--gold-light); }

.center { text-align: center; }

.lead { font-size: 1.1rem; font-weight: 500; margin-bottom: 1rem; color: var(--navy); }

/* Service grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--maroon);
    transition: transform 0.25s;
}

.service-card:hover { transform: translateY(-6px); }

.service-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.service-card h3 { font-size: 1rem; color: var(--maroon); margin-bottom: 0.35rem; }
.service-card p { font-size: 0.82rem; color: var(--gray); }

/* Two col */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.image-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid var(--gold);
}

/* Feature list */
.feature-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    border-bottom: 1px solid #e5e2db;
}

.feature-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.85rem;
}

.feature-list.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0 1.5rem;
}

/* Routine */
.routine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.routine-item {
    background: var(--white);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.routine-time {
    font-weight: 700;
    color: var(--maroon);
    font-size: 0.88rem;
}

.routine-act { font-size: 0.9rem; color: var(--navy); }

/* Students */
.students-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.student-chip {
    background: var(--navy);
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.student-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--gold);
}

.student-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy), var(--maroon));
    color: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.2rem;
}

.student-card span { font-size: 0.88rem; font-weight: 600; color: var(--navy); }

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--maroon) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; }
.page-hero p { opacity: 0.9; margin-top: 0.5rem; }

/* Courses */
.alert-banner {
    background: linear-gradient(90deg, var(--maroon), #a01820);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--gold);
}

.course-block {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.course-block-title {
    font-size: 1.35rem;
    color: var(--white);
    background: var(--navy);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 5px solid var(--gold);
}

.course-army .course-block-title { background: #2d5016; }
.course-air .course-block-title { background: #1565c0; }
.course-central .course-block-title { background: #e65100; }
.course-police .course-block-title { background: #1a237e; }
.course-mpsc .course-block-title { background: #4a148c; }

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.course-card {
    border: 1px solid #e0ddd6;
    border-radius: 8px;
    padding: 1rem 1.15rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    border-color: var(--maroon);
    box-shadow: 0 4px 16px rgba(122,15,20,0.1);
}

.course-card h3 {
    color: var(--maroon);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.course-card p { font-size: 0.88rem; color: var(--gray); }

/* Tags */
.tags-grid, .batch-types, .exam-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.tag, .batch-types span, .exam-tags span {
    background: var(--navy);
    color: var(--white);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
}

.tag-gold { background: var(--gold); color: var(--navy); }

.batch-types span { background: var(--maroon); }

/* Result gallery */
.result-gallery { display: flex; flex-direction: column; gap: 1.5rem; }

.gallery-full {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.achievement-card {
    background: linear-gradient(145deg, var(--navy), var(--navy-light));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-top: 4px solid var(--gold);
}

.achievement-card h3 { margin-bottom: 0.5rem; color: var(--gold-light); }

/* About */
.leadership-grid { display: flex; flex-direction: column; gap: 2rem; }

.leader-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-items: start;
}

.leader-card.reverse { direction: rtl; }
.leader-card.reverse > * { direction: ltr; }

.leader-card img { border-radius: 8px; object-fit: cover; max-height: 220px; }

.leader-info h3 { color: var(--maroon); font-size: 1.2rem; }
.leader-info .role { display: block; color: var(--gold); font-weight: 700; font-size: 0.9rem; margin: 0.35rem 0 0.75rem; }
.jai-hind { color: var(--maroon); display: block; margin-top: 0.75rem; }

.pledge-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--navy);
    box-shadow: var(--shadow);
}

.pledge-box h3 { color: var(--maroon); margin-bottom: 0.75rem; }
.pledge-student { border-left-color: var(--gold); }

/* Updates */
.updates-list { display: flex; flex-direction: column; gap: 1.25rem; }

.update-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--maroon);
    transition: transform 0.2s;
}

.update-card:hover { transform: translateX(6px); }

.update-date {
    flex-shrink: 0;
    background: var(--navy);
    color: var(--gold-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    height: fit-content;
}

.update-body h2 { font-size: 1.1rem; color: var(--maroon); margin-bottom: 0.35rem; }
.update-body p { color: var(--gray); font-size: 0.95rem; }

.contact-mini {
    background: var(--navy);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
}

.contact-mini h3 { color: var(--gold-light); margin-bottom: 1rem; }

.phone-link {
    display: block;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.phone-link:hover { color: var(--gold-light); }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.contact-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--maroon);
}

.contact-logo {
    width: 90px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--gold);
}

.contact-info-card h2 { color: var(--maroon); font-size: 1.3rem; }
.tagline-sm { color: var(--navy); font-weight: 600; margin-bottom: 1.5rem; }

.contact-block {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
}

.contact-block h3 { font-size: 1rem; color: var(--navy); margin-bottom: 0.5rem; }

.phone-big {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 0.35rem;
}

.map-placeholder {
    background: var(--navy);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 1rem;
}

/* Footer */
.footer-tricolor {
    height: 6px;
    background: linear-gradient(90deg, #ff9933 33%, #fff 33% 66%, #138808 66%);
}

.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-logo { width: 70px; border-radius: 50%; margin-bottom: 0.75rem; }

.footer-col h3, .footer-col h4 {
    color: var(--gold-light);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col a { color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--gold-light); }

.highlight-text {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p { margin-bottom: 0.25rem; }

.footer-credit {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-credit strong {
    color: var(--gold-light);
    font-weight: 700;
}

/* Floating call */
.floating-call {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--maroon);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(122,15,20,0.5);
    z-index: 999;
    transition: transform 0.2s;
}

.floating-call:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
    .two-col, .contact-grid, .leader-card {
        grid-template-columns: 1fr;
    }
    .leader-card.reverse { direction: ltr; }
    .leader-card { grid-template-columns: 1fr; }
    .leader-card img { max-height: 200px; width: 100%; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 85vw);
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        box-shadow: -4px 0 24px rgba(0,0,0,0.15);
        transition: right 0.3s;
        z-index: 1001;
    }

    .main-nav.open { right: 0; }

    .main-nav a {
        padding: 0.85rem 1rem;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }

    .hero { min-height: 70vh; }
    .section { padding: 2.5rem 0; }
    .update-card { flex-direction: column; }
    .top-bar-inner { justify-content: center; text-align: center; font-size: 0.75rem; }
}
