/*
Theme Name: Secure Audio Courses Theme
Theme URI: https://www.facebook.com/MahmoudAbdofahmy
Author: Mahmoud Developer
Description: A modern, high-end theme for Secure Audio Courses with RTL support and premium aesthetics.
Version: 1.0.0
Text Domain: sac-theme
*/

:root {
    --primary-color: #0088cc;
    --primary-hover: #0077bb;
    --secondary-color: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --accent-blue: #0088cc;
    --accent-blue-light: #e0f2fe;
    --accent-orange: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --header-height: 80px;
}



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

body {
    font-family: 'Almarai', sans-serif;
    background-color: var(--bg-alt);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

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

/* Header */
.site-header {
    height: var(--header-height);
    background: var(--bg-main);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo img {
    height: 40px;
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav li a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-main);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn,
.profile-link {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background-color 0.3s;
}

.login-btn:hover,
.profile-link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.logout-link {
    background-color: var(--secondary-color);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.logout-link:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 2%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        height: 100vh;
        display: flex;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(0, 136, 204, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
}

.hero-dots {
    position: absolute;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 200px;
    height: 200px;
    opacity: 0.1;
    z-index: -1;
}

.hero-dots-1 {
    top: 100px;
    left: 50px;
}

.hero-dots-2 {
    bottom: 100px;
    right: 50px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 992px) {
    .hero .container {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff9f0;
    color: #f59e0b;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid #fef3c7;
}

.badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 50%;
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .hero-title {
        line-height: 1.5;
    }
}

.highlight-blue-text {
    color: var(--primary-color);
}

.hero-description {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 14px;
    max-width: 600px;
    line-height: 1.8;
}

.bg-highlight-blue {
    background-color: var(--accent-blue-light);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.text-orange {
    color: var(--accent-orange) !important;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 136, 204, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px -5px rgba(0, 136, 204, 0.4);
}

.cta-btn:hover::before {
    width: 100%;
}

.cta-btn i {
    transition: transform 0.4s ease;
    font-size: 14px;
}

.cta-btn:hover i {
    transform: translateX(-5px);
}

.accent-btn {
    background-color: #EC0C88 !important;
    box-shadow: 0 10px 15px -3px rgba(236, 12, 136, 0.3) !important;
}

.accent-btn:hover {
    background-color: #c40a6f !important;
    box-shadow: 0 15px 25px -5px rgba(236, 12, 136, 0.4) !important;
}

.vocab-btn {
    background-color: #7C3AED !important;
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3) !important;
}

.vocab-btn:hover {
    background-color: #6d28d9 !important;
    box-shadow: 0 15px 25px -5px rgba(124, 58, 237, 0.4) !important;
}

.interview-btn {
    background-color: #F59E0B !important;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3) !important;
}

.interview-btn:hover {
    background-color: #d97706 !important;
    box-shadow: 0 15px 25px -5px rgba(245, 158, 11, 0.4) !important;
}

.secondary-btn {
    background-color: #0EA5E9 !important;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3) !important;
}

.secondary-btn:hover {
    background-color: #0284c7 !important;
    box-shadow: 0 15px 25px -5px rgba(14, 165, 233, 0.4) !important;
}

.grammar-btn {
    background-color: #409F9B !important;
    box-shadow: 0 10px 15px -3px rgba(64, 159, 155, 0.3) !important;
}

.grammar-btn:hover {
    background-color: #2d8783 !important;
    box-shadow: 0 15px 25px -5px rgba(64, 159, 155, 0.4) !important;
}

/* Floating Elements */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-circle {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.circle-gauge {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 15px solid #f1f5f9;
    border-top: 15px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotate(45deg);
}

.gauge-text {
    transform: rotate(-45deg);
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
}

.gauge-label {
    transform: rotate(-45deg);
    font-size: 14px;
    color: var(--text-muted);
}

.float-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.card-1 {
    top: 60px;
    right: 10px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 40px;
    right: 40px;
    animation-delay: 1.5s;
}

.card-3 {
    top: 200px;
    left: 0px;
    animation-delay: 3s;
}

.card-4 {
    bottom: 100px;
    left: -20px;
    animation-delay: 4.5s;
}

.card-content h4 {
    font-size: 15px;
    font-weight: 700;
}

.card-content p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Stats */
.stats-row {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-item p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }

    100% {
        transform: translateX(200%) skewX(-20deg);
    }
}

@keyframes pulse-subtle {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 15px -3px rgba(0, 136, 204, 0.3);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 20px 25px -5px rgba(0, 136, 204, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 15px -3px rgba(0, 136, 204, 0.3);
    }
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
    z-index: 1;
}

.cta-btn {
    animation: fadeInUp 0.8s ease-out, pulse-subtle 4s infinite ease-in-out;
}

.secondary-btn {
    animation: fadeInUp 0.8s ease-out 0.2s, pulse-subtle 4s infinite ease-in-out 1s !important;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease-out;
}

.banner-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

/* Response for Hero CTAs from Plugin */
.hero-cta-group .sac-cta-wrapper {
    margin: 0;
}

.hero-cta-group .sac-cta-btn {
    width: 100%;
    max-width: 300px;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-visual {
        height: auto;
        margin-top: 20px;
    }

    .hero-banner {
        max-width: 100%;
    }

    .hero-cta-group {
        width: 100%;
        align-items: center;
    }

    .hero-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .cta-btn {
        padding: 10px;
        justify-content: center;
        width: 100%;
    }

    :root {
        --header-height: 70px;
    }

    .site-header .container {
        justify-content: space-between;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 35px;
    }

    .header-left .login-btn,
    .header-left .profile-link {
        padding: 8px 12px;
        background: none;
        color: var(--primary-color);
        box-shadow: none;
    }

    .header-left .login-btn i,
    .header-left .profile-link i {
        font-size: 24px;
    }

    .Desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
        font-size: 24px;
        color: var(--primary-color);
        position: relative;
        z-index: 3000;
        /* Above the mobile menu */
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    padding-top: var(--header-height);
    visibility: hidden;
}

.nav-open .mobile-menu {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.mobile-nav-list li a {
    display: block;
    padding: 15px 0;
    font-weight: 600;
    border-bottom: 1px solid var(--secondary-color);
}

/* Simple Footer */
.site-footer {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid var(--secondary-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}


/* Hide redundant title on dashboard */
.page-template-page-dashboard-php .entry-title {
    display: none !important;
}

/* Premium Login Modal Styles */
.sac-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.sac-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sac-modal-content {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sac-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    border: none;
}

.sac-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.sac-modal-tabs {
    display: flex;
    background: var(--bg-alt);
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 30px;
    gap: 10px;
}

.sac-tab {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-muted);
    transition: all 0.3s;
    border: none;
}

.sac-tab.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.sac-field {
    margin-bottom: 20px;
}

.sac-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.sac-field input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    background: var(--bg-alt);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
}

.sac-field input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.1);
    outline: none;
}

.sac-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.3s;
    border: none;
}

.sac-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 136, 204, 0.3);
}

.sac-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #fee2e2;
    text-align: center;
}

.sac-success-content {
    text-align: center;
}

.sac-success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.sac-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 20px;
    transition: all 0.3s;
}

.sac-whatsapp-btn:hover {
    background: #20ba5a;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .sac-modal-content {
        padding: 30px 20px;
    }
}

/* Subscription Modal Specifics */
.sac-subscription-content h3,
.sac-subscription-success h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.sac-subscription-content p,
.sac-subscription-success p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.sac-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sac-cancel-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

.sac-cancel-btn:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.sac-subscription-content .sac-success-icon {
    background: #e0f2fe;
    color: var(--primary-color);
}

/* Dashboard & Course Grid */
.dashboard-page {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 80vh;
}

.sac-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    padding: 20px 0;
}

.sac-course-card {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    background: #fff !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none !important;
}

.sac-course-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important;
}

.sac-course-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.sac-course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.sac-course-card-body {
    padding: 25px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sac-course-card-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
}

.sac-course-card-meta {
    font-size: 0.9rem !important;
    color: #64748b !important;
    margin-bottom: 20px !important;
    display: flex;
    gap: 15px;
}

.sac-progress-bar {
    height: 8px !important;
    border-radius: 10px !important;
    background: #e2e8f0 !important;
    overflow: hidden;
    margin-top: auto;
}

.sac-progress-fill {
    background: linear-gradient(90deg, #1a73e8, #0ea5e9) !important;
    border-radius: 10px !important;
}

.sac-progress-text {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin-top: 5px;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sac-course-card {
    animation: fadeInUp 0.5s ease backwards;
}

.sac-course-card:nth-child(2) {
    animation-delay: 0.1s;
}

.sac-course-card:nth-child(3) {
    animation-delay: 0.2s;
}

.sac-course-card:nth-child(4) {
    animation-delay: 0.3s;
}