:root {
    /* Define Variables for easy color changes */
    --primary-color: #22A0AF; /* Dark Teal/Green */
    --secondary-color: #ffffff; /* White */
    --accent-color: #FFC107; /* Amber/Gold */
    --transition-speed: 0.3s;
    --purple-color: #80256B; /* Added for clarity */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-secondary {
    color: #fff ;
}

.about-button:hover .btn-secondary{
    color: #000 !important;
}
/* --- Top Header Bar (Sub-Header) --- */
.sub-header-container {
    background: linear-gradient(140deg, var(--purple-color), #22a1afc7, var(--purple-color));
    width: 100%;
}

.sub-header {
    color: var(--secondary-color);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-header-right {
    font-size: 1.3em;
    font-weight: 400;
    color: #fff !important;
    direction: rtl; /* For Arabic text */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.subheader-right{
    display: flex;
    justify-content: start;
    align-items: center;
}

.subheader-right .social-icons{
    margin-right: 20px;
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 1em;
    transition: color var(--transition-speed);
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--accent-color);
}


.login-dropdown {
    position: relative; 
    display: inline-block;
    z-index: 1001 !important; 
}

.login-btn {
    text-decoration: none;
    color: var(--purple-color);
    padding: 8px 10px;
    display: block;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.login-btn i {
    margin-right: 5px;
}

.login-btn:hover {
    color: var(--accent-color); 
}

.login-dropdown:hover .fa-sign-in-alt{
    rotate: 90deg;
}


.login-dropdown .dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%; 
    right: 0; 
    background-color: #fff; 
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 15px 10px;
    border-radius: 4px;
    z-index: 1111 !important;
}

.login-dropdown:hover .dropdown-menu {
    display: block;
}

.login-dropdown .dropdown-item {
    color: var(--purple-color); 
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 1em;
    white-space: nowrap; 
    transition: background-color 0.2s ease;
    z-index: 1111 !important;
}

.dropdown-item i {
    margin-right: 8px; 
}

.dropdown-item:hover {
    background-color: #f1f1f1; 
    color: var(--accent-color); 
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 110px;
    height: auto;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 25px;
    transition: color var(--transition-speed);
    position: relative;
    text-transform: uppercase;
    font-weight: 400;
    font-size: .9rem;
    letter-spacing: 1px;
    padding-bottom: 5px; 
}

/* Mega Menu Item Container (for positioning) */
.nav-item {
    position: relative;
    display: inline-block;
    /* To visually align with other links, we can use margin here */
    margin-left: 25px; 
}

/* Adjust the style for the main Courses link inside the nav-item */
.nav-item .nav-link-courses {
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    /* Ensure hover effect applies to the main link */
}

/* Rotate the icon on hover */
.nav-link-courses i {
    font-size: 0.6em;
    transform: rotate(0deg);
    transition: transform var(--transition-speed);
}
.mega-menu-item:hover .nav-link-courses i {
    transform: rotate(180deg);
}


.nav-links a:hover, .nav-links a.active {
    color: var(--purple-color); 
}

/* Active line style */
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

/* Hover line animation (applies only to standard links, not .nav-item) */
.nav-links a:not(.btn-primary):not(.nav-link-courses)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; 
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease-out; 
}
/* Apply hover line animation to the nav-link-courses specifically */
.nav-links .nav-item:hover .nav-link-courses::before {
    width: 100%;
}
.nav-links a:not(.btn-primary):hover::before {
    width: 100%; 
}

.btn-primary {
    background-color: #eeeeeed9;
    border-radius: 5px;
    color: var(--primary-color) !important;
    padding: 10px 20px;
    margin-left: 30px;
    transition: background-color var(--transition-speed);
    text-align: center;
}
.btn-primary:hover {
    background-color: #e1e1e1;
}


/* --- Mega Menu Content Styling (Desktop) --- */
.mega-menu-content {
    display: none; /* Default state: Hidden */
    position: absolute;
    left: 0%; /* Center the menu relative to the 'Courses' link */
    transform: translateX(-50%);
    top: 100%; 
    width: 660px; /* Desktop width */
    max-width: 90vw; 
    background-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.279);
    /* border-top: 4px solid var(--accent-color); */
    border-radius: 0 0 10px 10px;
    z-index: 99; 
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show Mega Menu on hover */
.mega-menu-item:hover .mega-menu-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Inner Layout: Sub-menu and Video (2 Columns) */
.mega-menu-inner {
    display: flex;
    gap: 30px;
}

/* Left Column: Sub Menu List */
.sub-menu-list {
    flex: 1; 
    min-width: 250px;
    padding-right: 20px;
    border-right: 1px solid #cfcfcf;
}

.sub-menu-list h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 5px 20px;
    border-radius: 5px;
    background: linear-gradient(140deg, var(--purple-color), var(--primary-color), var(--purple-color));
}

.sub-menu-list a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px;
    margin-left: 0 !important; /* Remove default margin */
    transition: padding-left 0.2s, color 0.2s;
    text-transform: none; 
    font-size: 1rem;
    letter-spacing: normal;
    position: relative;
}

.sub-menu-list a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

/* Right Column: Video Preview */
.sub-menu-video {
    flex: 1; 
    display: flex; 
    flex-direction: column;
    gap: 10px;
}

.video-preview-box {
    width: 100%;
    height: 250px;
    padding-top: 56.25%; 
    position: relative;
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Styling for the native video element */
.video-preview-box video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.sub-menu-video p {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    text-align: center;
}


/* Mobile Menu/Toggle (Existing Code) */
.menu-toggle {
    display: none; /* Hidden by default (desktop) */
    font-size: 1.5em;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Navigation Panel (Existing Code) */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 95%;
    max-width: 100%; 
    height: 100%; 
    background-color: var(--secondary-color); 
    z-index: 11002; 
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-panel.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-nav-panel-logo {
    width: 100px;
}

.close-btn {
    font-size: 1.5em;
    color: var(--purple-color);
    cursor: pointer;
}

.mobile-nav-panel .nav-links {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.mobile-nav-panel .nav-links a {
    /* Base styles for all links in mobile menu, overridden for dropdown parts */
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    text-transform: none;
    font-size: 1.1rem;
    letter-spacing: normal;
    color: var(--primary-color);
}

.mobile-nav-panel .nav-links a.btn-primary {
    margin-top: 20px;
    text-align: center;
    border-bottom: none;
}

/* --- Mobile Dropdown (Courses) Styling: NEW CODE for Mobile Sub-Menu --- */

/* Wrapper for the courses dropdown in mobile menu */
.mobile-course-dropdown {
    /* Styles to make the wrapper look like a menu link */
    border-bottom: 1px solid #eee;
    margin: 10px 0;
    padding: 10px 0; 
}

/* The main clickable link/toggle button */
.mobile-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color) !important;
    text-decoration: none;
    text-transform: none !important;
    font-size: 1.1rem !important;
    letter-spacing: normal !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: 100%;
}

/* Ensure the arrow icon rotates */
.mobile-dropdown-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

/* Class added by JS when open */
.mobile-course-dropdown.open .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    /* Key for smooth transition: starts at 0, opens using JS max-height */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding-top: 0px;
    background-color: #efefef;
}

/* Sub-links inside the mobile dropdown */
.mobile-dropdown-content a {
    display: block;
    padding: 8px 0 8px 15px !important; /* Indent sub-links */
    font-size: 1rem !important;
    color: #666 !important;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border: none !important; /* Remove separator line */
    margin: 0 !important;
    font-weight: 400 !important;
}

.mobile-dropdown-content a:hover {
    background-color: #f7f7f7;
    color: var(--purple-color) !important;
}

/* Style for the 'View All Courses' link */
.mobile-dropdown-content .mobile-main-link {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    margin-top: 5px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px dotted #eee !important;
}


/* ==================== Updated Premium Footer Styles ==================== */

.main-footer {
    
    background-color: var(--primary-color); 
    color: var(--secondary-color); /* White text */
    padding-top: 90px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden; /* To contain background effects */
}

/* Optional: Subtle geometric background pattern for premium feel */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, #003117df, #003117df),
                    url(images/footer-img.png);
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2; /* Ensure content is above the pseudo-element background */
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 130px; 
    height: auto;
    filter: brightness(0) invert(1); 
    margin-bottom: 20px;
}

.footer-tagline {
    font-style: italic;
    font-size: 1em;
    font-weight: 300;
    margin-bottom: 20px;
    color: #fff; /* Amber/Gold */
}

/* Headings */
.footer-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--secondary-color); /* Pure White */
    position: relative;
}

/* Underline effect for the title */
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color); /* Amber highlight */
}

/* Quick Links and Contact List */
.footer-links ul,
.footer-contact ul {
    list-style: none !important;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 15px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
}

/* Icon Styling */
.footer-links li i,
.footer-contact li i {
    color: var(--accent-color) !important;
    margin-right: 12px;
    font-size: 0.9em;
    transition: transform var(--transition-speed);
}

.link-hover-effect{
    transition: all .4s ease;
}

/* Link Hover Effect: Text Color & Icon Movement */
.link-hover-effect:hover {
    color: var(--accent-color);
    padding-left: 5px; /* Subtle movement */
    transition: all .2s .2s ease;
}

.link-hover-effect:hover i {
    transform: translateX(3px);
    color: var(--purple-color); /* Icon color change on hover */
    transition: all .2s ease;
}

/* Social Icons */
.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.footer-social-icons a {
    color: var(--secondary-color);
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    background-color: #ededed1b;
}

.footer-social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px); /* Slight lift */
    transition: all .3s ease;
}

/* Newsletter Form */
.footer-newsletter p {
    font-size: 0.9em;
    margin-bottom: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
}

.newsletter-form input[type="email"] {
    padding: 12px 0px 12px 20px;
    border-top: 2px solid #FBC50B;
    border-bottom: 2px solid #FBC50B;
    border-left: 2px solid #FBC50B;
    border-right: none;
    background-color: transparent; /* Darker shade of primary color */
    color: #ffffff;
    font-size: 15px;
    border-radius: 50px 0 0 50px;
    width: 100% !important;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(128, 37, 107, 0.5);
}

.newsletter-btn {
    /* Custom button style for newsletter */
    background-color: var(--accent-color);
    color: var(--secondary-color); 
    padding: 5px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 50px;
    text-align: center;
    font-size: 18px;
    border-radius: 50%;
    margin-left: -20px;
}

.newsletter-btn:hover {
    background-color: var(--purple-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Footer Bottom Bar (Copyright) */
.footer-bottom {
    background-color: transparent; /* Your defined purple color */
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom-container {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.448);
    padding: 40px 20px;
    align-items: center;
}

.design-credit a,
.footer-bottom p {
    margin: 0;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-right: 5px;
}

.design-credit a:hover{
    color: #FBC50B;
}

.design-credit {
    font-style: italic;
    
}



/* ==================== Media Queries (Responsiveness) ==================== */

/* Hide video on Tablet/smaller Desktop view (Mega Menu only) */
@media (max-width: 900px) {
    .sub-menu-video {
        /* display: none;  */
    }
    .mega-menu-content {
        width: 300px; /* Adjust width for single column */
        max-width: 80vw;
    }
    .sub-menu-list {
        border-right: none; /* Remove right border when video is hidden */
        padding-right: 0;
    }
    .mega-menu-inner {
        flex-direction: column;
    }
}

@media (max-width: 1050px) {
    /* Header/Navigation */
    .nav-links {
        display: none; 
    }
    .menu-toggle {
        display: block;
    }
    .header-container {
        padding: 10px 0;
    }
    .header {
         padding: 1px 20px;
    }
    /* Hide the desktop mega menu entirely when mobile menu is active */
    .mega-menu-content {
        display: none !important;
    }
}

@media (max-width: 850px) {
    
    .sub-header-left {
        display: none;
    }
    .sub-header-right{
        padding: 10px 0;
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    /* Footer */
    .footer-container {
        justify-content: space-around;
        /* text-align: center; */
    }
    .footer-column {
        min-width: 45%;
        margin-bottom: 40px;
    }
    .footer-brand {
        min-width: 100%;
    }
    .footer-logo {
        width: 100px;
        margin: 0 auto 20px;
    }
    
  
    .footer-bottom-container {
        flex-direction: column;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .design-credit {
        margin-top: 10px;
    }
    .newsletter-form {
        max-width: 350px;
        margin: 15px auto 0;
    }
}

@media (max-width: 576px) {
    .footer-column {
        min-width: 100%;
    }
    .footer-container {
        gap: 0;
    }
}






.faq-header-cta .btn-primary {
      display: inline-block;
      padding: 10px 14px;
      border-radius: 10px;
      text-decoration: none;
      color: #fff !important;
      font-weight: 600;
      background: linear-gradient(90deg, var(--primary-color), var(--purple-color));
      box-shadow: 0 8px 26px rgba(34, 160, 175, 0.08);
      transition: transform var(--transition), box-shadow var(--transition);
    }

    .faq-header-cta .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 14px 40px rgba(34, 160, 175, 0.08)
    }





    /* ==========language============= */



    #gt-mordadam-43217984 {
        position: fixed;       /* Fixes the div in place */
        bottom: 20px;          /* Distance from the bottom */
        right: 20px;            /* Distance from the left */
        background-color: #f0f0f0; /* Light gray background */
        color: #333;           /* Text color */
        padding: 10px 15px;    /* Some padding inside the box */
        border-radius: 8px;    /* Rounded corners */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Subtle shadow */
        font-family: Arial, sans-serif;
        font-size: 14px;
        z-index: 9999;         /* Make sure it's on top of other elements */
    }





    /* =========scroll & whatsapp btn======== */



/* --- WhatsApp Icon Styling --- */
.whatsapp-icon {
    position: fixed; 
    bottom: 70px; 
    right: 20px; 
    z-index: 1000; 
    transition: transform 0.3s ease;
    width: 50px; 
    height: 50px;
}

.whatsapp-icon img {
    width: 100%; 
    height: 100%;
    object-fit: contain;
    border-radius: 50%; 
}

.whatsapp-icon:hover {
    transform: scale(1.1); 
}

/* --- Scroll to Top Button Styling --- */
.scroll-to-top-btn {
    position: fixed;
    bottom: 130px; 
    right: 20px; 
    z-index: 999;
    background-color: #80256B; 
    color: white; 
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 25px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s;
}

.scroll-to-top-btn.show {
    display: block;
    opacity: 1;
}

.scroll-to-top-btn:hover {
    background-color: #22A0AF;
}














/* ==================== NEW WHATSAPP CHAT WIDGET STYLES ==================== */

/* Chat Widget Container (Hidden by default) */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 130px; /* Icon ke thoda upar */
    right: 20px;
    width: 320px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    overflow: hidden;
    display: none;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    animation: slideUp 0.3s ease-out;
    border: 1px solid #e0e0e0;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.chat-widget-header {
    background-color: #075E54; /* WhatsApp Green */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget-header h4 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.chat-widget-header .close-chat {
    cursor: pointer;
    font-size: 18px;
    background: none;
    border: none;
    color: white;
}

/* Body */
.chat-widget-body {
    padding: 15px;
    background-color: #e5ddd5; /* WhatsApp Chat Background */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input-group {
    display: flex;
    flex-direction: column;
}

.chat-input-group label {
    font-size: 12px;
    color: #555;
    margin-bottom: 3px;
    font-weight: 600;
}

.chat-widget-body input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    width: 100%;
}

.chat-widget-body input:focus {
    border-color: #25D366;
}

/* Send Button */
.btn-whatsapp-send {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp-send:hover {
    background-color: #128C7E;
}

.btn-whatsapp-send:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* API Response Message */
#apiResponse {
    font-size: 11px;
    text-align: center;
    margin-top: 5px;
    font-weight: bold;
}

/* Modify existing Icon to show pointer */
.whatsapp-icon {
    cursor: pointer;
}