/* CSS Variables for KU Brand Colors - Matching Reference Site */
:root {
    --ku-primary: #8B0000;
    --ku-secondary: #660000;
    --ku-accent: #FFD700;
    --ku-light: #f8f9fa;
    --ku-dark: #212529;
    --ku-gray: #6c757d;
    --ku-success: #28a745;
    --ku-danger: #dc3545;
    --ku-warning: #ffc107;
    --ku-info: #17a2b8;
    --ku-red-light: #ffebee;
    --ku-gold: #FFD700;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--ku-primary) 0%, var(--ku-secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,96C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    background: white;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 2rem;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    border-color: var(--ku-primary);
}

.feature-card i {
    color: var(--ku-primary);
    margin-bottom: 1rem;
}

.feature-card h5 {
    color: var(--ku-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--ku-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: var(--ku-primary) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

.navbar-scrolled {
    background: var(--ku-primary) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    border-radius: 16px 16px 0 0;
    background: var(--ku-primary) !important;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-weight: 600;
    color: white;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--ku-secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--ku-dark);
    margin-bottom: 6px;
}

.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--ku-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--ku-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 0, 0, 0.3);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
}

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

.btn-outline-primary {
    border: 2px solid var(--ku-primary);
    color: var(--ku-primary);
}

.btn-outline-primary:hover {
    background: var(--ku-primary);
    color: white;
    border-color: var(--ku-primary);
}

/* Tab Styles */
.nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    border: none;
    color: var(--ku-gray);
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 12px 20px;
}

.nav-tabs .nav-link.active {
    background: var(--ku-primary);
    color: white;
    border: none;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--ku-primary);
    background: rgba(30, 58, 138, 0.1);
}

/* Footer */
footer {
    margin-top: 60px;
    background: var(--ku-dark) !important;
    border-top: 4px solid var(--ku-primary);
}

footer h5 {
    color: white;
    font-weight: 600;
}

footer p {
    color: rgba(255,255,255,0.7);
}

/* Section Headers */
.section-title {
    color: var(--ku-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--ku-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Institutional Excellence Section */
.institutional-section {
    background: #ffffff;
    padding: 80px 0;
    border-bottom: 1px solid #dee2e6;
}

.excellence-item {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.excellence-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-color: var(--ku-primary);
    background: white;
}

.excellence-item i {
    color: var(--ku-primary);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.excellence-item h3 {
    color: var(--ku-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.excellence-item p {
    color: var(--ku-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Program Cards */
.program-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    background: white;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    border-color: var(--ku-primary);
}

.program-card .card-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.program-card i {
    color: var(--ku-primary);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.program-card h5 {
    color: var(--ku-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.program-card p {
    color: var(--ku-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.program-card .btn-outline-primary {
    border-color: var(--ku-primary);
    color: var(--ku-primary);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

.program-card .btn-outline-primary:hover {
    background: var(--ku-primary);
    border-color: var(--ku-primary);
    color: white;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
}

.progress-bar {
    border-radius: 4px;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, var(--ku-red-light) 0%, #ffcdd2 100%);
    color: var(--ku-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .display-4 {
        font-size: 2.5rem;
        font-weight: 700;
    }
    
    .hero-image i {
        font-size: 120px !important;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .institutional-section {
        padding: 60px 0;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Additional utility classes */
.text-primary-custom {
    color: var(--ku-primary) !important;
}

.text-secondary-custom {
    color: var(--ku-gray) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--ku-primary) 0%, var(--ku-secondary) 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--ku-success) 0%, #059669 100%) !important;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #721c24;
}
/*-------------------new CSS Added-------------------------------*/
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('KU Online.gif') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* dark overlay for better text visibility */
}

.hero-content {
    position: relative;
    z-index: 2;
}

/*--------------------------text justify---------------------*/
.text-justify{
    text-align: justify !important;
}