/* 
   File: bootstrap_addons.css
   Description: Custom styles for University of Al-Adel that extend Bootstrap 5.
*/

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Sections */
.hero-section {
    background-position: center;
    background-size: cover;
    height: 450px;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.content-section {
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

/* Year Navigation (Step-by-Step) */
.year-nav {
    display: flex;
    justify-content: center;
    gap: 120px;
    margin-bottom: 80px;
    position: relative;
    padding: 30px 0;
    width: 100%;
}

.year-nav::before {
    content: "";
    position: absolute;
    top: 60px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: #dee2e6;
    z-index: 1;
}

.year-step {
    width: 85px;
    height: 85px;
    background: #fff;
    border: 3px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    color: #adb5bd;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none !important;
}

.year-step.active {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: #fff !important;
    box-shadow: 0 0 0 8px rgba(var(--bs-primary-rgb), 0.15);
}

.year-label {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.8rem;
    color: #6c757d;
}

.year-step.active .year-label {
    color: var(--bs-primary);
    font-weight: bold;
}

/* Course Tables / Semesters */
.semester-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: stretch;
}

.semester-frame {
    flex: 1;
    border: 1px solid var(--bs-primary);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.semester-header {
    background: var(--bs-primary);
    color: #fff !important;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    flex-grow: 1;
}

.course-table th {
    background: #f8fbff;
    padding: 12px 15px;
    text-align: right;
    font-size: 0.9rem;
    color: #212529 !important;
    border-bottom: 2px solid var(--bs-primary);
}

.course-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #212529 !important;
}

.course-title-ar {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #212529 !important;
}

.course-title-en {
    display: block;
    font-weight: 500;
    color: #6c757d !important;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.course-code {
    font-size: 0.85rem;
    color: #495057;
}

.hour-badge {
    font-weight: bold;
    color: var(--bs-primary) !important;
    background: #f0f7ff;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid #cfe2ff;
    font-size: 0.8rem;
    display: inline-block;
}

.total-footer {
    background: #f8fbff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--bs-primary);
    font-weight: bold;
}

/* General UI Enhancements */
.section-header {
    border-bottom: 3px solid var(--bs-primary);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
    color: var(--bs-primary);
    font-weight: 800;
    font-size: 1.75rem;
}

.text-block {
    line-height: 1.8;
    color: #495057;
    text-align: justify;
    margin-bottom: 35px;
    font-size: 1.15rem;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12) !important;
}

/* Icons & Micro-interactions */
.transition-icon {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

@media (max-width: 991px) {
    .semester-wrapper {
        flex-direction: column;
    }

    .year-nav {
        gap: 20px;
        justify-content: space-around;
        overflow-x: auto;
        padding-bottom: 50px;
    }

    .year-nav::before {
        display: none;
    }
}

/* Dark Overlay for body (Watermark) */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}