/* ============================================================
   Public site — production theme (ggcsmd-style)
   Load after Mentor main.css + topnav.css
   ============================================================ */

body.index-page {
    margin-bottom: 0;
}

body.inner-page {
    margin-bottom: 0;
}

body.inner-page .header,
body.index-page .header {
    background: #2c3e50 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

body.inner-page .header .brand-title-line1,
body.index-page .header .brand-title-line1,
body.inner-page .header .brand-title-line2,
body.index-page .header .brand-title-line2 {
    color: #fff;
}

body.inner-page .header .brand-title-line2,
body.index-page .header .brand-title-line2 {
    color: rgba(255, 255, 255, 0.88);
}

body.inner-page .header .logo,
body.index-page .header .logo {
    gap: 0.6rem;
    min-width: 0;
}

body.scrolled .header {
    background: rgba(44, 62, 80, 0.97) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

/* Fix Mentor theme absurd anchor offset */
body.index-page .section,
body.inner-page .section {
    scroll-margin-top: 5.5rem;
}

@media (max-width: 1199.98px) {
    body.index-page .section,
    body.inner-page .section {
        scroll-margin-top: 4.5rem;
    }
}

/* --- Header overrides (neutralize legacy site.css remnants) --- */
body.index-page .header {
    background: #2c3e50 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

body.index-page .header .navmenu > ul {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

body.index-page .header .sitename {
    color: #fff !important;
    font-size: clamp(0.8rem, 1.15vw, 1.15rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

body.index-page .header .logo {
    gap: 0.65rem;
    min-width: 0;
}

/* --- Hero --- */
.hero {
    min-height: clamp(420px, 82vh, 720px);
    display: flex;
    align-items: flex-end;
    padding: clamp(3rem, 8vh, 5rem) 0 clamp(2.5rem, 6vh, 4rem);
    overflow: hidden;
    background:
        linear-gradient(135deg, #1a2a3a 0%, #2c3e50 45%, #1a252f 100%);
}

.hero::before {
    display: none !important;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.48) 45%,
        rgba(0, 0, 0, 0.22) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero .hero-logo,
.hero img.hero-logo,
.hero #logoImg {
    position: relative !important;
    inset: unset !important;
    width: clamp(100px, 12vw, 150px) !important;
    height: auto !important;
    max-height: 170px;
    object-fit: contain !important;
    display: block;
    z-index: 3;
    margin: 0 0 1.25rem 0 !important;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

.hero .hero-title {
    font-family: var(--heading-font);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    margin: 0 0 0.5rem;
    line-height: 1.2;
    font-size: clamp(1.35rem, 3.5vw, 2.75rem);
}

.hero .hero-tagline {
    font-family: var(--body-font);
    font-weight: 500;
    font-size: clamp(1.05rem, 2.5vw, 1.5rem) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0.5rem 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem) !important;
    color: rgba(255, 255, 255, 0.88) !important;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* --- Section titles (Mentor pattern) --- */
.section-title {
    text-align: center;
    padding-bottom: 3rem !important;
}

.section-title h2 {
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.5 !important;
    color: color-mix(in srgb, var(--heading-color, #444444), transparent 40%) !important;
    margin: 0;
    font-family: var(--default-font, var(--body-font));
}

.section-title h2::after {
    content: "";
    width: 80px;
    height: 1px;
    display: inline-block;
    background: var(--accent-color, var(--primary-color));
    margin: 4px 10px;
    vertical-align: middle;
}

.section-title p {
    color: var(--heading-color, var(--secondary-color));
    font-family: var(--heading-font);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0.75rem 0 0;
    font-size: clamp(1.15rem, 2.8vw, 2rem) !important;
    line-height: 1.3;
}

/* --- About / Principal --- */
.principal-photo {
    width: 100%;
    max-width: 600px;
    border: 6px solid var(--secondary-color);
    padding: 5px;
    border-radius: var(--radius-sm);
    display: block;
    background: #fff;
}

.principal-photo-placeholder {
    width: 100%;
    max-width: 600px;
    border: 6px solid var(--secondary-color);
    padding: 5px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f0f4f8;
}

.principal-photo-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

.about .content,
.principal-message {
    line-height: 1.85;
    font-size: 1.05rem;
    color: #4a5568;
}

/* --- Gallery Swiper --- */
.gallery-swiper {
    padding-bottom: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-slide {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-weight: 500;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
    color: var(--primary-color);
}

.gallery-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* --- Program cards --- */
.program-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.program-card-header {
    background: linear-gradient(135deg, var(--secondary-color), #1a1a2e);
    color: #f1f1f1;
    text-align: center;
    padding: 0.85rem 1rem;
}

.program-card-header h5 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
}

.program-image {
    height: 200px;
    object-fit: cover;
}

/* --- Faculty --- */
.faculty-wrapper {
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.faculty-img {
    width: 136px;
    height: 168px;
    object-fit: cover;
    border-radius: 10%;
    border: 2px solid var(--secondary-color);
    padding: 2px;
    box-shadow: var(--shadow-sm);
}

.card-hover {
    transition: transform var(--transition), box-shadow var(--transition);
    border-radius: var(--radius-md);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* --- Video cards --- */
.video-card {
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-md);
    transition: transform var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* --- Stats section --- */
.counts .stats-item {
    padding: 1.5rem 1rem;
}

.counts .stats-item span {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Footer — compact; override Mentor main.css + site.css --- */
.site-footer.footer,
footer.site-footer.footer {
    color: #e2e8f0;
    background-color: var(--footer-bg) !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.9rem;
    border-top: none;
}

.site-footer.footer h4 {
    padding-bottom: 0 !important;
}

.site-footer.footer .footer-top,
.site-footer .footer-top {
    padding: 1rem 0 0.5rem !important;
    background: var(--footer-bg);
    color: #e2e8f0;
}

.site-footer.footer .footer-links,
.site-footer .footer-links {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Beat Mentor .footer .footer-links ul li { padding: 10px 0 } */
.site-footer.footer .footer-links ul li {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.site-footer.footer .footer-links ul li:first-child {
    padding-top: 0 !important;
}

.site-footer .footer-about .footer-contact {
    padding-top: 0.5rem !important;
    margin-top: 0;
}

.site-footer .footer-contact p {
    color: #cbd5e1;
    margin-bottom: 0.35rem;
    line-height: 1.45;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.site-footer .footer-brand-title {
    display: block;
    line-height: 1.2;
}

/* Beat Mentor .footer .footer-about .logo span { font-size: 26px } */
.site-footer.footer .footer-about .logo span {
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: normal !important;
    font-family: inherit !important;
    color: inherit !important;
}

.site-footer .footer-brand-line1 {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem !important;
}

.site-footer .footer-brand-line2 {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 0.82rem !important;
    margin-top: 0.15rem;
}

.site-footer .footer-links-heading {
    color: #ffffff;
    font-size: 0.92rem !important;
    font-weight: 700;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    position: relative;
}

.site-footer.footer .footer-links ul a:hover,
.site-footer.footer .footer-links ul a:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.site-footer .footer-links-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.site-footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer.footer .footer-links ul a {
    color: #e2e8f0;
    display: block;
    line-height: 1.35;
    padding: 0.15rem 0;
    font-size: 0.85rem;
    min-height: 0;
    transition: color var(--transition);
}

.site-footer .footer-contact strong {
    color: #ffffff;
    font-weight: 600;
}

.site-footer .footer-map-section {
    background: var(--footer-bg);
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-map-section .container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.35rem !important;
}

.site-footer .footer-map-heading {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.site-footer .map-container {
    position: relative;
    height: 220px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    background: #0f172a;
}

.site-footer .map-container iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

.site-footer .copyright,
.site-footer.footer .copyright {
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.25);
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .copyright p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.site-footer .footer-copyright-name {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .site-footer .map-container {
        height: min(200px, 36vh);
    }

    .site-footer .footer-top {
        padding: 1rem 0 0.65rem !important;
    }
}

/* --- Inner pages --- */
.inner-page.section {
    padding: 2.5rem 0 3rem;
}

.inner-page .section-title {
    padding-bottom: 2rem !important;
}

/* --- Downloads page --- */
.downloads-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-item-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(95, 207, 128, 0.15), rgba(95, 207, 128, 0.05));
    border: 1px solid rgba(95, 207, 128, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.download-item-icon i {
    font-size: 1.35rem;
    line-height: 1;
}

.download-item-ext {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
    opacity: 0.85;
}

.download-item-body {
    flex: 1;
    min-width: 0;
}

.download-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.25rem;
    line-height: 1.35;
}

.download-item-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.download-item-action {
    flex-shrink: 0;
}

.btn-download {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition);
}

.btn-download:hover,
.btn-download:focus {
    background: color-mix(in srgb, var(--primary-color), #000 10%);
    border-color: color-mix(in srgb, var(--primary-color), #000 10%);
    color: #fff;
}

.downloads-empty {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.downloads-empty i {
    font-size: 2.5rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 1rem;
}

.downloads-empty p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 575.98px) {
    .download-item {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .download-item-action {
        width: 100%;
        padding-left: 0;
        margin-top: 0.5rem;
    }

    .btn-download {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
    }
}

/* --- Contact / Feedback form --- */
.contact.section {
    padding-bottom: 2rem;
}

.contact-info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.contact-info-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-info-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.contact-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.contact-form-header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    color: #ffffff;
    padding: 1.25rem 2rem;
    border-bottom: 3px solid var(--primary-color);
}

.contact-form-header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contact-form-header h4 {
    margin: 0 0 0.25rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
}

.contact-form-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    max-width: 36rem;
}

.contact-step-indicator {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-step-indicator li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.contact-step-indicator li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-step-indicator li.active {
    color: #ffffff;
}

.contact-step-indicator li.active span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.contact-step-indicator li.completed {
    color: rgba(255, 255, 255, 0.9);
}

.contact-step-indicator li.completed span {
    background: rgba(95, 207, 128, 0.25);
    border-color: var(--primary-color);
}

.contact-form-body {
    padding: 1.75rem 2rem 2rem;
}

.contact-step-intro {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.contact-field-group {
    margin-bottom: 0.25rem;
}

.contact-field-group .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-field-group .form-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.contact-email-group,
.contact-otp-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.contact-email-group .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.contact-email-group .form-control,
.contact-otp-group .form-control {
    border-color: #e2e8f0;
}

.contact-email-group .form-control:focus,
.contact-otp-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.contact-otp-group {
    max-width: 22rem;
}

.btn-contact-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.btn-contact-primary:hover,
.btn-contact-primary:focus {
    background: color-mix(in srgb, var(--primary-color), #000 12%);
    border-color: color-mix(in srgb, var(--primary-color), #000 12%);
    color: #ffffff;
}

.btn-contact-success {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.btn-contact-success:hover,
.btn-contact-success:focus {
    background: #157347;
    border-color: #157347;
    color: #ffffff;
}

.contact-form-body .alert {
    margin-bottom: 1rem;
}

.contact-success-panel {
    padding: 2.5rem 1rem;
}

.verified-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

.letter-spacing-otp {
    letter-spacing: 0.35em;
    font-weight: 700;
    font-size: 1.25rem;
}

@media (max-width: 767.98px) {
    .contact.section {
        padding-bottom: 2.5rem;
    }

    .contact-form-card {
        margin-bottom: 0.5rem;
    }

    .contact-form-header,
    .contact-form-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .contact-form-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-step-indicator {
        width: 100%;
    }

    .contact-otp-group {
        max-width: 100%;
    }
}
