/*
 * Corporate Professional College Design - 2026
 * Style: Authoritative, Structured, Clean, Institutional
 * Colors: Royal Navy Blue, Slate Grey, White
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Institutional Colors */
    --brand-primary: #003366;
    /* Royal Navy Blue - Trust & Authority */
    --brand-secondary: #b38f00;
    /* Muted Gold - Excellence */
    --brand-accent: #cc0000;
    /* Dark Red - Important actions */

    /* Neutrals */
    --surface-white: #ffffff;
    --surface-light: #f5f7fa;
    --border-color: #dbe2e8;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;

    /* Spacing & Layout */
    --card-radius: 4px;
    /* Minimal radius for professional look */
    --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.06);
    --header-height: 48px;
}

/* ===== GLOBAL RESETS ===== */
* {
    box-sizing: border-box;
}

.home-panel {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    background-color: var(--surface-light);
}

.home-panel a {
    text-decoration: none;
    transition: color 0.2s;
}

/* ===== SECTION HEADERS - BAR STYLE ===== */
.section-header {
    background-color: var(--brand-primary);
    padding: 12px 20px;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    margin-bottom: 0;
}

.section-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* NEW: Centered Section Titles */
.section-title-center {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-primary);
    margin: 40px 0 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 15px;
}

.section-title-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--brand-secondary);
}

/* ===== CARDS & CONTAINERS ===== */
.principal-card,
.news-card,
.mission-card,
.vision-card,
.prospectus-section {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    overflow: hidden;
    /* Captures children border-radius */
}

/* Content Padding Wrapper */
.card-content {
    padding: 20px;
}

/* ===== NOTIFICATION BANNER ===== */
.notification-banner {
    background-color: #fff;
    border-left: 5px solid var(--brand-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
}

.notification-banner marquee {
    font-size: 15px;
    color: var(--brand-accent);
    font-weight: 500;
}

/* ===== PRINCIPAL'S DESK ===== */
.principal-card {
    display: flex;
    flex-direction: column;
}

/* Override semantic HTML structure for this design */
.principal-card .section-header {
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.principal-profile {
    padding: 24px;
    background: linear-gradient(to bottom, var(--surface-light) 50%, white 50%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.principal-image-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 15px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.principal-image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    /* Prevents head from being cropped from the top */
}

.principal-name {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 18px;
    margin-top: 10px;
}

.principal-content {
    padding: 20px;
    flex: 1;
}

.princi-desk {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: justify;
    margin-bottom: 20px;
    display: block;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--surface-light);
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.read-more-btn:hover {
    background-color: var(--brand-primary);
    color: #fff;
    text-decoration: none;
}

/* ===== MISSION & VISION ===== */
/* ===== MISSION & VISION & VIDEO ===== */
.mission-vision-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.mission-card,
.vision-card,
.video-card {
    height: 100%;
    /* Match heights */
    display: flex;
    flex-direction: column;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.video-card h3 {
    background-color: #f8f9fa;
    color: var(--brand-primary);
    font-size: 16px;
    font-weight: 700;
    padding: 12px 15px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tablet Responsive Adjustment */
@media (max-width: 991px) and (min-width: 768px) {
    .mission-vision-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .video-card {
        grid-column: span 2;
    }
}

.mission-card h3,
.vision-card h3 {
    background-color: #f8f9fa;
    /* Lighter header for sub-sections */
    color: var(--brand-primary);
    font-size: 16px;
    font-weight: 700;
    padding: 12px 15px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.mission-card p,
.vision-card p {
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    text-align: justify;
}

/* ===== PROSPECTUS & NEWS ===== */
.prospectus-section {
    background-color: #e6f0fa;
    /* Very light blue */
    border: 1px solid #b3d1f0;
    padding: 15px;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.prospectus-section a {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    width: 100%;
}

.prospectus-section i {
    font-size: 20px;
    margin-right: 12px;
    color: var(--brand-accent);
}

.news-card .section-header {
    background-color: var(--brand-primary);
    /* Navy header */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-items-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

/* ===== PROFESSIONAL SIDEBAR (Prospectus & Notices) ===== */
.sidebar-modern-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 1. Prospectus Card */
.prospectus-card {
    background: linear-gradient(135deg, #b38f00 0%, #8c7000 100%);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.prospectus-card a {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none !important;
}

.prospectus-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.15);
    /* Darker overlay for Gold background */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.prospectus-icon i {
    color: #fff;
    font-size: 24px;
}

.prospectus-info {
    flex: 1;
}

.prospectus-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.prospectus-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.prospectus-card .new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 20px;
}

.prospectus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(179, 143, 0, 0.3);
    /* Warmer Gold shadow */
}

/* 2. Notice Sidebar Section */
.notice-sidebar-section {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.section-header-sidebar {
    background-color: var(--brand-primary);
    padding: 12px 15px;
}

.section-header-sidebar h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.section-header-sidebar h3 i {
    margin-right: 8px;
    color: var(--brand-accent);
}

/* 3. News List Sidebar */
.sidebar-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item-sidebar {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f4f8;
    transition: background-color 0.2s;
}

.news-item-sidebar:hover {
    background-color: #f8fafc;
}

.news-date-sidebar {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
    min-width: 55px;
    height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-date-sidebar .day {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
}

.news-date-sidebar .month {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
}

.news-content-sidebar {
    flex: 1;
}

.news-title-sidebar {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.news-title-sidebar a {
    color: var(--text-primary);
    text-decoration: none;
}

.news-title-sidebar a:hover {
    color: var(--brand-primary);
}

.news-meta-sidebar {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
}

/* View All Sidebar */
.view-all-sidebar {
    padding: 12px 15px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.btn-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s;
}

.btn-view-all:hover {
    gap: 12px;
    color: var(--brand-primary);
}

/* Scrollbar Styling for Sidebar */
.vertical_scroller.news::-webkit-scrollbar {
    width: 4px;
}

.vertical_scroller.news::-webkit-scrollbar-thumb {
    background: #cbd1d8;
    border-radius: 2px;
}

/* Legacy CSS adjustments */
.news-evnt,
.panel-body {
    padding: 0 !important;
}

/* Remove icons from Mission/Vision if present in HTML */
.mission-card h3::before,
.vision-card h3::before {
    content: none !important;
}

/* ===== NEW SECTIONS (STATIC DATA) ===== */

/* 1. KEY STATISTICS SECTION */
.stats-section {
    background-color: var(--brand-primary);
    padding: 40px 0;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #fff;
    border-top: 4px solid var(--brand-secondary);
    border-bottom: 4px solid var(--brand-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 32px;
    color: var(--brand-secondary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* 2. WHY CHOOSE US SECTION */
.why-us-section {
    padding: 20px 0 40px;
    background-color: #fff;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.section-title-center {
    text-align: center;
    color: var(--brand-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-title-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--brand-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-bottom: 3px solid var(--brand-primary);
    padding: 30px 20px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    transition: all 0.2s;
    text-align: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--brand-secondary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--brand-primary);
    font-size: 28px;
    border: 1px solid var(--border-color);
}

.feature-card h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive for new sections */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-item {
        border-right: none;
    }

    .features-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* 3. COLLEGE SHOWCASE SECTION */
.college-showcase {
    padding: 60px 0;
    background-color: #fff;
    overflow: hidden;
}

.showcase-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.showcase-text {
    flex: 1;
    min-width: 300px;
    animation: fadeInLeft 1s ease-out;
}

.showcase-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.showcase-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.showcase-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.showcase-stat-item {
    background: var(--surface-light);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--brand-secondary);
}

.showcase-stat-item i {
    font-size: 24px;
    color: var(--brand-secondary);
    margin-bottom: 10px;
}

.showcase-stat-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 5px 0;
    color: var(--brand-primary);
}

.showcase-image-box {
    flex: 1;
    min-width: 300px;
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.showcase-main-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.showcase-main-img:hover {
    transform: scale(1.02);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--brand-secondary);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.floating-badge span {
    display: block;
    font-size: 24px;
    font-weight: 800;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 991px) {
    .showcase-flex {
        flex-direction: column-reverse;
    }

    .showcase-image-box {
        width: 100%;
    }
}

/* 4. TESTIMONIALS SECTION */
.testimonials-section {
    padding: 40px 0 60px;
    background-color: #fff;
    margin-top: 30px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--surface-light);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.quote-icon {
    font-size: 30px;
    color: var(--brand-secondary);
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-info h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary);
}

.author-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}