/* Global Variables & Reset */
:root {
    --primary-color: #A6192E;
    /* Deep Red matching the image */
    /* Deep Oxford Blue -> Now Red */
    --secondary-color: #FFC72C;
    /* Bright Golden Yellow */
    /* Golden Yellow */
    --accent-color: #800000;
    /* Darker Maroon for accents */
    /* Crimson Red */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f4f4;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    align-items: center;
    /* Ensure vertical alignment */
    position: relative;
    z-index: 3001;
    /* Higher than main-nav */
}

/* Top Bar Dropdown */
.top-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    cursor: pointer;
}

.top-dropdown span {
    font-weight: bold;
    color: var(--secondary-color);
}

.top-submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    /* Align to right */
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 3002;
    padding: 10px 0;
}

.top-dropdown:hover .top-submenu {
    display: block;
}

.top-submenu li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-dark);
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}

.top-submenu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Social Icons in Top Bar */
.social-icons {
    display: inline-flex;
    align-items: center;
}

.social-icons a {
    color: var(--text-light);
    margin-left: 10px;
    font-size: 1rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.header-main {
    background: #fff;
    padding: 15px 5%;
    /* Restore standard padding for mobile */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

@media (min-width: 992px) {
    .header-main {
        padding-right: 0;
        /* Remove right padding on desktop for full-width banner */
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.college-logo {
    height: 100px;
    /* Reduced to match banner height */
    width: auto;
}

.college-info h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.college-info p {
    font-size: 1rem;
    color: #666;
}

/* Detailed Navigation Menu */
.main-nav {
    background-color: var(--primary-color);
    position: relative;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    /* Safety cap */
    margin: 0 auto;
}

.header-banner {
    display: none;
    /* Hidden on small screens by default */
}

@media (min-width: 992px) {

    /* Only show on larger screens */
    .header-banner {
        display: block;
        flex: 1;
        /* Take remaining space */
        text-align: right;
        /* Align image to right */
        height: 100px;
        /* User requested 100px height */
    }

    .header-banner img {
        height: 100%;
        /* Match container height */
        width: auto;
        min-width: 600px;
        /* User requested 600px width */
        object-fit: cover;
        /* Fill the area, might crop slightly if aspect ratio differs */
        max-width: 100%;
        /* Prevent overflow */
    }
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-item {
    position: relative;
    padding: 15px 12px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.menu-item>a {
    display: block;
    width: 100%;
}

/* Dropdown */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--secondary-color);
}

.submenu li {
    position: relative;
    border-bottom: 1px solid #eee;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.submenu li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 25px;
}

/* Nested Dropdown */
.menu-item:hover>.submenu,
.submenu li:hover>.submenu {
    display: block;
}

.submenu .submenu {
    top: 0;
    left: 100%;
    margin-top: -3px;
    /* Align border */
}

/* Arrow indicators */
.has-children>a::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 5px;
}

.submenu .has-children>a::after {
    content: ' ▶';
    float: right;
}

/* Breadcrumb / Internal Page Header */
.page-breadcrumb {
    background: url('../slider_new_2.png') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
}

.page-breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-breadcrumb-content {
    position: relative;
    z-index: 2;
}

.page-breadcrumb-content h1 {
    font-family: var(--font-heading);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    height: 500px;
    position: relative;
    background: #000;
}

.hero-slider {
    flex: 3;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
}

/* Notice Board Wrapper */
.notice-board-wrapper {
    flex: 1;
    background: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    min-width: 300px;
    height: 100%;
    overflow: hidden;
}

.notice-header {
    background: var(--accent-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.notice-container {
    flex-grow: 1;
    overflow: hidden;
    padding: 10px;
    position: relative;
}

.marquee-content {
    animation: scrollUp 20s linear infinite;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-item {
    background: #f9f9f9;
    padding: 10px 15px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.notice-item:hover {
    transform: translateX(5px);
    background: #fff;
    border-left-color: var(--accent-color);
}

.notice-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.notice-item a {
    font-weight: 500;
    color: var(--text-dark);
}

@keyframes scrollUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

.notice-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Content Sections */
.section {
    padding: 60px 10%;
}

.section.bg-light {
    background-color: #f8f9fa;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 50px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .header-main {
        padding: 10px 5%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .college-logo {
        height: 70px;
    }

    .college-info h1 {
        font-size: 1.3rem;
    }

    .college-info p {
        font-size: 0.85rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-section {
        flex-direction: column;
        height: auto;
    }

    .hero-slider {
        height: 250px;
        width: 100%;
    }

    /* Horizontal Notice Board on Mobile */
    .notice-board-wrapper {
        height: 60px;
        /* Fixed height for single row */
        width: 100%;
        min-width: 0;
        border-left: none;
        border-top: 4px solid var(--secondary-color);
        flex-direction: row;
        align-items: center;
        overflow: hidden;
        background: #fff;
        /* Keep white on mobile for readability */
    }

    .notice-header {
        width: auto;
        padding: 0 15px;
        height: 100%;
        display: flex;
        align-items: center;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .notice-container {
        height: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }

    .marquee-content {
        flex-direction: row;
        animation: scrollLeft 15s linear infinite;
        padding-left: 100%;
        /* Start from off-screen */
        gap: 30px;
    }

    .notice-item {
        flex-shrink: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

    .notice-item:hover {
        transform: none;
        background: transparent;
    }

    .notice-date {
        display: inline-block;
        margin: 0;
        background: var(--secondary-color);
        color: var(--primary-color);
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: bold;
    }

    .top-bar {
        display: none;
    }

    /* Mobile Menu - Off-Canvas Sidebar */
    .main-nav {
        display: block;
        /* Always block, but hidden via transform */
        position: fixed;
        top: 0;
        left: -280px;
        /* Hide off-screen */
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease-in-out;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 20px;
        /* Reduced padding since top-bar is gone */
    }

    .main-nav.active {
        left: 0;
    }

    .menu {
        flex-direction: column;
        background: var(--primary-color);
    }

    .menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        padding: 12px 20px;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-top: none;
        background: rgba(0, 0, 0, 0.2);
        display: none;
    }

    .submenu li a {
        color: rgba(255, 255, 255, 0.8);
        border-left: 3px solid transparent;
    }

    .submenu li a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: white;
        padding-left: 25px;
        border-left-color: var(--secondary-color);
    }

    .menu-item.active>.submenu {
        display: block !important;
    }

    .menu-item:hover>.submenu {
        display: none;
        /* Disable hover on mobile to rely on click */
    }
}

/* Extra Small Devices - Top Bar Resp */
@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        text-align: center;
    }

    .contact-info,
    .social-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .social-icons {
        margin-top: 5px;
    }

    .top-dropdown {
        margin-right: 0;
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Floating Action Button (FAB) Menu */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 5000;
    font-family: var(--font-body);
}

.fab-main {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none;
    outline: none;
}

.fab-main:hover {
    transform: scale(1.1);
}

.fab-options {
    position: absolute;
    bottom: 70px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease 3s;
    /* 3s delay before disappearing */
}

.fab-container:hover .fab-options,
.fab-container:focus-within .fab-options {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    transition: all 0.3s ease 0s;
    /* Instant appear on hover */
}

.fab-btn {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: background 0.3s;
}

.fab-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.fab-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fab-options a:hover::after {
    opacity: 1;
}

/* Revised Contact Page Styles - Split Card Design */
.contact-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto 50px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    flex-wrap: wrap;
    /* Allow stacking on mobile */
}

.contact-details {
    flex: 1;
    min-width: 300px;
    background-color: var(--primary-color);
    /* Brand Color Background */
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    width: fit-content;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    /* Yellow accent for headers */
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-form-wrapper {
    flex: 1.5;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    /* Removed individual border/shadow */
}

.contact-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Form Styles Refinement */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(166, 25, 46, 0.1);
}

.input-row {
    display: flex;
    gap: 20px;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--accent-color);
}

.map-container {
    height: 450px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-details {
        padding: 30px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}

/* Tooltip text */
.fab-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fab-btn:hover::before {
    opacity: 1;
}

/* Manager's Message Photo Styling */
@media (max-width: 600px) {
    .manager-photo-wrapper {
        float: none !important;
        margin: 0 auto 30px !important;
        width: 100% !important;
        max-width: 250px;
    }
}