:root {
    --primary: #1a237e;
    --secondary: #ff6f00;
    --accent: #0d47a1;
    --light-bg: #f5f7fa;
    --dark-bg: #1a237e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
}
.top-bar a { color: #ffd54f; text-decoration: none; }

/* Navbar */
.navbar-custom {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2px 0;
    position: fixed;
    top: 33px;
    left: 0;
    right: 0;
    z-index: 1030;
}
.navbar-custom .container {
    flex-wrap: nowrap;
}
.navbar-custom .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    padding: 5px 15px;
    transition: 0.3s;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--secondary) !important;
}

/* Hamburger Icon */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
}
.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}
.hamburger-icon span:nth-child(2) { width: 70%; }

/* Mobile Sidebar */
.sidebar-menu { margin: 0; padding: 0; }
.sidebar-menu li a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.3s;
}
.sidebar-menu li a i { margin-right: 10px; color: var(--primary); }
.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: var(--light-bg);
    color: var(--primary);
    padding-left: 25px;
}
.college-logo { height: 90px; margin: -10px 0; border-radius: 50%; background: transparent; mix-blend-mode: multiply; }
.college-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.2;
}
.college-subtitle {
    color: #666;
    font-size: 0.8rem;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero-banner h1 { font-size: 2.5rem; font-weight: 700; }
.hero-banner p { font-size: 1.2rem; opacity: 0.9; }

/* Carousel */
.carousel-item img {
    height: 400px;
    object-fit: cover;
}
@media(max-width:768px) {
    .carousel-item img { height: 200px; }
}

/* Sections */
.section { padding: 60px 0; }
.section-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

/* Notice Board */
.notice-board {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    max-height: 300px;
    overflow: hidden;
    position: relative;
}
.notice-scroll {
    animation: scrollNotice 12s linear infinite;
}
.notice-board:hover .notice-scroll {
    animation-play-state: paused;
}
@keyframes scrollNotice {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.notice-item {
    border-left: 3px solid var(--secondary);
    padding: 10px 15px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 0 5px 5px 0;
    transition: 0.3s;
}
.notice-item:hover { transform: translateX(5px); }
.notice-date { font-size: 0.75rem; color: #999; }

/* Course Cards */
.course-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    text-align: center;
    padding: 30px 20px;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.course-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.course-card h5 { color: var(--primary); font-weight: 600; }

/* Footer */
.footer {
    background: linear-gradient(135deg, #0d1b3e, #1a237e);
    color: #ccc;
    padding: 50px 0 20px;
}
.footer h5 { color: #ffd54f; font-weight: 600; margin-bottom: 15px; }
.footer a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer a:hover { color: #ffd54f; padding-left: 3px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { font-size: 0.9rem; }
.footer-links li i { font-size: 0.7rem; margin-right: 5px; color: #ffd54f; }
.footer-contact { list-style: none; padding: 0; font-size: 0.9rem; }
.footer-contact li { margin-bottom: 10px; }
.footer-contact li i { color: #ffd54f; margin-right: 8px; }
.social-links { display: flex; gap: 10px; }
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1rem;
    transition: 0.3s;
}
.social-icon:hover { background: #ffd54f; color: #1a237e !important; transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.85rem;
}

/* Forms */
.form-section {
    background: var(--light-bg);
    padding: 40px 0;
}
.form-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary-custom {
    background: var(--secondary);
    border: none;
    color: #fff;
}
.btn-secondary-custom:hover { background: #e65100; color: #fff; }

/* Admin */
.admin-sidebar {
    background: var(--primary);
    min-height: 100vh;
    padding-top: 20px;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 12px 20px;
    border-radius: 5px;
    margin: 2px 10px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}
.stat-card {
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    text-align: center;
}
.stat-card h3 { font-size: 2rem; font-weight: 700; }

/* Status Badges */
.badge-pending { background: #ff9800; }
.badge-approved { background: #4caf50; }
.badge-rejected { background: #f44336; }

/* Responsive */
@media(max-width:768px) {
    .college-title { font-size: 0.75rem; white-space: normal; }
    .college-logo { height: 45px; margin: 0; }
    .navbar-brand div {
        max-width: calc(100vw - 130px);
    }
    .navbar-brand div div {
        font-size: 0.65rem !important;
        white-space: normal;
        line-height: 1.3;
    }
    .navbar-brand .college-subtitle {
        display: none;
    }
    .navbar-custom {
        top: 0;
    }
    .hero-banner { padding: 40px 0; }
    .hero-banner h1 { font-size: 1.5rem; }
    .section { padding: 30px 0; }
    .top-bar { display: none !important; }
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
    animation: pulse 2s infinite;
}
.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.whatsapp-btn { background: #25d366; }
.call-btn { background: #0d47a1; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
