:root {
    --primary: #1b3a5c;
    --secondary: #c0392b;
    --accent: #2c5f8a;
    --light-bg: #f5f7fa;
    --dark-bg: #1b3a5c;
}

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: #c0392b;
    color: #fff;
    font-size: 0.82rem;
    padding: 7px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    transition: transform 0.3s ease;
}
.top-bar.hidden { transform: translateY(-100%); }
.top-bar a { color: #ffeaa7; text-decoration: none; }

/* Navbar */
.navbar-custom {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 2px 0;
    position: fixed;
    top: 33px;
    left: 10px;
    right: 10px;
    z-index: 1030;
    border-radius: 50px;
    margin-top: 5px;
    transition: top 0.3s ease;
}
.navbar-custom.no-topbar { top: 5px; }
.navbar-custom .container { flex-wrap: nowrap; }
.navbar-custom .nav-link {
    color: #1b3a5c !important;
    font-weight: 600;
    padding: 5px 15px;
    transition: 0.3s;
    font-size: 0.92rem;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #c0392b !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.1rem;
    line-height: 1.2;
}
.college-subtitle {
    color: #666;
    font-size: 0.8rem;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1b3a5c 0%, #2c5f8a 100%);
    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; }

/* 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: #f5f7fa;
    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 #c0392b;
    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: #1b3a5c;
    margin-bottom: 15px;
}
.course-card h5 { color: #1b3a5c; font-weight: 600; }

/* Footer */
.footer {
    background: linear-gradient(135deg, #1b3a5c, #0f2440);
    color: #ccc;
    padding: 50px 0 20px;
}
.footer h5 { color: #f39c12; font-weight: 600; margin-bottom: 15px; }
.footer a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer a:hover { color: #f39c12; 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: #f39c12; }
.footer-contact { list-style: none; padding: 0; font-size: 0.9rem; }
.footer-contact li { margin-bottom: 10px; }
.footer-contact li i { color: #f39c12; 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: #f39c12; color: #1b3a5c !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;
}

/* =====================
   ADMISSION FORM - Professional
   ===================== */
.form-section { background: #eef2f7; padding: 30px 0; min-height: 80vh; }

/* Stepper */
.step-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 50px;
    background: #e2e8f0; color: #64748b;
    font-weight: 600; font-size: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.step-chip.active {
    background: #1b3a5c;
    color: #fff;
    border-color: #1b3a5c;
    box-shadow: 0 4px 12px rgba(27,58,92,0.3);
}
.step-chip.completed {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}
.step-number {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.step-line { width: 30px; height: 2px; background: #cbd5e1; margin: 0 2px; }

/* Form Card Wrapper */
.form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(27,58,92,0.10);
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe4ee;
}

/* Form Header */
.form-card .form-header {
    background: linear-gradient(135deg, #1b3a5c 0%, #2c5f8a 100%);
    color: #fff;
    text-align: center;
    padding: 20px 20px 16px;
    border-bottom: 4px solid #c0392b;
    position: relative;
}
.form-card .form-header h5 {
    margin: 0; font-weight: 800; font-size: 1.05rem;
    letter-spacing: 1px; text-transform: uppercase;
}
.form-card .form-header p {
    margin: 5px 0 0; opacity: 0.85; font-size: 0.8rem;
}

/* App No Bar */
.app-no-bar {
    background: #f1f5f9;
    border-bottom: 1px solid #dbe4ee;
    padding: 9px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #475569;
}
.app-no-bar strong { color: #1b3a5c; font-size: 0.95rem; }

/* Form Body */
.form-card .form-body { padding: 28px 28px 20px; }

/* Section Heading inside form */
.form-card h5.text-primary {
    color: #1b3a5c !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 14px;
    background: #eef2f7;
    border-left: 4px solid #1b3a5c;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px !important;
}

/* Labels */
.form-card .form-label {
    font-weight: 600;
    font-size: 0.78rem;
    margin-bottom: 4px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Input Fields */
.form-card .form-control,
.form-card .form-select {
    border-radius: 7px;
    font-size: 0.9rem;
    border: 1.5px solid #d1d5db;
    background: #f9fafb;
    padding: 9px 12px;
    transition: all 0.2s;
    color: #1e293b;
}
.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: #1b3a5c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27,58,92,0.10);
    outline: none;
}
.form-card .form-control::placeholder { color: #9ca3af; font-size: 0.85rem; }

/* Row divider inside form */
.form-card .border-bottom { border-color: #e2e8f0 !important; }
.form-card h6.border-bottom {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1b3a5c;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn-primary { background: #1b3a5c; border-color: #1b3a5c; font-weight: 600; }
.btn-primary:hover { background: #c0392b; border-color: #c0392b; }
.btn-secondary { background: #64748b; border-color: #64748b; font-weight: 600; }

/* Course Select Cards */
.course-select-card {
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    transition: all 0.2s;
    background: #f9fafb;
    cursor: pointer;
}
.course-select-card:hover { border-color: #1b3a5c !important; background: #eef2f7; }
.course-select-card:has(input:checked) {
    border-color: #1b3a5c !important;
    background: #dbeafe !important;
    box-shadow: 0 0 0 3px rgba(27,58,92,0.12);
}

/* Alert inside form */
.form-card .alert { border-radius: 8px; font-size: 0.85rem; }

/* Floating Buttons */
.floating-buttons {
    position: fixed; bottom: 20px; right: 20px;
    z-index: 9999; display: flex; flex-direction: column; gap: 12px;
}

/* 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; }
    .step-label { display: none; }
    .step-line { width: 12px; }
    .form-card .form-body { padding: 16px; }
}
