/* College Website Custom Theme - Based on Logo Colors */
:root {
    --primary: #8c1212;      /* Maroon red (primary color) */
    --primary-dark: #5a0c0c; /* Darker maroon for hover effects */
    --secondary: #d4af37;    /* Gold accent (secondary color) */
    --dark: #3a1c12;         /* Dark brown from logo */
    --light: #f9f5eb;        /* Light cream background */
    --text: #212121;         /* Dark text */
    --text-light: #ffffff;   /* Light text */
    --success: #28a745;      /* Keep standard success color */
    --danger: #dc3545;       /* Keep standard danger color */
    --warning: #ffc107;      /* Keep standard warning color */
    --info: #17a2b8;         /* Keep standard info color */
}

/* Override Bootstrap Colors */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-light { background-color: var(--light) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Modern Card Styles */
.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    border: none;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.card-header {
    font-weight: 600;
    padding: 1rem 1.25rem;
}
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}
.card-header.bg-success {
    background: linear-gradient(135deg, #28a745, #218838) !important;
}
.card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 1rem;
}
.navbar-brand img {
    height: 50px;
}
.navbar-dark.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--secondary);
}
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary);
}
.navbar-dark .navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.25rem;
    height: 2px;
    background-color: var(--secondary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(58, 28, 18, 0.8), rgba(140, 18, 18, 0.8)), url('../images/campus.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    position: relative;
}
.hero-text {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Features */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 3rem 0 2rem;
    position: relative;
}
.footer h5 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    padding-left: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--secondary);
    text-decoration: none;
}
.social-links a {
    color: var(--light);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* News & Announcements */
.news-item {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.news-item:hover {
    transform: translateY(-5px);
}
.news-date {
    color: var(--primary);
    font-weight: 600;
}
.news-title {
    font-weight: 600;
    margin: 0.5rem 0;
}

/* Program Cards */
.program-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.program-card img {
    transition: transform 0.5s ease;
}
.program-card:hover img {
    transform: scale(1.1);
}
.program-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem;
    color: white;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    text-align: center;
}
.page-header h1 {
    font-weight: 700;
    margin-bottom: 0;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(140, 18, 18, 0.25);
}
.form-label {
    font-weight: 500;
}

/* Table Styling */
.table-custom th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}
.table-custom tbody tr:hover {
    background-color: rgba(140, 18, 18, 0.05);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s;
}
.slide-up {
    animation: slideUp 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Progress Bar */
.progress-bar {
    background-color: var(--primary);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}
.breadcrumb-item.active {
    color: var(--primary);
}
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Badges */
.badge-primary {
    background-color: var(--primary);
}
.badge-secondary {
    background-color: var(--secondary);
    color: var(--dark);
}

/* RTL Support for Arabic */
[dir="rtl"] .ml-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}
[dir="rtl"] .mr-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}
[dir="rtl"] .text-left {
    text-align: right !important;
}
[dir="rtl"] .text-right {
    text-align: left !important;
}

/* Result Cards */
.result-card {
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.result-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    .container {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
}
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .card-img-top {
        height: 160px;
    }
}
@media (max-width: 576px) {
    .hero-section {
        padding: 4rem 0;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
}
