/* Main Stylesheet for Caussanel College CMS */
:root {
    --primary-color: #003366; /* Deep Academic Blue */
    --secondary-color: #DAA520; /* Goldenrod/Gold for accents */
    --accent-color: #cc0000; /* Subtle red for highlights/warnings */
    --text-color: #333333;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --light-gray: #e0e0e0;
    --font-heading: 'Cinzel', serif; /* Classic, prestigious feel */
    --font-body: 'Open Sans', sans-serif; /* Clean, readable */
    --spacing-unit: 1rem;
    --header-height: 120px;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header Section */
header {
    background-color: var(--white);
    border-bottom: 5px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container img {
    height: 100px;
    width: auto;
    margin-right: 1.5rem;
}

.college-info h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.college-info .subtitle {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}

.college-info .accreditation {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 0.2rem;
}

/* Navigation */
nav {
    background-color: var(--primary-color);
    color: var(--white);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Centered menu */
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-menu a:hover,
.nav-menu li.active a {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Dropdown */
.nav-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 100;
}

.nav-menu li:hover ul {
    display: block;
}

.nav-menu li ul li {
    width: 100%;
}

.nav-menu li ul a {
    color: var(--text-color);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    text-transform: capitalize;
}

.nav-menu li ul a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Hero / Slider Section */
.hero-section {
    position: relative;
    height: 400px;
    background: linear-gradient(rgba(0,51,102,0.7), rgba(0,51,102,0.7)), url('images/campus-hero.jpg'); /* Fallback/Placeholder */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    background-color: #fff;
}

/* Flash News */
.flash-news {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.flash-label {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.2rem 0.8rem;
    margin-right: 1rem;
    border-radius: 2px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.flash-news marquee {
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Modern CSS Marquee Replacement (Full Length) */
.marquee-container {
    flex-grow: 1;
    overflow: hidden;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; /* Starts text at right edge of container */
    animation: marquee-scroll 30s linear infinite;
    will-change: transform;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); } /* Moves left by (container + text) width */
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* Main Content Area */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: 400px;
}

.grid-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Cards for News/Events */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 1.5rem;
}

.card-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #222; /* Dark footer */
    color: #ccc;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.footer-links li {
    list-style: none;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hidden on mobile as requested */
    }

    .header-main {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem; /* Reduced padding */
    }

    .logo-container img {
        height: 60px; /* Further reduced */
        margin-right: 0;
        margin-bottom: 0.3rem;
    }

    .college-info h1 {
        font-size: 1.2rem;
        line-height: 1.1;
    }

    .college-info .subtitle {
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }

    .menu-toggle {
        display: none; /* Hide the toggle since menu will be visible */
    }

    .nav-menu {
        display: flex; /* Visible as requested */
        flex-direction: row;
        overflow-x: auto; /* Horizontal scroll if too long */
        white-space: nowrap;
        width: 100%;
        background-color: var(--primary-color);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for cleaner look */
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu li {
        flex: 0 0 auto;
        border-bottom: none;
    }

    .nav-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }

    /* Submenus on mobile - making them hidden to keep menu area compact */
    .nav-menu li ul {
        display: none; 
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Base style for menu-toggle (hidden on desktop) */
.menu-toggle {
    display: none;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.bg-light { background-color: var(--white); }
.shadow { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
