/* assets/css/style.css - Flavita WordPress Theme Style for St. Servatius' College */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700;800&display=swap');

:root {
    --primary: #7A0016;          /* Servatian Maroon/Crimson */
    --primary-dark: #58000F;
    --primary-light: #9B1B30;
    --accent: #D4AF37;           /* Academic Gold */
    --accent-hover: #B89320;
    --dark-navy: #0F172A;        /* Header & Footer Slate Dark */
    --dark-surface: #1E293B;
    --light-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Cinzel', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-heading);
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-bar {
    background-color: var(--dark-navy);
    color: #CBD5E1;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-info-item span.icon {
    color: var(--accent);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-actions a {
    color: #CBD5E1;
    font-weight: 500;
}

.top-actions a:hover {
    color: var(--accent);
}

.user-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   MAIN BRANDING HEADER
   ========================================================================== */
.main-header {
    background: #FFFFFF;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branding {
    display: flex;
    align-items: center;
    gap: 18px;
}

.college-logo {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 800;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 10px rgba(122, 0, 22, 0.3);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.college-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    border: 2.5px solid var(--accent);
    box-shadow: 0 4px 10px rgba(122, 0, 22, 0.25);
    background: #FFFFFF;
    padding: 2px;
    transition: var(--transition);
}

.college-logo-img:hover {
    transform: scale(1.05);
}

.brand-text h1 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-search {
    position: relative;
    width: 280px;
}

.header-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    background: var(--light-bg);
}

.header-search input:focus {
    border-color: var(--primary);
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(122, 0, 22, 0.1);
}

.header-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

.header-search button:hover {
    color: var(--primary);
}

/* ==========================================================================
   PRIMARY NAVIGATION (FLAVITA DYNAMIC DROPDOWNS & SUB-MENUS)
   ========================================================================== */
.navbar {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.main-menu > li:hover > a,
.main-menu > li.active > a {
    background-color: var(--primary-dark);
    color: var(--accent);
}

/* Dropdown Arrow */
.arrow-down {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.main-menu > li:hover .arrow-down {
    transform: rotate(180deg);
}

/* Sub-Menu Styling */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #FFFFFF;
    list-style: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
}

.main-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    border-bottom: 1px solid var(--border-color);
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu li a {
    display: block;
    padding: 12px 18px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.sub-menu li a:hover {
    background-color: #FFF9E6;
    color: var(--primary);
    padding-left: 24px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 10px;
}

/* ==========================================================================
   TOP HERO BANNER SLIDER
   ========================================================================== */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 520px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    /* align-items and justify-content are set inline per slide for alignment control */
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    /* Gradient is set inline per slide in slider.php based on text_align setting */
    background: linear-gradient(90deg, rgba(15,23,42,0.85) 0%, rgba(122,0,22,0.4) 60%, rgba(0,0,0,0.2) 100%);
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    color: #FFFFFF;
    padding: 0 20px;
}

.slide-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--dark-navy);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.slide-content h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.15rem;
    color: #E2E8F0;
    margin-bottom: 25px;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--btn-bg, var(--accent));
    color: var(--btn-text, var(--dark-navy));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.1);
    color: var(--btn-text, #000);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    margin-left: 10px;
}

.btn-outline:hover {
    background: #FFFFFF;
    color: var(--primary);
}

/* Slider Navigation Controls */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.6);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
}

.slider-nav-btn:hover {
    background: var(--primary);
    color: var(--accent);
    border-color: var(--accent);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 32px;
    border-radius: 10px;
}

/* ==========================================================================
   BREAKING NEWS TICKER
   ========================================================================== */
.ticker-section {
    background: var(--dark-navy);
    color: #FFF;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--accent);
}

.ticker-label {
    background: var(--primary);
    color: var(--accent);
    font-weight: 700;
    padding: 10px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    padding: 10px 20px;
}

.ticker-text {
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    font-weight: 500;
    font-size: 0.9rem;
}

.ticker-text a {
    color: #E2E8F0;
}

.ticker-text a:hover {
    color: var(--accent);
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   HOMEPAGE CONTENT SECTIONS
   ========================================================================== */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--dark-navy);
    font-weight: 800;
    margin-top: 5px;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Principal Greeting Card */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.welcome-img {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.welcome-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.welcome-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
    color: #FFF;
    padding: 20px;
}

.welcome-badge h4 {
    font-size: 1.1rem;
    color: var(--accent);
}

.welcome-badge p {
    font-size: 0.85rem;
    color: #CBD5E1;
}

.welcome-text h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.welcome-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Stats Counter Grid */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #FFFFFF;
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 1rem;
    color: #E2E8F0;
    margin-top: 5px;
    font-weight: 500;
}

/* News Grid Layout (Flavita Style) */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.news-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #E2E8F0;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.news-card-body {
    padding: 22px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-card-title a {
    color: var(--dark-navy);
}

.news-card-title a:hover {
    color: var(--primary);
}

.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-navy);
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
}

.notice-list {
    list-style: none;
}

.notice-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    text-align: center;
    min-width: 60px;
}

.notice-date .day {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.notice-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.notice-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.notice-info h5 a {
    color: var(--dark-navy);
}

.notice-info h5 a:hover {
    color: var(--primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--dark-navy);
    color: #94A3B8;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #CBD5E1;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    background: #090D16;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
    .main-menu { display: none; }
    .mobile-toggle { display: block; }
    .news-grid { grid-template-columns: 1fr; }
    .welcome-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .slider-container { height: 420px; }
    .slide-content h2 { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    .top-bar-content { flex-direction: column; text-align: center; }
    .header-wrapper { flex-direction: column; gap: 15px; text-align: center; }
    .header-search { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .slider-container { height: 350px; }
    .slide-content h2 { font-size: 1.6rem; }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}
