/* ==========================================================================
   Bakhtawar Amin Hospital - Medical College Page Styles
   ========================================================================== */

:root {
    --college-navy: #003366;
    --college-navy-dark: #001A33;
    --college-red: #E31E24;
    --college-red-dark: #C41E24;
    --college-red-light: rgba(227, 30, 36, 0.08);
    --college-gold: #D4AF37;
    --college-text: #2D3748;
    --college-text-muted: #64748B;
    --college-bg-light: #F8FAFC;
    --college-card-border: #E2E8F0;
    --college-radius: 16px;
    --college-shadow: 0 15px 35px rgba(0, 51, 102, 0.1);
}

.medical-college-page {
    background-color: var(--college-bg-light);
    color: var(--college-text);
    overflow-x: hidden;
}

/* ==========================================================================
   1. Hero Banner Section (Replicating Inauguration Hero aesthetic)
   ========================================================================== */
.college-hero {
    background: linear-gradient(135deg, var(--college-navy) 0%, var(--college-navy-dark) 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.college-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 25%, rgba(227, 30, 36, 0.22) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.college-hero .container {
    position: relative;
    z-index: 2;
}

.college-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.college-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.college-breadcrumbs a:hover {
    color: var(--college-gold);
}

.college-breadcrumbs .sep {
    color: rgba(255, 255, 255, 0.5);
}

.college-breadcrumbs .current {
    color: var(--college-gold);
    font-weight: 600;
}

.college-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 12px;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.college-hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    max-width: 700px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   2. Intro Section (Heading & Small Description)
   ========================================================================== */
.college-intro-section {
    padding: 70px 0 40px;
}

.college-intro-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.college-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--college-red-light);
    color: var(--college-red);
    border: 1px solid rgba(227, 30, 36, 0.25);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.college-main-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.75rem, 3.8vw, 2.5rem);
    font-weight: 800;
    color: var(--college-navy);
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.college-subtext {
    max-width: 820px;
    margin: 0 auto;
}

.college-subtext p {
    font-size: clamp(1.05rem, 2vw, 1.18rem);
    line-height: 1.8;
    color: var(--college-text-muted);
    margin: 0 0 16px;
}

.college-subtext p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   3. Real-Time Scrollable PDF Viewer Section
   ========================================================================== */
.college-pdf-section {
    padding: 20px 0 80px;
}

.pdf-viewer-card {
    background: #ffffff;
    border-radius: var(--college-radius);
    border: 1px solid var(--college-card-border);
    box-shadow: 0 20px 45px -10px rgba(0, 51, 102, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.pdf-viewer-card:hover {
    box-shadow: 0 25px 55px -10px rgba(0, 51, 102, 0.22);
}

/* Professional PDF Header Toolbar */
.pdf-toolbar {
    background: linear-gradient(135deg, #002244 0%, #001529 100%);
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 3px solid var(--college-red);
}

.pdf-toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pdf-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(227, 30, 36, 0.15);
    color: #ff4d4f;
    border: 1px solid rgba(227, 30, 36, 0.3);
    border-radius: 10px;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.pdf-title-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdf-doc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.pdf-format-badge {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pdf-format-badge i {
    color: #52c41a;
}

/* Action Buttons */
.pdf-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pdf-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.pdf-btn-download {
    background: linear-gradient(135deg, var(--college-red) 0%, var(--college-red-dark) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(227, 30, 36, 0.35);
}

.pdf-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(227, 30, 36, 0.5);
    color: #ffffff !important;
}

.pdf-btn-tab,
.pdf-btn-fullscreen {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-btn-tab:hover,
.pdf-btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff !important;
}

/* Scrollable Iframe Frame */
.pdf-frame-wrapper {
    position: relative;
    width: 100%;
    height: 850px;
    background: #525659; /* Standard PDF reader canvas background */
    overflow: hidden;
}

.pdf-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Fullscreen Mode */
.pdf-viewer-card.is-fullscreen {
    border-radius: 0;
    max-width: 100vw;
    max-height: 100vh;
}

.pdf-viewer-card.is-fullscreen .pdf-frame-wrapper {
    height: calc(100vh - 75px);
}

/* Mobile Fallback Bar */
.pdf-mobile-bar {
    display: none;
    padding: 14px 20px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.mobile-bar-info {
    font-size: 0.88rem;
    color: var(--college-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.mobile-bar-buttons {
    display: flex;
    gap: 8px;
}

.btn-mobile-read,
.btn-mobile-dl {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-mobile-read {
    background: var(--college-navy);
    color: #ffffff !important;
}

.btn-mobile-dl {
    background: var(--college-red);
    color: #ffffff !important;
}

/* ==========================================================================
   4. Call to Action Banner
   ========================================================================== */
.college-cta-section {
    padding: 30px 0 70px;
}

.cta-inner {
    background: linear-gradient(135deg, var(--college-navy) 0%, #0c2b4c 100%);
    border-radius: var(--college-radius);
    padding: 45px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-text {
    max-width: 600px;
}

.cta-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.cta-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-college-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--college-red) 0%, var(--college-red-dark) 100%);
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(227, 30, 36, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-college-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227, 30, 36, 0.5);
    color: #ffffff !important;
}

.btn-college-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-college-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    color: #ffffff !important;
}

/* ==========================================================================
   5. Mobile & Tablet Responsiveness
   ========================================================================== */
@media (max-width: 991px) {
    .pdf-frame-wrapper {
        height: 680px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 36px 30px;
    }

    .cta-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .college-hero {
        padding: 70px 0 50px;
    }

    .college-intro-section {
        padding: 50px 0 30px;
    }

    .pdf-toolbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
        gap: 16px;
    }

    .pdf-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .pdf-frame-wrapper {
        height: 540px;
    }

    .pdf-mobile-bar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-bar-buttons {
        width: 100%;
    }

    .btn-mobile-read,
    .btn-mobile-dl {
        flex: 1;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-college-primary,
    .btn-college-outline {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .college-hero {
        padding: 55px 0 40px;
    }

    .college-hero-title {
        font-size: 1.7rem;
    }

    .college-pill-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
    }

    .college-main-heading {
        font-size: 1.45rem;
    }

    .pdf-doc-title {
        font-size: 0.95rem;
    }

    .pdf-frame-wrapper {
        height: 460px;
    }

    .pdf-action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .cta-inner {
        padding: 28px 18px;
    }
}
