/*
Theme Name: Al-Anwar Global Visa Center
Theme URI: https://visa-forglobal.com/
Author: Al-Anwar Global
Author URI: https://visa-forglobal.com/
Description: Custom WordPress theme for Al-Anwar Global Visa Center.
Version: 1.0
Text Domain: al-anwar
*/

:root {
    --primary-color: #0d2b4e;
    /* Navy Blue */
    --secondary-color: #c5a059;
    /* Gold */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --danger-color: #d9534f;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --font-main: 'Cairo', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    direction: rtl;
    /* Default is RTL for Arabic */
    text-align: right;
}

/* Global utility for LTR text (Phone numbers, emails) */
.force-ltr {
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-block;
    text-align: left;
}

/* Basic Layouts */
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 95%;
    /* Increased from 90% */
    max-width: 1300px;
    /* Matched with content-text */
    margin: 0 auto;
    padding: 0 10px;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    /* Better contrast */
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: #b08d4a;
    border-color: #b08d4a;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background-color: #b08d4a;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
}

/* Header (Global) */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0;
    /* Reduced padding */
    transition: top 0.3s;
}

.admin-bar .main-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .main-header {
        top: 46px;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}


.logo img {
    height: 60px;
    width: auto;
}

/* Show navigation and button on desktop */
.main-nav {
    display: block;
}

.header-cta {
    display: block;
}

.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}



.main-nav a {
    color: var(--primary-color);
    font-weight: 600;
}

.main-nav a:not(.btn):hover,
.main-nav a.active:not(.btn) {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    /* Shiny Professional Gold Gradient (Radial) */
    background: radial-gradient(ellipse at center, #ebd176 0%, #c5a059 45%, #997529 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    border-bottom: 5px solid #a88540;
    /* Darker gold border */
}

/* Fallback color */
.hero {
    background-color: var(--secondary-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    /* Restored to White */
    font-weight: 800;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 1;
    color: var(--white);
    /* Restored to White */
    text-shadow: none;
}

.hero-desc {
    margin-bottom: 40px;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    opacity: 1;
    color: #f0f0f0;
    /* Off-white for description */
    font-weight: 600;
    text-shadow: none;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    margin-top: 15px;
    color: #777;
    font-size: 1.1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

/* Services */
.services-section {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Process Section */
.process-section {
    background-color: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.step h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: #ddd;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

/* Reasons Section */
.reasons-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.reasons-content h2 {
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.reason-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.reason-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.reason-item h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.cta-box {
    background-color: var(--white);
    color: var(--text-color);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.cta-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-box p {
    margin-bottom: 30px;
    color: #666;
}

/* Inner Pages (About, Disclaimer, etc) */
.about-page .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify;
}

.certificate-container {
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.certificate-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content-text {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}


@media (max-width: 768px) {
    .content-text {
        padding: 20px 10px;
    }
}


.content-text h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}


.content-text ul {
    margin-top: 15px;
    padding-right: 20px;
    list-style-type: disc;
}

/* Legal Box */
.legal-box {
    background-color: var(--warning-bg);
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 40px;
    color: var(--warning-text);
}

.full-page-legal {
    display: flex;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-icon {
    font-size: 4rem;
    color: #856404;
}

.legal-points ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Footer (Global) */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

/* Footer Items with Icons */
.footer-col p {
    display: flex;
    align-items: center;
    /* Vertically center icon and text */
    gap: 10px;
    /* Space between icon and text */
    margin-bottom: 10px;
}

.footer-col i {
    width: 20px;
    /* Fixed width for alignment */
    text-align: center;
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-social a i {
    font-size: 1.8rem;
    color: var(--white);
    width: auto;
    margin: 0;
}


.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* 
   TRANSLATION READY SUPPORT 
   The following block prepares the site for toggling dir="ltr" on the HTML tag.
   This is crucial for WordPress multi-language plugins like Polylang/WPML.
*/
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}



html[dir="ltr"] .footer-col ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

html[dir="ltr"] .about-text h3 {
    text-align: left;
    /* Or keep inherit */
}

html[dir="ltr"] .about-text p {
    text-align: justify;
}




/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        /* Keep logo and button/menu on same row */
        justify-content: space-between;
        gap: 10px;
    }

    .header-right {
        gap: 15px;
    }

    .main-nav {
        display: none;
        /* Hide menu links on mobile */
    }

    .header-cta {
        display: block;
        /* Show appointment button on mobile */
    }



    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .about-page .about-grid,
    .reasons-grid,
    .full-page-legal,
    .process-steps {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .step-connector {
        display: none;
    }

    .legal-box {
        padding: 20px;
    }

    .full-page-legal {
        gap: 20px;
    }
}

/* Gravity Forms Custom Styles */
/* Gravity Forms Radio Grid - Final Compact Version */
.radio_btn {
    width: 100% !important;
    max-width: 100% !important;
}

.radio_btn .gfield_radio {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.radio_btn .gfield_radio .gchoice {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    /* Keep items close together in RTL */
    margin: 0 !important;
    padding: 5px 0 !important;
    list-style: none !important;
    width: 100% !important;
}

/* Radio and Label positioning - Dot on Right for RTL */
.radio_btn .gfield_radio .gchoice input[type="radio"] {
    order: 1;
    /* Furthest right in RTL */
    margin: 0 0 0 6px !important;
    /* Gap between dot and label content */
    flex-shrink: 0;
    width: 18px !important;
    height: 18px !important;
}

.radio_btn .gfield_radio .gchoice label {
    order: 2;
    /* Content to the left of the dot */
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    /* Gap between flag and text */
    font-size: 1.05rem !important;
    /* Larger font size as requested */
    font-weight: 500;
    white-space: normal !important;
    /* ALLOW WRAPPING */
    word-break: break-word !important;
    line-height: 1.3 !important;
    cursor: pointer;
    text-align: right;
}

/* Flags/Images sizing */
.radio_btn .gfield_radio .gchoice label img {
    max-height: 22px !important;
    width: auto !important;
    flex-shrink: 0;
}

/* Responsive Overrides */
@media screen and (max-width: 1024px) {
    .radio_btn .gfield_radio {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    .radio_btn .gfield_radio {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px 5px !important;
    }

    .radio_btn .gfield_radio .gchoice label {
        font-size: 0.9rem !important;
    }
}