/* Global Variables & Reset */
:root {
    --primary-color: #8B0000;
    /* Deep Maroon for RNS ITI */
    --secondary-color: #FFD700;
    /* Gold */
    --accent-color: #5F0000;
    /* Darker Maroon */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f4f4;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    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;
    width: 100%;
}

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

ul {
    list-style: none;
}

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

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 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;
    position: relative;
    z-index: 3001;
}

.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;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    z-index: 3002;
    padding: 10px 0;
    overflow: hidden;
}

.top-dropdown:hover .top-submenu {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

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

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Main Header */
.header-main {
    background: #fff;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

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

.college-logo {
    height: 90px;
    width: auto;
    transition: transform 0.3s;
}

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

.college-info h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 5px;
}

.college-info p {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.header-banner {
    display: none;
}

@media (min-width: 992px) {
    .header-banner {
        display: block;
        height: 90px;
    }

    .header-banner img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

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

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

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

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

.menu-item:hover>a {
    color: var(--secondary-color);
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 260px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--secondary-color);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
}

.menu-item:hover .submenu {
    display: block;
    animation: slideDown 0.3s ease;
}

.submenu li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

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

.slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.slider-overlay h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    animation: fadeInUp 1s ease;
}

.slider-overlay p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    max-width: 800px;
    animation: fadeInUp 1.2s ease;
}

.hero-btns {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1.4s ease;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

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

/* Notice Board */
.notice-board-wrapper {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.notice-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: 700;
}

.notice-container {
    padding: 20px;
    flex: 1;
    overflow: hidden;
}

.marquee-content {
    animation: scrollUp 15s linear infinite;
}

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

.notice-item {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

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

.notice-item a {
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* Trades Section */
.section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.trades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trade-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.trade-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.trade-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.trade-card h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Footer */
footer {
    background: #1a0000;
    color: #d4b5b5;
    padding: 70px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto 50px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

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

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .top-bar {
        display: none;
    }

    .header-main {
        flex-direction: column;
        padding: 20px;
        position: relative;
    }

    .logo-container {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }

    .college-logo {
        height: 80px;
        margin-bottom: 15px;
    }

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

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 3000;
    }

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

    /* Off-Canvas Navigation */
    .main-nav {
        display: block !important;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-top: 60px;
    }

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

    .menu {
        flex-direction: column;
    }

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

    .menu-item>a {
        padding: 15px 25px;
        width: 100%;
    }

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

    .menu-item.active .submenu {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .submenu li a {
        padding-left: 45px;
        color: rgba(255, 255, 255, 0.8);
    }

    .hero-section {
        height: 400px;
    }

    .slider-overlay h2 {
        font-size: 1.8rem;
    }

    .notice-board-wrapper {
        position: relative;
        width: 95%;
        margin: -30px auto 30px;
        transform: none;
        height: 300px;
    }
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 5000;
}

.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 10px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.fab-options {
    position: absolute;
    bottom: 75px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    pointer-events: none;
}

.fab-container:hover .fab-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fab-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
