/**
 * NIELIT Bhubaneswar - Modern Public Theme
 * Version: 2.0
 * Matches Index.php Professional Design
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors - Professional Blue */
    --primary-blue: #0d47a1;
    --secondary-blue: #1565c0;
    --accent-gold: #ffc107;
    --light-bg: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    
    /* Additional Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --white: #ffffff;
    --border-color: #e9ecef;
    
    /* Shadows */
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   TOP BAR (Government Header)
   ============================================ */
.top-bar {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.85rem;
}

.gov-logos img {
    height: 45px;
    width: auto;
}

.ministry-text {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

/* ============================================
   MAIN NAVBAR
   ============================================ */
.navbar {
    background-color: var(--primary-blue) !important;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff !important;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--accent-gold) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    margin-top: 10px;
}

.dropdown-item:hover {
    background-color: #e3f2fd;
    color: var(--primary-blue);
}

/* ============================================
   NOTICE TICKER
   ============================================ */
.notice-bar {
    background: linear-gradient(90deg, var(--secondary-blue) 0%, #42a5f5 100%);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.notice-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   COURSE SECTION
   ============================================ */
.course-section {
    margin-bottom: 3rem;
}

.section-header {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.section-header:hover {
    box-shadow: var(--shadow-lg);
}

.section-header h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h3 i {
    color: var(--secondary-blue);
}

/* ============================================
   COURSE CARDS (Feature Card Style)
   ============================================ */
.course-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.course-card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 1.25rem;
    color: var(--white);
}

.course-card-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.course-card-body {
    padding: 1.5rem;
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-item i {
    color: var(--secondary-blue);
    margin-top: 0.25rem;
    font-size: 1rem;
}

.info-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
}

.info-value {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.course-card-footer {
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-modern {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
    text-decoration: none;
}

.btn-outline-modern {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline-modern:hover {
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
}

.btn-success-modern {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
}

.btn-success-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
    text-decoration: none;
}

/* ============================================
   BADGES
   ============================================ */
.badge-modern {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

.badge-primary-modern {
    background: #e3f2fd;
    color: var(--primary-blue);
}

.badge-success-modern {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning-modern {
    background: #fef3c7;
    color: #92400e;
}

.badge-info-modern {
    background: #cffafe;
    color: #164e63;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    opacity: 0.8;
}

/* ============================================
   FOOTER (Matching Index.php)
   ============================================ */
footer {
    background-color: #1a202c;
    color: #cbd5e0;
    font-size: 0.95rem;
    padding-top: 3rem;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-gold);
}

footer a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 8px;
}

footer a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.copyright-bar {
    background-color: #111827;
    padding: 15px 0;
    border-top: 1px solid #2d3748;
    text-align: center;
    color: #cbd5e0;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .course-info-grid {
        grid-template-columns: 1fr;
    }
    
    .course-card-footer {
        flex-direction: column;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .gov-logos {
        justify-content: center !important;
        margin-top: 10px;
    }
    
    .text-header-group {
        text-align: center;
    }
}


/* ===== NEWS PAGE STYLES ===== */
.news-icon {
    font-size: 2rem;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.map-container iframe {
    min-height: 400px;
}

/* ===== MANAGEMENT PAGE STYLES ===== */
.info-box {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.info-box:hover {
    border-color: var(--primary-blue);
    background-color: #e3f2fd !important;
    transform: translateY(-2px);
}

.content-section {
    line-height: 1.8;
}

.content-section h4 {
    font-weight: 600;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .contact-icon {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
    
    .map-container iframe {
        min-height: 300px;
    }
    
    .news-icon {
        font-size: 1.5rem;
    }
}
