/* ===================================================================
   FRONTEND CSS - SSU University Website
   Clean, modern, responsive design
   =================================================================== */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #170C79;
    --primary-dark: #0f0a52;
    --primary-light: #2d23a8;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ===== BASE RESET ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', 'Open Sans', -apple-system, sans-serif; color: var(--text); background: var(--light); line-height: 1.6; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--dark); margin-bottom: 0.5em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1em; }

/* ===== LAYOUT ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 15px; }
.container-fluid { width: 100%; padding: 0 15px; }
.section { padding: 60px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-light { background: var(--white); }
.section-gray { background: var(--gray-100); }

/* ====================================================================
   HEADLINE TICKER (marquee)
   Background color is driven dynamically from admin settings
   (ticker_background_color). Default = primary blue.
   ==================================================================== */
.headline-ticker {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--ticker-bg, var(--primary));
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 16px 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.headline-ticker .label {
    background: rgba(0,0,0,0.25);
    color: #fff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.headline-ticker .ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 12px 0;
}
.headline-ticker .ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 40s linear infinite;
}
.headline-ticker .ticker-item {
    color: var(--ticker-text, #fff);
    text-decoration: none;
    padding: 0 18px;
    transition: opacity 0.2s ease;
}
.headline-ticker .ticker-item:hover { opacity: 0.8; color: var(--ticker-text, #fff); }
.headline-ticker .ticker-sep {
    color: var(--ticker-text, #fff);
    opacity: 0.5;
    padding: 0 4px;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@media (max-width: 576px) {
    .headline-ticker .label { padding: 10px 12px; font-size: 13px; }
    .headline-ticker .ticker-item { padding: 0 10px; font-size: 13px; }
}

/* ===== TOP STRIP ===== */
.top-strip { background: var(--primary); color: #fff; font-size: 13px; padding: 6px 0; }
.top-strip a { color: #cbd5e1; text-decoration: none; margin-left: 14px; }
.top-strip a:hover { color: var(--accent); }
.lang-toggle { background: rgba(255,255,255,0.1); padding: 2px 10px; border-radius: 12px; font-size: 12px; }

/* ===== HEADER ===== */
.site-header { background: var(--white); box-shadow: var(--shadow); padding: 12px 0; }
.site-header .site-name { font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.site-header .site-tagline { font-size: 12px; color: var(--gray-500); }
.site-header .logo img { height: 70px; }

/* ===== NAVIGATION ===== */
.main-nav { background: var(--primary); }
.main-nav .navbar-nav { overflow: visible !important; }
.main-nav .navbar-nav > li { position: relative; }
.main-nav .navbar-nav > li > a { color: #fff !important; padding: 12px 16px !important; font-weight: 500; border-right: 1px solid rgba(255,255,255,0.08); transition: all 0.2s; }
.main-nav .navbar-nav > a:hover { background: rgba(255,255,255,0.1); color: var(--accent) !important; }
.main-nav .navbar-nav > a.active { background: rgba(255,255,255,0.15); color: var(--accent) !important; }

.main-nav .dropdown { position: relative; }
.main-nav .dropdown > .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 9999; display: none; opacity: 0; visibility: hidden; transition: opacity 0.2s; background: var(--white); border-radius: 0; border: none; box-shadow: var(--shadow-lg); margin-top: 0; padding: 0; min-width: 240px; max-height: 70vh; overflow-y: auto; }
.main-nav .dropdown:hover > .dropdown-menu,
.main-nav .dropdown:focus-within > .dropdown-menu { display: block; opacity: 1; visibility: visible; }
.main-nav .dropdown-menu a { padding: 10px 18px; font-size: 14px; color: var(--text) !important; border-bottom: 1px solid var(--gray-100); display: block; white-space: nowrap; }
.main-nav .dropdown-menu a:hover { background: var(--primary); color: #fff !important; }
.main-nav .dropdown-menu li:last-child > a { border-bottom: none; }
.main-nav .dropdown-toggle::after { margin-left: 6px; }

/* ===== HERO SECTION ===== */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 80px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.hero h1 { color: var(--white); font-size: 2.5rem; font-weight: 700; }
.hero p { font-size: 1.125rem; opacity: 0.9; }
.hero .btn { background: var(--accent); color: var(--white); padding: 12px 30px; border-radius: 30px; font-weight: 600; }
.hero .btn:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ===== CARDS ===== */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: none; margin-bottom: 20px; overflow: hidden; }
.card:hover { box-shadow: var(--shadow-md); transition: box-shadow 0.2s; }
.card-header { background: var(--white); padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.card-body { padding: 20px; }
.card-footer { background: var(--gray-100); padding: 14px 20px; border-top: 1px solid var(--border); }
.card-img-top { width: 100%; height: 200px; object-fit: cover; }
.card-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; color: var(--dark); }
.card-text { font-size: 0.9rem; color: var(--text-muted); }

/* ===== BUTTONS ===== */
.btn { border-radius: var(--radius); font-weight: 500; padding: 10px 20px; transition: all 0.2s; border: none; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--gray-500); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--gray-100); padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; padding: 0 10px; color: var(--gray-300); }

/* ===== TABLES ===== */
.table { background: var(--white); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.table thead { background: var(--gray-100); }
.table th { font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; color: var(--gray-500); padding: 14px; border: none; }
.table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: var(--gray-50); }
.table-striped tbody tr:nth-of-type(odd) { background: #fafbfc; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label { font-weight: 500; color: var(--text); margin-bottom: 6px; display: block; }
.form-control { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23,12,121,0.1); outline: none; }
.form-control-file { padding: 6px 0; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 12px center; background-repeat: no-repeat; background-size: 20px; padding-right: 40px; }

/* ===== ALERTS ===== */
.alert { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; border: none; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--info); }

/* ===== BADGES ===== */
.badge { padding: 4px 10px; border-radius: 12px; font-weight: 500; font-size: 0.75rem; }
.badge-primary { background: var(--primary); }
.badge-accent { background: var(--accent); color: var(--white); }
.badge-success { background: var(--success); color: var(--white); }
.badge-danger { background: var(--danger); color: var(--white); }
.badge-warning { background: var(--warning); color: var(--white); }
.badge-info { background: var(--info); color: var(--white); }

/* ===== PAGINATION ===== */
.pagination { margin: 30px 0; }
.page-link { color: var(--primary); border: 1px solid var(--border); padding: 8px 14px; margin: 0 3px; border-radius: var(--radius); }
.page-link:hover { background: var(--gray-100); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: var(--white); }
.page-item.disabled .page-link { color: var(--gray-300); background: var(--gray-50); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: var(--gray-300); padding: 60px 0 30px; }
.site-footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; }
.site-footer a { color: var(--gray-300); transition: color 0.2s; }
.site-footer a:hover { color: var(--accent); }
.site-footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer-links li { margin-bottom: 10px; }
.site-footer-links li a { display: block; padding: 4px 0; }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 20px 0; margin-top: 40px; text-align: center; font-size: 0.9rem; }

/* ===== SLIDER ===== */
.slider { position: relative; overflow: hidden; }
.slider img { width: 100%; height: 500px; object-fit: cover; object-position: center; display: block; }
.slider-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--white); width: 80%; }
.slider-content h2 { font-size: 2.5rem; color: var(--white); margin-bottom: 20px; }
.slider-content p { font-size: 1.25rem; margin-bottom: 30px; }

/* Hero slider responsive fixes */
.hero-slider .item img { width: 100%; height: 500px; object-fit: cover; object-position: center center; display: block; }
@media (min-width: 1400px) {
    .hero-slider .item img { height: 600px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-slider .item img { height: 550px; }
}
@media (max-width: 991px) {
    .hero-slider .item img { height: 400px; }
    .hero-slider .item .caption h3 { font-size: 22px; }
    .hero-slider .item .caption p { font-size: 14px; }
}
@media (max-width: 767px) {
    .hero-slider .item img { height: 300px; }
    .hero-slider .item .caption { padding: 20px 16px; }
    .hero-slider .item .caption h3 { font-size: 18px; margin: 0 0 4px; }
    .hero-slider .item .caption p { font-size: 13px; display: none; }
}
@media (max-width: 575px) {
    .hero-slider .item img { height: 250px; object-position: center top; }
    .hero-slider .item .caption { padding: 16px 12px; }
    .hero-slider .item .caption h3 { font-size: 16px; }
}

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; display: block; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 20px; color: var(--white); opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h6 { color: #ffffff !important; font-size: 14px; font-weight: 600; margin: 0; }

/* Gallery thumb overlay (used in home page) */
.gallery-thumb { position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 16px; }
.gallery-thumb img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; display: block; }
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 15px; }
.gallery-thumb .overlay h6 { color: #ffffff !important; font-size: 14px; font-weight: 600; margin: 0; }

/* ===== NEWS ===== */
.news-item { display: flex; gap: 20px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; margin-bottom: 0; }
.news-image { width: 200px; height: 130px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.news-content h4 { font-size: 1.1rem; margin-bottom: 8px; }
.news-meta { font-size: 0.85rem; color: var(--text-muted); }
.news-meta span { margin-right: 15px; }

/* ===== FACULTIES/DEPARTMENTS ===== */
.dept-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px; text-align: center; transition: all 0.3s; }
.dept-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.dept-icon { width: 70px; height: 70px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px; }
.dept-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.dept-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* ===== GALLERY ===== */
.faculty-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.faculty-card img { width: 100%; height: 250px; object-fit: cover; }
.faculty-card-body { padding: 20px; }
.faculty-card-body h4 { font-size: 1.1rem; margin-bottom: 5px; }
.faculty-card-body p { font-size: 0.9rem; color: var(--accent); margin-bottom: 0; }

/* ===== ABOUT SECTION ===== */
.about-section { padding: 80px 0; }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ===== STATS ===== */
.stats-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 60px 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 1rem; opacity: 0.9; }

/* ===== CONTACT ===== */
.contact-map { height: 400px; border-radius: var(--radius-lg); overflow: hidden; }
.contact-info { list-style: none; padding: 0; }
.contact-info li { padding: 15px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 15px; }
.contact-info li i { width: 40px; height: 40px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-primary { background: var(--primary) !important; color: var(--white); }
.bg-accent { background: var(--accent) !important; }
.bg-light { background: var(--light) !important; }
.bg-white { background: var(--white) !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.p-0 { padding: 0 !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease; }
.slide-up { animation: slideUp 0.5s ease; }
.hover-lift:hover { transform: translateY(-3px); transition: transform 0.2s; }
.hover-scale:hover { transform: scale(1.02); transition: transform 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 2rem; }
    .slider img { height: 350px; }
    .news-item { flex-direction: column; }
    .news-image { width: 100%; height: 200px; }
}
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .section { padding: 40px 0; }
    .hero { padding: 50px 0; }
    .slider img { height: 250px; }
    .stat-number { font-size: 2rem; }
}
@media (max-width: 576px) {
    .container { padding: 0 12px; }
    .btn { padding: 8px 16px; font-size: 0.9rem; }
}

/* ===================================================================
   REUSABLE IMAGE CLASSES - Use everywhere for consistent sizing
   =================================================================== */

/* CIRCULAR PHOTO (Dignitaries, Profile cards) */
.uniform-circle {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: #e5e7eb;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.uniform-circle-sm { width: 80px;  height: 80px;  }
.uniform-circle-md { width: 120px; height: 120px; }
.uniform-circle-lg { width: 180px; height: 180px; }
.uniform-circle-xl { width: 220px; height: 220px; }

/* RECTANGULAR PHOTO (Officers table, Proctorial Board) */
.uniform-rect {
    width: 180px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    background: #e5e7eb;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.uniform-rect-sm { width: 100px; height: 120px; }
.uniform-rect-md { width: 140px; height: 160px; }
.uniform-rect-lg { width: 180px; height: 200px; }

/* Fallback avatar with initials */
.uniform-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #170C79 0%, #2d23a8 100%);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 180px;
    height: 180px;
    font-size: 48px;
}
.uniform-fallback.uniform-rect {
    border-radius: 6px;
    font-size: 36px;
}
.uniform-fallback-sm { width: 80px;  height: 80px;  font-size: 22px; }
.uniform-fallback-md { width: 120px; height: 120px; font-size: 32px; }
.uniform-fallback-lg { width: 180px; height: 180px; font-size: 48px; }

/* ===================================================================
   PAGE TITLE BAR (light yellow background with accent bar)
   =================================================================== */
.page-title-bar {
    background: #fff8e1;
    padding: 24px 0 22px;
    border-bottom: 4px solid var(--accent);
    margin-bottom: 30px;
    position: relative;
}
.page-title-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
}
.page-title-bar h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--primary);
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    padding-left: 0;
    border-left: 5px solid var(--accent);
    padding: 0 0 0 18px;
    line-height: 1.2;
}
.page-title-bar .breadcrumb {
    background: transparent;
    margin: 12px 0 0 23px;
    padding: 0;
    font-size: 13px;
}
.page-title-bar .breadcrumb-item a { color: var(--primary); }
.page-title-bar .breadcrumb-item.active { color: #6b7280; }
.page-title-bar .breadcrumb-item + .breadcrumb-item::before { color: #d1d5db; }

/* ===================================================================
   PART 1: DIGNITARIES CARDS (circular photos)
   =================================================================== */
.dignitary-card-modern {
    background: #fff;
    border-radius: 12px;
    padding: 28px 18px 22px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.dignitary-card-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.dignitary-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.dignitary-card-modern:hover::before { transform: scaleX(1); }
.dignitary-card-modern .photo-wrap {
    position: relative;
    display: inline-block;
    margin: 0 auto 16px;
}
.dignitary-card-modern .photo-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px dashed var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}
.dignitary-card-modern:hover .photo-wrap::after { opacity: 0.6; }
.dignitary-card-modern .name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 4px;
    font-family: 'Georgia', serif;
}
.dignitary-card-modern .designation {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px;
    line-height: 1.4;
}
.dignitary-card-modern .card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
}
.dignitary-card-modern .btn-uniform {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.dignitary-card-modern .btn-uniform:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.dignitary-card-modern .btn-uniform.outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.dignitary-card-modern .btn-uniform.outline:hover { background: var(--primary); color: #fff; }

/* ===================================================================
   PART 2: OFFICERS / GOVERNANCE TABLE (rectangular photos)
   =================================================================== */
.officers-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #fff;
}
.officers-table table { margin: 0; }
.officers-table thead th {
    background: var(--primary);
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 14px 12px;
    border: none;
    text-align: center;
    vertical-align: middle;
}
.officers-table thead th:first-child { width: 60px; }
.officers-table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-color: #f3f4f6;
}
.officers-table tbody tr:nth-of-type(even) { background: #fafbff; }
.officers-table tbody tr:nth-of-type(odd)  { background: #ffffff; }
.officers-table tbody tr:hover { background: #fef3c7 !important; }
.officers-table .name-cell strong { color: var(--primary); font-size: 15px; }
.officers-table .name-cell small { color: #6b7280; font-size: 12px; }
.officers-table .text-ellipsis {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
.officers-table .empty-dash { color: #9ca3af; font-style: italic; }

/* ===================================================================
   PART 3: PROCTORIAL BOARD PAGE (sidebar + profile + message)
   =================================================================== */

/* Sidebar nav (orange/grey theme) */
.proctor-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.proctor-sidebar .sidebar-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.proctor-sidebar .nav-link-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}
.proctor-sidebar .nav-link-item:last-child { border-bottom: none; }
.proctor-sidebar .nav-link-item i {
    color: var(--accent);
    margin-right: 10px;
    width: 18px;
    text-align: center;
    transition: transform 0.2s;
}
.proctor-sidebar .nav-link-item:hover {
    background: #fff7ed;
    color: var(--primary);
    padding-left: 20px;
}
.proctor-sidebar .nav-link-item:hover i { transform: translateX(3px); }
.proctor-sidebar .nav-link-item.active {
    background: var(--primary);
    color: #fff;
    border-left: 4px solid var(--accent);
    font-weight: 700;
}
.proctor-sidebar .nav-link-item.active i { color: var(--accent); }

/* Profile card (light pink/lavender) */
.proctor-profile-card {
    background: #fdf2f8;       /* light pink */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border: 1px solid #fbcfe8;
}
.proctor-profile-card .blue-header {
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.proctor-profile-card .card-body {
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}
.proctor-profile-card .info {
    flex: 1;
}
.proctor-profile-card .info .name {
    font-family: 'Georgia', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 6px;
}
.proctor-profile-card .info .designation {
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
}

/* Detail rows below card (alternating pink/blue) */
.proctor-detail-table {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #fbcfe8;
}
.proctor-detail-table .row-line {
    display: flex;
    border-bottom: 1px solid #fbcfe8;
}
.proctor-detail-table .row-line:last-child { border-bottom: none; }
.proctor-detail-table .row-line .label {
    width: 180px;
    padding: 12px 16px;
    font-weight: 700;
    color: var(--primary);
    background: #fdf2f8;
    flex-shrink: 0;
}
.proctor-detail-table .row-line .value {
    flex: 1;
    padding: 12px 16px;
    color: #374151;
}
.proctor-detail-table .row-line:nth-of-type(even) .label { background: #dbeafe; }   /* light blue */
.proctor-detail-table .row-line:nth-of-type(even) .value { background: #eff6ff; }

/* Message body (justified) */
.proctor-message {
    margin-top: 30px;
    background: #fff;
    padding: 28px 32px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 5px solid var(--accent);
}
.proctor-message h2 {
    font-family: 'Georgia', serif;
    color: var(--primary);
    font-size: 24px;
    margin: 0 0 16px;
    font-weight: 700;
}
.proctor-message p {
    text-align: justify;
    line-height: 1.8;
    color: #374151;
    font-size: 15px;
    margin-bottom: 14px;
}
.proctor-message .signature {
    margin-top: 24px;
    text-align: right;
    font-style: italic;
    color: #6b7280;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
    .uniform-circle,
    .uniform-circle-xl { width: 140px; height: 140px; }
    .uniform-circle-md { width: 100px; height: 100px; }
    .uniform-circle-sm { width: 70px;  height: 70px; }
    .uniform-rect,
    .uniform-rect-lg { width: 120px; height: 140px; }
    .uniform-rect-md { width: 100px; height: 120px; }
    .uniform-rect-sm { width: 80px;  height: 100px; }
    .uniform-fallback-lg { width: 140px; height: 140px; font-size: 36px; }
    .uniform-fallback-md { width: 100px; height: 100px; font-size: 26px; }
    .uniform-fallback-sm { width: 70px;  height: 70px;  font-size: 18px; }

    .proctor-profile-card .card-body { flex-direction: column; text-align: center; }
    .proctor-detail-table .row-line { flex-direction: column; }
    .proctor-detail-table .row-line .label { width: 100%; }
    .page-title-bar h1 { font-size: 24px; }
}
@media (max-width: 576px) {
    .uniform-circle,
    .uniform-circle-xl { width: 110px; height: 110px; }
    .uniform-rect,
    .uniform-rect-lg { width: 100px; height: 120px; }
}

/* ====================================================================
   POST SLIDER (Recent Activity) — Swiper-based, theme-consistent
   ==================================================================== */
.post-slider-section { background: #fff; }
.post-slider-section .section-title h2 { color: var(--primary); }
.post-slider-section .section-title h2::after { background: var(--accent); }

.post-slider-wrap { position: relative; padding: 0 50px; }

.post-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}
.post-card:hover,
.post-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    outline: none;
}
.post-card:focus-visible { box-shadow: 0 0 0 3px var(--accent), 0 12px 28px rgba(0,0,0,0.16); }

.post-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
}
.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card-image { transform: scale(1.05); }
.post-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 56px;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
}

.post-card-body {
    padding: 18px 16px 22px;
    text-align: center;
}
.post-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}

/* Swiper arrow buttons — theme-consistent */
.post-slider-section .swiper-button-prev,
.post-slider-section .swiper-button-next {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
}
.post-slider-section .swiper-button-prev::after,
.post-slider-section .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}
.post-slider-section .swiper-button-prev:hover,
.post-slider-section .swiper-button-next:hover,
.post-slider-section .swiper-button-prev:focus-visible,
.post-slider-section .swiper-button-next:focus-visible {
    background: var(--accent);
    outline: none;
}
.post-slider-section .swiper-button-prev { left: 0; }
.post-slider-section .swiper-button-next { right: 0; }

/* Swiper pagination dots */
.post-slider-section .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    transition: background 0.2s ease, width 0.2s ease;
}
.post-slider-section .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

/* Responsive: shrink arrows & spacing on mobile */
@media (max-width: 768px) {
    .post-slider-wrap { padding: 0 12px; }
    .post-slider-section .swiper-button-prev,
    .post-slider-section .swiper-button-next { display: none; }
    .post-card-title { font-size: 14px; min-height: 38px; }
}

/* Recent Activity post images - responsive */
.post-card-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
}
.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card-image { transform: scale(1.05); }
.post-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 56px;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
}

/* Officers table / Governance members - fully responsive */
.officers-table { overflow-x: auto; }
.officers-table table { min-width: 600px; }

@media (max-width: 991px) {
    .officers-table .name-cell strong { font-size: 13px; }
    .officers-table .text-ellipsis { max-width: 140px; }
}
@media (max-width: 767px) {
    .officers-table table { min-width: 500px; }
    .officers-table thead th { font-size: 11px; padding: 10px 8px; }
    .officers-table tbody td { padding: 10px 8px; }
    .officers-table .name-cell strong { font-size: 12px; }
    .officers-table .text-ellipsis { max-width: 100px; }
    .uniform-rect-lg { width: 80px; height: 96px; }
    .uniform-rect { width: 80px; height: 96px; }
}
@media (max-width: 575px) {
    .officers-table table { min-width: 420px; }
    .officers-table thead th { font-size: 10px; padding: 8px 6px; }
    .officers-table tbody td { padding: 8px 6px; }
    .officers-table .name-cell { min-width: 120px; }
    .officers-table .text-ellipsis { max-width: 80px; }
    .uniform-rect-lg { width: 64px; height: 76px; }
    .uniform-rect { width: 64px; height: 76px; }
}