:root {
    --primary-color: #2c5f2d;
    --primary-dark: #1e421f;
    --primary-light: #3a7a3c;
    --secondary-color: #97bc62;
    --accent-color: #ffcc00;
    --light-color: #f8f9fa;
    --dark-color: #333333;
    --font-primary: "Poppins", sans-serif;
    --font-secondary: "Nunito", sans-serif;
    --font-arabic: "Amiri", serif;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--dark-color);
    background-color: #fefefe;
    padding-top: 76px; /* Height of fixed navbar */
}

/* Enhanced Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: var(--transition);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand .logo-icon {
    font-size: 2rem;
    margin-right: 10px;
    color: var(--secondary-color);
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 15px !important;
    border-radius: 4px;
    margin: 0 5px;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(44, 95, 45, 0.05);
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 5px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(
        135deg,
        rgba(44, 95, 45, 0.9) 0%,
        rgba(44, 95, 45, 0.7) 100%
    );
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section.bg-image {
    background:
        linear-gradient(
            135deg,
            rgba(44, 95, 45, 0.9) 0%,
            rgba(44, 95, 45, 0.7) 100%
        ),
        url("../images/hero-bg.jpg");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-cta {
    margin-top: 40px;
}

.btn-primary-custom {
    background-color: var(--secondary-color);
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(151, 188, 98, 0.4);
}

.btn-primary-custom:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 95, 45, 0.4);
    color: white;
}

.btn-outline-light-custom {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    background-color: transparent;
}

.btn-outline-light-custom:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Section Styles */
.section-title {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 50px;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

/* Enhanced Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Featured Section */
.featured-section {
    padding: 100px 0;
    background-color: var(--light-color);
    position: relative;
}

.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

/* Call to Action */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 70px 0 20px;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--secondary-color),
        var(--accent-color)
    );
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-logo i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.footer-about {
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Arabic Typography */
.arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin: 30px 0;
}

/* Map Placeholder */
.map-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.map-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 10px;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 95, 45, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
    }

    .footer-about {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Content Page Styles */
.content-section {
    padding: 80px 0;
}

.content-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.content-subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid var(--primary-color);
}

/* FAQ Styles */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* Alert Styles */
.alert-custom {
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    background: rgba(44, 95, 45, 0.05);
}

/* Breadcrumb */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-custom .breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--primary-color);
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    text-decoration: underline;
}

/* front.css - Add these styles */

/* Contact Hero */
.contact-hero {
    background:
        linear-gradient(rgba(44, 95, 45, 0.9), rgba(44, 95, 45, 0.8)),
        url("../images/contact-hero.jpg") center/cover no-repeat;
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.arabic-text {
    font-family: "Amiri", serif;
    font-size: 1.8rem;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.95);
}

.arabic-translation {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Contact Cards */
.contact-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.contact-card .card-header {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(44, 95, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-details {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-details:last-child {
    margin-bottom: 0;
}

.contact-details h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-details p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Quick Contacts */
.quick-contact-item {
    border: none !important;
    padding: 0.75rem 0;
    color: #555;
    transition: all 0.3s ease;
}

.quick-contact-item:hover {
    background: rgba(44, 95, 45, 0.05);
    padding-left: 0.5rem;
    color: var(--primary-color);
}

.quick-contact-item i {
    width: 24px;
    text-align: center;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Form Styles */
.form-control,
.form-select {
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 95, 45, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.required-star {
    color: #dc3545;
}

/* Map Styles */
#contact-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container {
    position: relative;
}

/* Accordion Styles */
.accordion-button {
    font-weight: 600;
    padding: 1rem 1.25rem;
    background: rgba(44, 95, 45, 0.05);
    border: 1px solid rgba(44, 95, 45, 0.1);
    border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(44, 95, 45, 0.25);
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Department Cards */
.dept-card {
    height: 100%;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dept-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dept-icon {
    width: 60px;
    height: 60px;
    background: rgba(44, 95, 45, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.dept-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 60px;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .arabic-text {
        font-size: 1.5rem;
    }

    #contact-map {
        height: 300px;
    }

    .contact-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-icon {
        margin-bottom: 0.75rem;
    }
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
    z-index: 1000;
}

/* Form Validation Styles */
.is-invalid {
    border-color: #dc3545;
}

.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.is-valid {
    border-color: #198754;
}

.is-valid:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}
