/* Main CSS - Core styles and variables */

:root {
    --primary-color: #9E1E20;
    --secondary-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --muted-color: #6c757d;
    --border-color: #dee2e6;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
}

/* Custom color overrides for Bootstrap */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: #7a1619;
    border-color: #7a1619;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.25rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-section {
    background-color: var(--primary-color);
    color: white;
}

.hero-section .display-4 {
    font-weight: 700;
    line-height: 1.2;
}

/* University Logos */
.university-logo {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.university-logo:hover {
    transform: scale(1.05);
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Utility classes */
.text-muted {
    color: var(--muted-color) !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

/* Custom spacing */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Badge customizations */
.badge-danger {
    background-color: var(--danger-color);
}

.badge-secondary {
    background-color: var(--muted-color);
}

/* Links */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(158, 30, 32, 0.25);
}

/* Animation for smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Remove transition from specific elements that shouldn't animate */
.carousel-item,
.collapse,
.collapsing {
    transition: none;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}