/* Dunlex International - Main Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #3b0404;
    /* Deep Dark Maroon */
    --primary-dark: #3b0404;
    --primary-light: #3b0404;
    --secondary-color: #FFD700;
    /* Gold */
    --secondary-dark: #FFA500;
    --accent-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --text-light-white: #F0F0F0;
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A1A;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    /* Add padding to account for fixed header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

/* General body padding to account for fixed header */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 100px;
    /* Add padding to account for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(59, 4, 4, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid rgba(59, 4, 4, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Enhanced Logo Styling for Better Visibility */
.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    min-height: 100px;
}

.logo img.site-logo {
    max-height: 150px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
    border-radius: 10px;
}

.logo img.site-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    padding: 1rem 0;
}

.logo a:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
}

.logo .text-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    padding: 1rem 0;
    letter-spacing: -0.5px;
}

.logo .text-logo:hover {
    color: var(--primary-dark);
    transform: translateY(-3px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.logo .text-logo i {
    font-size: 3.2rem;
    color: var(--secondary-color);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(59, 4, 4, 0.1);
    transform: scale(1.05);
}

/* Page Hero Sections - Add padding for fixed header */
.programs-hero,
.contact-hero,
.visa-hero,
.flights-hero,
.tours-hero,
.ielts-hero,
.accommodation-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 8rem 0 4rem;
    color: white;
    text-align: center;
    margin-top: 100px;
    /* Add margin to account for fixed header */
}

/* Services Section */
.services {
    padding: 5rem 0;
    margin-top: 2rem;
    /* Add some spacing */
}

/* Filter Section */
.filter-section {
    padding: 3rem 0;
    background: var(--bg-light);
    margin-top: 100px;
    /* Add margin to account for fixed header */
}

/* Visa Services Section */
.visa-services {
    padding: 5rem 0;
    margin-top: 2rem;
}

/* Flights Services Section */
.flights-services {
    padding: 5rem 0;
    margin-top: 2rem;
}

/* Tours Section */
.categories-section,
.tours-section {
    padding: 5rem 0;
    margin-top: 2rem;
}

/* Accommodation Section */
.accommodation-section {
    padding: 5rem 0;
    margin-top: 2rem;
}

/* IELTS Section */
.courses-section {
    padding: 5rem 0;
    margin-top: 2rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    margin-top: 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: var(--text-white);
}

.hero-content h1,
.hero-content p,
.hero-content .btn {
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light-white);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Services Section */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-white);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--primary-color);
    color: var(--text-white);
}

.stats h1,
.stats h2,
.stats h3,
.stats h4,
.stats h5,
.stats h6,
.stats p {
    color: var(--text-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-white);
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: var(--bg-light);
}

.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 1rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Destinations */
.destinations {
    padding: 5rem 0;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.destination-card {
    background: var(--accent-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.destination-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-white);
}

.destination-content {
    padding: 1.5rem;
}

.destination-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-white);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Mobile Header Enhancements */
    .header {
        padding: 0.5rem 0;
    }

    .navbar {
        padding: 0.5rem 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo {
        font-size: 1.8rem;
        min-height: 85px;
    }

    .logo img.site-logo {
        max-height: 110px;
    }

    .logo .text-logo {
        font-size: 1.8rem;
        gap: 0.6rem;
    }

    .logo .text-logo i {
        font-size: 2.2rem;
        margin-right: 0.4rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }

    /* Mobile content spacing */
    body {
        padding-top: 85px;
        /* Reduced padding for mobile */
    }

    .hero {
        padding-top: 85px;
    }

    .programs-hero,
    .contact-hero,
    .visa-hero,
    .flights-hero,
    .tours-hero,
    .ielts-hero,
    .accommodation-hero {
        margin-top: 85px;
        padding: 6rem 0 3rem;
    }

    .filter-section {
        margin-top: 85px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .destination-card {
        padding: 1.5rem;
    }

    /* Small Mobile Header */
    .navbar {
        padding: 0.3rem 0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .logo {
        font-size: 1.4rem;
        min-height: 75px;
    }

    .logo img.site-logo {
        max-height: 95px;
    }

    .logo .text-logo {
        font-size: 1.4rem;
        gap: 0.3rem;
    }

    .logo .text-logo i {
        font-size: 2rem;
        margin-right: 0.2rem;
    }

    /* Small mobile content spacing */
    body {
        padding-top: 75px;
        /* Further reduced padding for small mobile */
    }

    .hero {
        padding-top: 75px;
    }

    .programs-hero,
    .contact-hero,
    .visa-hero,
    .flights-hero,
    .tours-hero,
    .ielts-hero,
    .accommodation-hero {
        margin-top: 75px;
        padding: 5rem 0 2rem;
    }

    .filter-section {
        margin-top: 75px;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    color: var(--text-light-white);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    color: var(--text-white);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-white);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-light);
}

/* Floating background elements for hero */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Social links in footer */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Main Content Areas - Ensure proper spacing from fixed header */
main,
.main-content,
.content-area {
    padding-top: 100px;
    /* Account for fixed header */
}

/* Section spacing */
section {
    position: relative;
    z-index: 2;
}

/* Ensure content sections are properly spaced */
.programs-content,
.contact-content,
.visa-content,
.flights-content,
.tours-content,
.accommodation-content,
.ielts-content {
    padding-top: 2rem;
}

/* Admin pages need different spacing */
.admin-main {
    padding-top: 0;
    /* Admin pages have their own header */
}

/* Ensure footer is properly positioned */
.footer {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}