/* 
   College Admission Portal - Modern Design System
   Font: Outfit (Headings), Inter (Body)
   Palette: Crimson (#8b1e1e), Slate (#1e293b), Smoke (#f8fafc)
*/

:root {
    --primary-color: #6d0000; /* Deep Royal Maroon */
    --primary-hover: #8b0000;
    --primary-light: #fff1f1;
    --secondary-color: #0f172a; /* Premium Navy/Slate */
    --accent-color: #d4af37; /* Metallic Gold */
    --accent-hover: #b8860b;
    --bg-light: #f1f5f9;
    --bg-body: #e2e8f0; /* Slight tint for modern depth */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Utilities */
.text-primary-color { color: var(--primary-color) !important; }
.text-secondary-color { color: var(--secondary-color) !important; }
.text-accent-color { color: var(--accent-color) !important; }
.bg-primary-color { background-color: var(--primary-color) !important; }
.bg-secondary-color { background-color: var(--secondary-color) !important; }
.text-crimson { color: var(--primary-color); }
.bg-crimson { background-color: var(--primary-color); color: #fff; }
.shadow-sm { box-shadow: var(--card-shadow) !important; }

/* Top Bar Styling */
.top-bar {
    background-color: var(--secondary-color);
    color: #e2e8f0;
    font-size: 13px;
    padding: 8px 0;
    font-weight: 500;
}

.top-bar .help-desk {
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-bar .contact-item i {
    color: var(--accent-color);
    margin-right: 6px;
}

/* Main Header Redesign */
.main-header {
    background: #fff;
    padding: 0.85rem 0;
    text-align: center;
    border-bottom: 2px solid #edeff2;
}

.main-header .logo-img {
    max-height: 75px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
    transition: var(--transition);
}

.main-header h1 {
    font-size: 1.6rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.2px;
    margin-bottom: 0.1rem;
}

.main-header .hindi-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #b71c1c; /* Maroon for Hindi */
    margin-bottom: 0.1rem;
}

.main-header .affiliation {
    font-size: 0.85rem;
    color: #991b1b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (min-width: 992px) {
    .main-header h1 {
        font-size: 1.55rem;
        white-space: nowrap;
    }
    .main-header .hindi-title {
        font-size: 1.35rem;
        white-space: nowrap;
    }
    .main-header .affiliation {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .main-header .logo-img {
        max-height: 80px;
    }
}

/* Navbar Enhancement */
.navbar-custom {
    background-color: var(--secondary-color) !important;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1040;
}

/* Widen navbar container to fit all nav items on one row */
@media (min-width: 992px) {
    .navbar-custom .container {
        max-width: 1170px;
    }
}

.navbar-custom .nav-link {
    color: #f1f5f9 !important;
    font-weight: 600;
    padding: 1.1rem 1.25rem !important;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}

.navbar-custom .nav-link:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--accent-color) !important;
}

.navbar-custom .nav-link i {
    margin-right: 6px;
    font-size: 1.1rem;
}

/* Home Box Links */
.home-link-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.4rem;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: 'Outfit', sans-serif;
    box-shadow: var(--card-shadow);
    background: #fff;
}

.home-link-box i {
    font-size: 2rem;
    margin-right: 15px;
}

.home-link-box.brochure {
    color: var(--primary-color);
    border-color: #fee2e2;
    background: #fffafa;
}

.home-link-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

/* Notice Box Redesign */
.notice-red-box {
    background: #fefce8; /* Soft Amber background */
    border: 2px solid #fef08a;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #854d0e;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.notice-red-box::before {
    content: 'IMPORTANT';
    position: absolute;
    top: 5px;
    left: 5px;
    background: #eab308;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 900;
}

.notice-red-box a {
    color: #b71c1c;
    text-decoration: underline;
    font-weight: 800;
    transition: var(--transition);
}

.notice-red-box a:hover {
    color: #b71c1c;
}

/* Section Card Styles */
.section-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    margin-bottom: 3rem;
    overflow: hidden;
    border: 1px solid #edeff2;
}

.section-header {
    background: linear-gradient(135deg, #b71c1c 0%, #800000 100%);
    color: white;
    padding: 1.25rem;
    font-weight: 800;
    text-align: center;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-body {
    padding: 2rem;
    background: #ffffff;
}

.instruction-list {
    padding-left: 1.5rem;
}

.instruction-list > li {
    margin-bottom: 1.25rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
}

.instruction-list ul {
    margin-top: 10px;
    list-style-type: none;
    padding-left: 0.5rem;
}

.instruction-list ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 10px;
    color: #475569;
    font-weight: 500;
}

.instruction-list ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
}

/* Action Buttons Grid */
.action-btn-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.action-btn-large {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.action-btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
}

.action-btn-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
    background: #fffafa;
}

.action-btn-large .btn-title {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.action-btn-large .btn-subtitle {
    display: block;
    font-size: 1.4rem;
    color: #1e3a8a;
    font-weight: 700;
}

/* Footer Enhancement */
.footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 2.5rem 0;
    font-size: 14px;
}

.footer .thetaByte {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.footer .thetaByte:hover {
    color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .navbar-custom .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .action-btn-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-header h1 { font-size: 1.6rem; }
    .main-header .hindi-title { font-size: 1.35rem; }
    .home-link-box { font-size: 1.1rem; padding: 1.25rem; }
}

/* Modern UI Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
}

.premium-shadow {
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.premium-shadow:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.modern-alert {
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.alert-gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
    color: #92400e;
}

.alert-maroon {
    background: linear-gradient(135deg, #fff1f1 0%, #fee2e2 100%);
    border-color: #fca5a5;
    color: #991b1b;
}

.badge-gold {
    background: var(--accent-color);
    color: #000;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Timeline Style for Process */
.process-timeline {
    position: relative;
    padding-left: 3rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--bg-body);
}

.process-step {
    position: relative;
    margin-bottom: 2rem;
}

.step-number {
    position: absolute;
    left: -3rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 0 0 5px #fff;
    z-index: 1;
}

/* Responsive Grid for Buttons */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.btn-premium {
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    border: 2px solid var(--bg-body);
    background: #fff;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.btn-premium:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.btn-premium i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.btn-premium .btn-text-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
}
/* Instruction Timeline */
.instruction-timeline {
    position: relative;
    padding-left: 0;
}

.step-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(109, 0, 0, 0.2);
}

.instruction-item h5 {
    margin-top: 0;
}

/* Quick Action Cards */
.quick-action-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    height: 100%;
}

.quick-action-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    color: var(--primary-color);
}

.quick-action-card i {
    transition: transform 0.4s ease;
}

.quick-action-card:hover i {
    transform: scale(1.1);
}

/* Sidebar Info Box in Home */
.bg-primary-color.text-white {
    box-shadow: 0 15px 35px rgba(109, 0, 0, 0.3);
}

/* Notice Marquee Animation */
.notice-marquee-container {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.notice-marquee-content {
    position: absolute;
    width: 100%;
    animation: marquee-up 20s linear infinite;
}

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

@keyframes marquee-up {
    0% { top: 100%; }
    100% { top: -100%; }
}

.notice-item {
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.btn-premium .btn-text-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}
