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

:root {
    --primary-color: #1a1a2e; /* Very Dark Navy */
    --secondary-color: #16213e; /* Dark Navy Blue */
    --accent-color: #d4af37; /* Gold */
    --accent-hover: #b8941f; /* Darker Gold */
    --dark-color: #0f0f1e; /* Almost Black Navy */
    --light-color: #f5f5f5; /* Light Gray */
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-size: 1.2rem; /* Smaller font size as requested */
    font-weight: 700;
}

.nav-brand .accreditation-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu li a:hover {
    color: var(--accent-color);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('images/hero-bg.jpg');
        background-size: cover;
    background-position: center center; /* Make the image cover the entire area, maintaining aspect ratio */
    background-repeat: no-repeat; /* Prevent image repetition */
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow if image is too large */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.58);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: var(--accent-color);
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
    background-color: var(--accent-hover);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for better fit */
    gap: 2rem;
    align-items: stretch; /* Ensure cards stretch to same height */
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    display: flex; /* Use flexbox for internal alignment */
    flex-direction: column;
    justify-content: space-between; /* Push content apart */
    height: 100%; /* Ensure cards take full height of grid cell */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex-grow: 1; /* Allow paragraph to grow and push link to bottom */
}

.service-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto; /* Push link to bottom */
}

.service-link:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

/* Service Details Sections */
.service-details, .content-page {
    padding: 6rem 0;
}

.service-details.alt-bg {
    background-color: var(--light-color);
}

.details-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.details-intro {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border-right: 5px solid var(--accent-color);
}

.details-intro p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

/* Requirements Box */
.requirements-box {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.requirements-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.requirements-list {
    display: grid;
    gap: 1rem;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    background-color: #e8e8e8;
    transform: translateX(-5px);
}

.requirement-item i {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.requirement-item span {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Note Box */
.note-box {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-right: 5px solid var(--accent-color);
}

.note-box i {
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.note-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.note-content p:last-child {
    margin-bottom: 0;
}

.note-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Certificates Grid */
.certificates-grid {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.certificates-grid h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.cert-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background-color: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background-color: #e8e8e8;
    transform: translateX(-5px);
}

.cert-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-item span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.about-feature {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.about-feature h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.about-feature p {
    font-size: 1rem;
    color: var(--text-light);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-color);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

.faq-question i {
    font-size: 1rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    font-size: 1rem;
    color: var(--text-dark);
    padding-bottom: 1.5rem;
}

.faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding-top: 1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--white);
}

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

.contact-item {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-item .contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.contact-item p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item p a:hover {
    color: var(--accent-color);
}

/* Service Details Page Specific Styles */
.service-details-page .details-header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-details-page .service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

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

.service-details-page .details-intro p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-details-page .features-box, .service-details-page .requirements-box {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.service-details-page .features-box h3, .service-details-page .requirements-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.service-details-page .features-grid, .service-details-page .requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-details-page .feature-item, .service-details-page .requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background-color: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-details-page .feature-item:hover, .service-details-page .requirement-item:hover {
    background-color: #e8e8e8;
    transform: translateX(-5px);
}

.service-details-page .feature-item i, .service-details-page .requirement-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.service-details-page .feature-content h4, .service-details-page .requirement-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-details-page .feature-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.service-details-page .cta-section {
    text-align: center;
    margin-top: 4rem;
    background-color: var(--primary-color);
    padding: 3rem 2rem;
    border-radius: 15px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.service-details-page .cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.service-details-page .cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.service-details-page .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
    background-color: var(--accent-hover);
}

/* Content Page (for Privacy, Terms, About) */
.content-page {
    background-color: var(--white);
}

.content-page h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.content-page h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.content-page h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.content-page p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.content-page ul, .content-page ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    list-style-position: inside;
}

.content-page ul li, .content-page ol li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.content-page strong {
    color: var(--primary-color);
}

.content-page a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Back Button for Sub-pages */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: auto; /* Pushes button to the left */
}

.back-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-content p {
    margin: 0;
    line-height: 1.5;
}

.footer-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 990;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.scroll-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-8px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid, .about-features, .contact-grid-simple {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .service-details-page h1 {
        font-size: 2.5rem;
    }

    .service-details-page .service-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .content-page h1 {
        font-size: 2.5rem;
    }

    .content-page h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

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

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

    .hero-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .services-grid, .about-features, .contact-grid-simple {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        left: 20px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }

    .service-details-page h1 {
        font-size: 2rem;
    }

    .service-details-page .service-icon-large {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }

    .content-page h2 {
        font-size: 1.6rem;
    }

    .content-page ul, .content-page ol {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .hero-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .service-link {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .contact-item h3 {
        font-size: 1.2rem;
    }

    .contact-item p {
        font-size: 1rem;
    }

    .service-details-page h1 {
        font-size: 1.8rem;
    }

    .service-details-page .cta-section h3 {
        font-size: 1.5rem;
    }

    .service-details-page .cta-btn {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }

    .content-page h1 {
        font-size: 1.8rem;
    }

    .content-page h2 {
        font-size: 1.4rem;
    }

    .content-page p, .content-page ul li, .content-page ol li {
        font-size: 0.95rem;
    }
}



/* Contact Form Styling */
.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #007bff; /* Highlight on focus */
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.contact-form button.hero-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #28a745; /* Green button */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button.hero-btn:hover {
    background-color: #218838;
}

.contact-form .hidden {
    display: none;
}

/* Success Message Styling */
.form-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    display: none; /* Hidden by default */
}

.form-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    display: none; /* Hidden by default */
}



/* Form Success/Error Messages */
.form-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.message-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: iconPop 0.5s ease-out 0.2s both;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.error-icon {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.form-message h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.success-message h3 {
    color: #155724;
}

.error-message h3 {
    color: #721c24;
}

.form-message p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-message p {
    color: #155724;
}

.error-message p {
    color: #721c24;
}

.close-message {
    background: linear-gradient(135deg, #1a5490, #0d3a6b);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 84, 144, 0.3);
}

.close-message:hover {
    background: linear-gradient(135deg, #0d3a6b, #1a5490);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 84, 144, 0.4);
}

.close-message:active {
    transform: translateY(0);
}

/* Overlay for messages */
.form-message::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.show::before {
    opacity: 1;
}



/* Contact Form Styles */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hidden-field {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-light);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 1.2rem;
}

/* Form Message Styles */
.form-message {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Responsive Design for Contact Form */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .submit-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

