/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

/* RTL support for Arabic language */
body[dir="rtl"] {
    font-family: 'Tajawal', sans-serif;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .btn {
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation Styles */
.site-header {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(44, 62, 80, 0.9)), 
                url('https://images.unsplash.com/photo-1455849318743-b2233052fcff?auto=format&fit=crop&w=1920&q=80') no-repeat center/cover;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
}

.logo-text {
    letter-spacing: 1px;
    display: inline-block;
    padding: 0.3rem 0;
}

.main-nav {
    display: flex;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--light-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--light-color);
    transition: width 0.3s;
    position: absolute;
    bottom: 0;
    left: 0;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-toggle {
    margin-right: 1rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--light-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--light-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    background: var(--secondary-color);
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    height: auto;
    padding: 1rem 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
}

.mobile-nav-links li a {
    color: var(--light-color);
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
}

/* Main Content Styles */
main {
    margin-top: 70px; /* Height of the header */
    min-height: calc(100vh - 70px - 200px); /* Viewport height - header - footer */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1530789253388-582c481c54b0?auto=format&fit=crop&w=1920&q=80') no-repeat center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.hero-btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.card-text {
    color: #666;
    margin-bottom: 1rem;
}

.card-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.card-btn:hover {
    background: #2980b9;
}

/* Service boxes */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-text {
    color: #666;
}

/* Footer Styles */
.site-footer {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 3rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-info, .footer-links, .footer-contact {
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

body[dir="rtl"] .footer-links h3::after, 
body[dir="rtl"] .footer-contact h3::after {
    left: auto;
    right: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

body[dir="rtl"] .footer-links ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

body[dir="rtl"] .footer-contact p i {
    margin-right: 0;
    margin-left: 10px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.search-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-submit {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.form-submit:hover {
    background: #2980b9;
}

/* Page-specific styles */
/* Hotel page */
.hotel-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.hotel-card-img {
    height: 200px;
}

.hotel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hotel-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.hotel-card-location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.hotel-card-location i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

body[dir="rtl"] .hotel-card-location i {
    margin-right: 0;
    margin-left: 0.5rem;
}

.hotel-card-price {
    margin-top: auto;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.hotel-card-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    transition: var(--transition);
}

.hotel-card-btn:hover {
    background: #2980b9;
}

/* Hajj and Umrah page */
.pilgrimage-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pilgrimage-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.pilgrimage-img {
    height: 250px;
}

.pilgrimage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pilgrimage-content {
    padding: 1.5rem;
}

.pilgrimage-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.pilgrimage-text {
    margin-bottom: 1.5rem;
}

.pilgrimage-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.pilgrimage-btn:hover {
    background: #2980b9;
}

/* Tour page */
.tour-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.tour-img {
    height: 220px;
}

.tour-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tour-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tour-location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.tour-location i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

body[dir="rtl"] .tour-location i {
    margin-right: 0;
    margin-left: 0.5rem;
}

.tour-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
}

.tour-price {
    margin-top: auto;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.tour-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    transition: var(--transition);
}

.tour-btn:hover {
    background: #2980b9;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .nav-right {
        gap: 1rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}
