/* General Styles */
:root {
    --primary-color: #003366; /* Dark Blue */
    --secondary-color: #f7f7f7; /* Light Gray */
    --accent-color: #d4a017; /* Gold */
    --text-color: #333;
    --light-text-color: #fff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
}

body.home-page, body.about-page {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Remove global background settings from body classes */

/* Apply overlay to specific pages' main content area */
.study-plans-page main {
    position: relative;
}



a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px var(--shadow-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-left: 15px;
}

header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 8px var(--shadow-color);
    border-radius: 5px;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
}

.dropdown-content a:hover {
    background-color: var(--secondary-color);
}

/* Main Content Area */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
}

.page-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
    position: relative; /* Ensure content is above the overlay */
    z-index: 1;
}

.page-content h2,
.page-content h3 {
    color: var(--primary-color);
}

/* About Page Specific Styles */
.about-text {
    font-size: 1.22rem;
    color: var(--light-text-color);
    margin-bottom: 1.7rem;
    line-height: 2.2;
    text-align: justify;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.branches-title, .main-branch-title {
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
    font-weight: 700;
    color: #d4a017;
    text-shadow: 0 2px 8px rgba(212,160,23,0.18);
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 1px;
    font-size: 2.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.president-block {
    text-align: center;
    margin: 2rem 0 2.5rem 0;
}

.president-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.president-name {
    font-size: 1.25rem;
    color: var(--light-text-color);
    font-weight: 700;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.branches-block, .main-branch-block {
    margin-bottom: 2.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: var(--light-text-color);
}

.copyright {
    border-top: 1px solid #4a6a8a;
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

/* Study Plan Table Styles */
.study-plan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.study-plan-table th,
.study-plan-table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: right;
}

.study-plan-table th {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-weight: 600;
}

.study-plan-table tbody tr:nth-child(even) {
    background-color: var(--secondary-color);
}

.study-plan-table tbody tr:hover {
    background-color: #e9ecef;
}

/* Hero Section (Homepage) */
.hero {
    color: var(--light-text-color);
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #b8860b; /* Darker Gold */
    color: var(--light-text-color);
}

/* Info Section (Homepage) */
.info-section {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.info-box {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    flex: 1;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    margin-bottom: 0.75rem;
}

.info-box ul li a {
    font-size: 1rem;
}

/* Features Section (Homepage) */
.features {
    padding: 3rem 0;
    background-color: transparent;
    margin-top: 2rem;
}

.features .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.features .section-title {
    color: var(--light-text-color);
    text-align: center;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--light-text-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text-color);
}

/* Study Plans Filter Styles */
.study-plans-filter {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.study-plans-filter .form-group {
    flex: 1;
    min-width: 200px; /* Minimum width for each dropdown container */
}

.study-plans-filter label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.study-plans-filter select {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none; /* Remove default arrow on some browsers */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23003366%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 0.8em;
    padding-left: 2.5rem; /* Add space for the custom arrow */
}

.study-plans-filter select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

.study-plans-filter select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* تنسيق صفحة العمادات */
.deanships-page .deanships-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 32px;
}

.deanships-page .deanship-column {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 24px 24px 24px;
    min-width: 320px;
    max-width: 370px;
    flex: 1;
    margin-bottom: 24px;
    transition: transform 0.18s, box-shadow 0.18s;
}

.deanships-page .deanship-column:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    background: #fffbe7;
}

.deanships-page .deanship-column h3 {
    color: #0a2342;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 6px;
}

.deanships-page .deanship-column h4 {
    color: #1e3a5c;
    font-size: 1.08rem;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 8px;
}

.deanships-page .deanship-column ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.deanships-page .deanship-column ul li {
    margin-bottom: 7px;
    font-size: 1rem;
    color: #222;
    background: #f7f9fa;
    border-radius: 8px;
    padding: 6px 10px;
}

.deanships-page .deanship-column p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
    margin-top: 0;
}

.deanships-page .deanship-column strong {
    color: #0a2342;
    font-weight: 700;
}

.deanships-page .page-content h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #0a2342;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 8px;
    background: linear-gradient(90deg, #f7f9fa 70%, #fffbe7 100%);
    border-radius: 12px;
}

/* لمسة جمالية للأقسام */
.deanships-page .deanship-column ul li strong {
    color: #ffd700;
    font-weight: 700;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 900px) {
    .colleges-container, .deanships-container {
        flex-direction: column;
        gap: 18px;
        padding: 0 8px;
    }
    .college-column, .deanship-column {
        max-width: 100%;
        min-width: 0;
        padding: 18px 8px 18px 8px;
    }
}

/* تنسيق صفحة الكليات */
.colleges-page .colleges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 32px;
}

.colleges-page .college-column {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 24px 24px 24px;
    min-width: 320px;
    max-width: 370px;
    flex: 1;
    margin-bottom: 24px;
    transition: transform 0.18s, box-shadow 0.18s;
}

.colleges-page .college-column:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    background: #fffbe7;
}

.colleges-page .college-column h3 {
    color: #0a2342;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 6px;
}

.colleges-page .college-column h4 {
    color: #1e3a5c;
    font-size: 1.08rem;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 8px;
}

.colleges-page .college-column ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.colleges-page .college-column ul li {
    margin-bottom: 7px;
    font-size: 1rem;
    color: #222;
    background: #f7f9fa;
    border-radius: 8px;
    padding: 6px 10px;
}

.colleges-page .college-column p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
    margin-top: 0;
}

.colleges-page .college-column strong {
    color: #0a2342;
    font-weight: 700;
}

.colleges-page .page-content h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #0a2342;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 8px;
    background: linear-gradient(90deg, #f7f9fa 70%, #fffbe7 100%);
    border-radius: 12px;
}

/* لمسة جمالية للأقسام */
.colleges-page .college-column ul li strong {
    color: #000000;
    font-weight: 700;
}
/* تنسيق صفحة الكليات والعمادات */
.colleges-container, .deanships-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 32px;
}

.college-column, .deanship-column {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 24px 24px 24px;
    min-width: 320px;
    max-width: 370px;
    flex: 1;
    margin-bottom: 24px;
    transition: transform 0.18s, box-shadow 0.18s;
}

.college-column:hover, .deanship-column:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    background: #fffbe7;
}

.college-column h3, .deanship-column h3 {
    color: #0a2342;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 6px;
}

.college-column h4, .deanship-column h4 {
    color: #1e3a5c;
    font-size: 1.08rem;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 8px;
}

.college-column ul, .deanship-column ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.college-column ul li, .deanship-column ul li {
    margin-bottom: 7px;
    font-size: 1rem;
    color: #222;
    background: #f7f9fa;
    border-radius: 8px;
    padding: 6px 10px;
}

.college-column p, .deanship-column p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
    margin-top: 0;
}

.college-column strong, .deanship-column strong {
    color: #0a2342;
    font-weight: 700;
}

.page-content h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #0a2342;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 8px;
    background: linear-gradient(90deg, #f7f9fa 70%, #fffbe7 100%);
    border-radius: 12px;
}

/* لمسة جمالية للأقسام */
.college-column ul li strong, .deanship-column ul li strong {
    color: #ffd700;
    font-weight: 700;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 900px) {
    .colleges-container, .deanships-container {
        flex-direction: column;
        gap: 18px;
        padding: 0 8px;
    }
    .college-column, .deanship-column {
        max-width: 100%;
        min-width: 0;
        padding: 18px 8px 18px 8px;
    }
}
/* تعديل لون أسماء الأقسام في صناديق الكليات فقط إلى الأسود */
.colleges-page .college-column ul li strong,
.college-column ul li strong {
    color: #000 !important;
}
/* لمسة جمالية خاصة بصفحة القبول والتسجيل */
.admission-page .admission-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.09);
    padding: 36px 32px 32px 32px;
    position: relative;
}

.admission-page h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #0a2342;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 2px solid #d4a017;
    padding-bottom: 8px;
    background: linear-gradient(90deg, #f7f9fa 70%, #fffbe7 100%);
    border-radius: 12px;
}

.admission-page .admission-info {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 2;
    text-align: justify;
}

.admission-page .admission-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.admission-page .admission-list li {
    background: #f7f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px 16px;
    font-size: 1.08rem;
    color: #0a2342;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: relative;
}

.admission-page .admission-list li::before {
    content: "✔";
    color: #d4a017;
    font-weight: bold;
    margin-left: 8px;
    font-size: 1.1rem;
}

.admission-page .admission-btn {
    display: block;
    width: fit-content;
    margin: 24px auto 0 auto;
    background: #d4a017;
    color: #fff;
    padding: 12px 36px;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.admission-page .admission-btn:hover {
    background: #b8860b;
    color: #fff;
}
