:root {
    --primary-color: #8a1c20;
    /* Deep Burgundy */
    --secondary-color: #d4af37;
    /* Gold */
    --dark-color: #1a1a1a;
    --light-bg: #f4f1ea;
    /* Premium Light Beige */
    --body-bg: #f9f7f2;
    /* Softer Cream for Body */
    --text-color: #444;
    --white: #ffffff;
    --glass-bg: rgba(255, 253, 250, 0.95);
    --glass-border: 1px solid rgba(138, 28, 32, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
    overflow-x: hidden;
    line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

/* --- Global Utilities --- */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.text-dark-custom {
    color: var(--dark-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.bg-dark-custom {
    background-color: var(--dark-color) !important;
}

.bg-light-custom {
    background-color: var(--light-bg) !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* --- Buttons --- */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    padding: 12px 35px;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--dark-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn-primary-custom:hover::after {
    height: 100%;
}

.btn-primary-custom:hover {
    border-color: var(--dark-color);
    color: white;
}

.btn-outline-dark {
    border-radius: 0 !important;
    padding: 12px 35px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- Section Styling --- */
.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 70px;
    text-align: center;
    position: relative;
}

.section-title h6 {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.section-title p {
    color: #777;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Top Bar --- */
#top-bar {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#top-bar a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

#top-bar a:hover {
    color: var(--secondary-color);
}

/* --- Navbar --- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-color);
}

.navbar-logo {
    max-height: 70px;
    width: auto;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 15px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* --- Dropdown Modifications --- */
.dropdown-menu {
    border-radius: 4px;
    margin-top: 10px;
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Activate hover on desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.3s ease;
    }
}

/* Ensure caret is correctly positioned to the side */
.dropdown-toggle::after {
    margin-left: 0.5em !important;
    vertical-align: 0.255em !important;
    border-top: 0.3em solid !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;
}

/* Maintain underline effect for dropdown links without interfering with caret */
.nav-link.dropdown-toggle::after {
    display: inline-block;
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    transform: none;
    transition: none;
}

/* --- Hero Section --- */
#hero {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    position: relative;
    z-index: 1;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(138, 28, 32, 0.6) 100%);
    z-index: -1;
}

.hero-img-container {
    display: none;
    /* Hiding the image in Hero to focus on bg and text */
}

/* Override text colors for Hero because of dark bg */
#hero h1,
#hero p,
#hero .arabic-calligraphy {
    color: white !important;
}

#hero .arabic-calligraphy {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--secondary-color) !important;
    margin-bottom: 25px;
}

/* --- About Section --- */
.about-grid-img {
    border-radius: 4px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-stats {
    background: var(--primary-color);
    color: white;
    padding: 25px 40px;
    display: inline-block;
    position: absolute;
    bottom: 0;
    right: 0;
    box-shadow: 0 15px 30px rgba(138, 28, 32, 0.4);
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.feature-list i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* --- Services --- */
.service-card {
    background: white;
    padding: 40px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--secondary-color);
    transition: 0.4s;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.02);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* --- Packages --- */
.package-card {
    border: none;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.package-img {
    height: 280px;
    object-fit: cover;
    width: 100%;
    filter: brightness(0.9);
    transition: 0.4s;
}

.package-card:hover .package-img {
    filter: brightness(1);
    transform: scale(1.05);
}

.package-body {
    padding: 40px;
}

.package-price {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 15px 0;
    font-family: 'Playfair Display', serif;
}

.package-features li {
    margin-bottom: 12px;
    color: #555;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* --- Process --- */
.process-step {
    padding: 40px 20px;
    text-align: center;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.process-step:hover {
    border-bottom-color: var(--secondary-color);
    transform: translateY(-5px);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.process-line {
    background: rgba(0, 0, 0, 0.05);
    height: 1px;
}

/* --- Video --- */
#video-section {
    position: relative;
    padding: 200px 0;
    background: fixed url("https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?q=80&w=1920&auto=format&fit=crop") center center/cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.play-btn {
    width: 90px;
    height: 90px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 30px;
    cursor: pointer;
    transition: all 0.4s;
    animation: pulse 2s infinite;
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

/* --- Booking Form --- */
.booking-form-container {
    background: white;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--primary-color);
}

.form-control,
.form-select {
    padding: 12px 15px;
    border-radius: 0;
    border: 1px solid #ddd;
    background-color: #fafafa;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background-color: white;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.stat-card {
    background: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    border-radius: 4px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

/* --- Testimonials --- */
.testimonial-card {
    background: white;
    padding: 40px;
    text-align: center;
    height: 100%;
    border: 1px solid #eee;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 10px;
    left: 20px;
}

.user-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 4px solid rgba(212, 175, 55, 0.3);
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* --- Team --- */
.team-member {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.5s;
}

.team-member:hover .team-img {
    transform: scale(1.1);
}

.team-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    text-align: center;
    transform: translateY(100px);
    transition: 0.4s;
    opacity: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.team-member:hover .team-info {
    transform: translateY(0);
    opacity: 1;
}

/* --- Blog --- */
.blog-card {
    border: none;
    transition: 0.3s;
}

.blog-img {
    border-radius: 0;
    height: 240px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 20px;
}

.date-badge {
    background: transparent;
    color: var(--secondary-color);
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-card h5 a:hover {
    color: var(--primary-color) !important;
}

/* --- Footer --- */
footer {
    background: #111;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 100px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 25px;
    display: block;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    margin-top: 70px;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .section-title h2 {
        font-size: 2.5rem;
    }

    #hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Inner Pages --- */
.inner-page-header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(138, 28, 32, 0.8) 100%),
        url('https://images.unsplash.com/photo-1541339907198-e08756ebafe3?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}

.inner-page-header h1 {
    color: white !important;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-custom li {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.breadcrumb-custom li+li::before {
    content: '/';
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb-custom a:hover {
    color: var(--secondary-color);
}

/* --- Graduates Page --- */
.sticky-year-selector {
    position: sticky;
    top: 130px;
    z-index: 1020;
}

#year-pills {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

#year-pills::-webkit-scrollbar {
    height: 4px;
}

#year-pills::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#year-pills::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.year-pill {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f8f9fa;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    white-space: nowrap;
}

.year-pill:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

.year-pill.active {
    background-color: var(--primary-color);
    color: white;
    border-bottom-color: var(--secondary-color);
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.year-section {
    scroll-margin-top: 240px;
}

.table thead th {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    border: none;
}

.table tbody td {
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #555;
    padding: 15px 10px;
}

.table tbody tr:hover {
    background-color: #fafafa;
}

@media (max-width: 991px) {
    .sticky-year-selector {
        top: 120px;
    }
    
    .year-pill {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

/* --- Scroll to Top --- */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-scroll-top:hover {
    background-color: var(--dark-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-scroll-top i {
    transition: transform 0.3s ease;
}

.btn-scroll-top:hover i {
    transform: translateY(-3px);
}