/*
Theme Name: AbtinafzarTheme
Author: Abtinafzar Javan
Version: 1.71
*/


/* ===== Custom header/footer styles (removed Tailwind/Lucide) ===== */
/* Base */
.site-body { background-color: #0f172a; color: #cbd5e1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Decorative blobs */
.bg-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .25; }
.blob-1 { top: 10%; left: 10%; width: 500px; height: 500px; background: #a855f7; }
.blob-2 { top: 30%; right: 10%; width: 600px; height: 600px; background: #3b82f6; }
.blob-3 { bottom: 10%; left: 20%; width: 400px; height: 400px; background: #ec4899; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; width: 100%; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(15,23,42,.8); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-wrap { display: flex; align-items: center; gap: 8px; }

.desktop-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-link { font-size: 14px; font-weight: 500; color: #cbd5e1; text-decoration: none; transition: color .2s ease; }
.nav-link:hover { color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; font-size: 14px; font-weight: 600; border-radius: 8px; text-decoration: none; color: #fff; border: none; cursor: pointer; }
.btn-gradient { background-image: linear-gradient(90deg,#a855f7,#3b82f6); transition: opacity .2s ease; }
.btn-gradient:hover { opacity: .9; }

/* Mobile menu */
.hamburger { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: #cbd5e1; display: block; transition: transform .2s ease, opacity .2s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; border-top: 1px solid rgba(255,255,255,.08); background: rgba(15,23,42,.95); }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu a { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.mobile-menu a:hover { color: #fff; }
.mobile-menu .mobile-cta { margin: 12px auto 16px; display: block; max-width: 280px; text-align: center; }
.mobile-menu.active { display: block; }

/* Desktop visibility */
@media (min-width: 768px) {
  .desktop-nav { display: block; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.1); background: rgba(15,23,42,.5); }
.site-footer .container { padding: 64px 16px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { height: 48px; width: auto; }
.footer-desc { font-size: 14px; color: #94a3b8; line-height: 1.8; padding-top: 12px; margin: 0; }
.socials { display: flex; gap: 16px; }
.social-link { color: #94a3b8; transition: color .2s ease; }
.social-link:hover { color: #fff; }
.footer-title { color: #fff; font-weight: 600; font-size: 18px; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { font-size: 14px; color: #94a3b8; text-decoration: none; display: inline-block; transition: color .2s ease, transform .2s ease; }
.footer-link:hover { color: #fff; transform: translateX(4px); }
.footer-empty { color: #64748b; font-size: 14px; }
.map-card { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.map-image { width: 100%; height: 192px; object-fit: cover; transition: transform .3s ease; }
.map-card:hover .map-image { transform: scale(1.03); }
.footer-location { font-size: 14px; color: #94a3b8; margin: 0; }
.icon-geo { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.ml-2 { margin-left: 8px; }
.mr-2 { margin-right: 8px; }

.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-copy { text-align: center; font-size: 14px; color: #94a3b8; margin: 0; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Precise logo sizing */
.logo-wrap .custom-logo { width: 50px !important; max-width: 50px !important; height: auto !important; }
.footer-logo .custom-logo { width: 70px !important; max-width: 70px !important; height: auto !important; }
/* Ensure images never overflow their containers */
img { max-width: 100%; height: auto; }

/* Service cards tweaks: ensure headings look like titles, not links */
.service-card { color: #cbd5e1; text-decoration: none; }
.service-card:link, .service-card:visited { color: inherit; text-decoration: none; }
.service-card h3 { color: #e5e7eb; text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.service-card:hover h3 { color: #ffffff; }
/*
Theme Name: Abtinafzar
Theme URI: https://example.com/rankola
Author: You
Author URI: https://example.com
Description: Rankola landing page theme converted from React to WordPress.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rankola
*/

/* Combined stylesheet generated from assets/css folder */
/*@import url('assets/css/styles.css');*/

/* ===== Base Imports ===== */

/* ===== Fonts (deduplicated) ===== */

/* ===== Reset & Variables (deduplicated) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gradient-1: #667eea;
    --gradient-2: #764ba2;
    --gradient-3: #f093fb;
    --gradient-4: #4facfe;
    --dark: #0a0e27;
    --darker: #050816;
}

/* ===== Homepage (EN) ===== */
body {
    background: var(--darker);
    color: #fff;
    overflow-x: hidden;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.15;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

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

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #667eea 50%, #f093fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease 0.2s both;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

.btn-outline {
    border: 2px solid #667eea;
    color: #fff;
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator::after {
    content: '↓';
    font-size: 2rem;
    opacity: 0.5;
}

#projects {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.projects-carousel {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.projects-track {
    display: flex;
    gap: 40px;
    padding: 0 5%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-track::-webkit-scrollbar {
    display: none;
}

.project-circle {
    min-width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.3);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-circle:hover::before {
    opacity: 1;
}

.project-circle:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: 800;
    opacity: 0.1;
}

.tech-badge {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.project-circle h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.project-circle p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

#consultation {
    background: var(--dark);
    position: relative;
}

.consultation-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.consultation-card {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 30px;
    padding: 60px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.consultation-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.consultation-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.consultation-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    grid-column: 1 / -1;
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    position: relative;
    z-index: 1;
}

#services {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
}

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

.service-card {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 25px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .section-title { font-size: 2.2rem; }
    .form-grid { grid-template-columns: 1fr; }
    .consultation-card { padding: 40px 30px; }
    .project-circle { min-width: 250px; height: 250px; padding: 25px; }
    .project-circle h3 { font-size: 1.2rem; }
    .project-circle p { font-size: 0.8rem; }
}

/* ===== Homepage (FA additions) ===== */
* {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Hero/Projects/Consultation/Services styles are shared with EN above */

/* ===== About Us (FA) ===== */
.about-page {
    background-color: #020617;
    color: #f1f5f9;
    padding: 80px 0 100px;
}

.about-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-page h1 {
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.about-layout {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.founder-card {
    display: flex;
    gap: 32px;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(67, 56, 202, 0.15);
    flex: 1;
    min-width: 300px;
}

.founder-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4f46e5;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.founder-content {
    flex: 1;
}

.founder-content h2 {
    font-size: 2rem;
    margin: 0 0 8px;
    color: #ffffff;
}

.founder-title {
    color: #93c5fd;
    font-weight: 500;
    margin: 0 0 20px;
    font-size: 1.1rem;
}

.founder-content p {
    line-height: 1.7;
    color: #dbeafe;
    margin-bottom: 18px;
    font-size: 1.02rem;
}

.signature {
    font-style: italic;
    color: #cbd5e1;
    margin-top: 12px;
    font-weight: 500;
}

.philosophy-section {
    flex: 1;
    min-width: 300px;
}

.philosophy-section h2 {
    font-size: 1.8rem;
    color: #e2e8f0;
    margin-bottom: 28px;
    font-weight: 600;
}

.principle {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.principle h3 {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.principle p {
    color: #94a3b8;
    line-height: 1.65;
    font-size: 1.02rem;
}

@media (max-width: 900px) {
    .about-layout {
        flex-direction: column;
        gap: 40px;
    }
    .founder-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .founder-avatar { order: -1; }
    .signature { text-align: center; }
}

@media (max-width: 600px) {
    .about-page h1 { font-size: 2.1rem; }
    .founder-card { padding: 30px 20px; }
    .founder-avatar img { width: 120px; height: 120px; }
}

/* ===== About Us (generic EN) ===== */
/* Reuses the same selectors as FA section above */

/* ===== Learning (EN) ===== */
.learning-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.learning-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    border-radius: 30px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.learning-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.learning-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.learning-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    margin-top: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    animation: glow 2s infinite;
    cursor: pointer;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.5); }
    50% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.8); }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #a78bfa;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.course-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: #7c3aed;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.course-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.course-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #a78bfa;
}
.course-card h3 a{
    color: #a78bfa; text-decoration: none;
}
.title_course{
    color: #ffffff;
    text-decoration: none;
}
.course-card p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.course-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.detail-badge {
    background: rgba(124, 58, 237, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(124, 58, 237, 0.4);
}

.class-types { display: flex; gap: 1rem; margin-top: 1.5rem; }
.class-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid #7c3aed;
    background: transparent;
    color: #a78bfa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}
.class-btn:hover { background: #7c3aed; color: white; transform: scale(1.05); }
.class-btn.private { border-color: #06b6d4; color: #67e8f9; }
.class-btn.private:hover { background: #06b6d4; color: white; }

.testimonials-section {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 30px;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.testimonial-card:hover { transform: translateY(-5px); border-color: #7c3aed; }

.student-info { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.student-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: bold;
}
.student-details h4 { color: #a78bfa; margin-bottom: 0.3rem; font-size: 1.1rem; }
.student-details p { color: #94a3b8; font-size: 0.9rem; }

.voice-player {
    background: rgba(124, 58, 237, 0.1);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.play-button {
    width: 45px; height: 45px; border-radius: 50%;
    background: #7c3aed; border: none; color: white;
    font-size: 1.2rem; cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.play-button:hover { background: #6d28d9; transform: scale(1.1); }

.voice-wave {
    flex: 1; height: 30px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.3) 0%, rgba(124, 58, 237, 0.6) 50%, rgba(124, 58, 237, 0.3) 100%);
    border-radius: 10px; position: relative; overflow: hidden;
}
.voice-wave::before {
    content: '';
    position: absolute; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: wave 2s infinite;
}
@keyframes wave { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.rating { color: #fbbf24; font-size: 1.2rem; }

.free-class-cta {
    text-align: center;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    padding: 4rem 2rem;
    border-radius: 30px;
    margin-top: 4rem;
}
.free-class-cta h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.free-class-cta p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-button {
    display: inline-block; background: white; color: #7c3aed;
    padding: 1.5rem 3rem; border-radius: 50px; text-decoration: none;
    font-size: 1.2rem; font-weight: bold; transition: all 0.3s ease;
    border: 3px solid white; cursor: pointer;
}
.cta-button:hover { background: transparent; color: white; transform: scale(1.05); }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: #0f172a; border-radius: 20px; width: 90%; max-width: 500px; padding: 2rem;
    border: 1px solid #7c3aed; position: relative; transform: translateY(-20px); transition: transform 0.3s ease;
    max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid rgba(167, 139, 250, 0.3); position: sticky; top: 0; background: #0f172a; z-index: 10;
}
.modal-title { font-size: 1.8rem; color: #a78bfa; margin: 0; }
.close-modal {
    background: none; border: none; color: #cbd5e1; font-size: 1.8rem; cursor: pointer; transition: color 0.3s;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.close-modal:hover { color: #fbbf24; background: rgba(255, 255, 255, 0.1); }
.form-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; flex: 1; }
.form-group.half { flex: 1; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #cbd5e1; font-weight: 500; }
.form-control {
    width: 100%; padding: 0.8rem; border-radius: 10px; border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(30, 41, 59, 0.5); color: white; font-size: 1rem;
}
.form-control:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3); }
.submit-btn {
    width: 100%; padding: 1rem; background: linear-gradient(135deg, #7c3aed, #06b6d4);
    border: none; border-radius: 10px; color: white; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4); }

@media (max-width: 768px) {
    .learning-hero h1 { font-size: 2rem; }
    .courses-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .class-types { flex-direction: column; }
    .modal-content { width: 95%; padding: 1.5rem; margin: 1rem; }
    .close-modal { font-size: 1.5rem; width: 36px; height: 36px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-group.half { width: 100%; }
}

/* CF7 overrides from learning-en */
.wpcf7 .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 25px;
    box-sizing: border-box;
}
.radio-javad { margin: 10px !important; }
.wpcf7 .form-control:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
    outline: none;
}
.wpcf7 .submit-button {
    display: inline-block;
    margin-top: 30px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.wpcf7 .submit-button:hover { background: #5b21b6; }

/* ===== Contact Page ===== */
.contact-page { padding: 40px 0; background: #020617; min-height: 100vh; color: #e0e0e0; }
.contact-page .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.contact-page h1 { text-align: center; margin-bottom: 40px; font-size: 2.5em; color: #ffffff; }
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-top: 30px; }
.contact-info { background: #0f172a; padding: 30px; border-radius: 8px; height: fit-content; border: 1px solid #1e293b; }
.contact-info h2 { margin-bottom: 25px; color: #ffffff; font-size: 1.5em; }
.info-item { margin-bottom: 20px; }
.info-item strong { display: block; color: #60a5fa; margin-bottom: 5px; }
.info-item p { margin: 0; color: #94a3b8; }
.contact-form-wrapper { background: #0f172a; padding: 30px; border: 1px solid #1e293b; border-radius: 8px; }
.contact-form-wrapper h2 { margin-bottom: 25px; color: #ffffff; font-size: 1.5em; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #ffffff; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; background: #1e293b; border: 1px solid #334155; border-radius: 4px; font-size: 16px; transition: all 0.3s; box-sizing: border-box; color: #e0e0e0;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #64748b; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #60a5fa; box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-button { background: #2563eb; color: white; padding: 14px 35px; border: none; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.submit-button:hover { background: #1d4ed8; transform: translateY(-1px); }
.success-message { background: #065f46; color: #d1fae5; padding: 15px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #047857; }
.error-message { background: #991b1b; color: #fecaca; padding: 15px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #dc2626; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } .contact-page h1 { font-size: 2em; } }
.contact-page, .contact-info, .contact-form-wrapper, .form-group input, .form-group textarea {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ===== Privacy (empty file was present) ===== */



/* ===== Header (common styles for EN/FA) ===== */
/* Blob animations */
.animate-blob { animation: blob 8s infinite; }
.animation-delay-2000 { animation-delay: -2s; }
.animation-delay-4000 { animation-delay: -4s; }

@keyframes blob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Mobile menu styles */
.mobile-menu { display: none; }
.mobile-menu.active { display: block; }
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
.hamburger span {
    width: 100%;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .desktop-nav { display: none; }

    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 0;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .mobile-menu a {
        color: #cbd5e1;
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        transition: color 0.2s;
    }
    .mobile-menu a:hover { color: white; }
    .mobile-cta { display: block !important; margin-top: 1rem; text-align: center; }
}


/*===========================================================================*/

/* استایل عمومی برای فرم‌های Contact Form 7 */
.wpcf7-form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 16px;
    color: #ffffff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

/* حالت فوکوس (وقتی کاربر داخل فیلد کلیک می‌کنه) */
.wpcf7-form-control:focus {
    border-color: #4da6ff;
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.25);
}

/* حالت hover */
.wpcf7-form-control:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* رنگ پلیس‌هولدر (متن راهنما داخل فیلد) */
.wpcf7-form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

/* برای سازگاری با مرورگرهای قدیمی‌تر */
.wpcf7-form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.wpcf7-form-control::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* حالت خطا (اگر فیلد اجباری باشه و خالی بمونه) */
.wpcf7-not-valid .wpcf7-form-control {
    border-color: #ff6b6b !important;
    background-color: rgba(255, 107, 107, 0.08) !important;
}

/* لیبل‌ها (اگر استفاده می‌کنید) */
.wpcf7 label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}
/* استایل دکمه‌ی ارسال */
.wpcf7 input[type="submit"],
.wpcf7 input.wpcf7-submit {
    background: linear-gradient(135deg, #4da6ff, #0077ff);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
    letter-spacing: 0.5px;
    font-family: inherit;
}

/* حالت هاور */
.wpcf7 input[type="submit"]:hover,
.wpcf7 input.wpcf7-submit:hover {
    background: linear-gradient(135deg, #5db5ff, #0088ff);
    box-shadow: 0 6px 16px rgba(0, 119, 255, 0.45);
    transform: translateY(-2px);
}

/* حالت فوکوس (دسترسی‌پذیری) */
.wpcf7 input[type="submit"]:focus,
.wpcf7 input.wpcf7-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.4);
}

/* حالت فعال (وقتی کلیک می‌کنی) */
.wpcf7 input[type="submit"]:active,
.wpcf7 input.wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 119, 255, 0.35);
}
/* ===== Single Post Template Styles ===== */
.single-post-container {
    /* Uses py-20 sm:py-24 for padding, so no extra padding needed here */
}

.post-wrapper {
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.post-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.post-thumbnail img {
    border-top-left-radius: 1rem; /* 16px */
    border-top-right-radius: 1rem; /* 16px */
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

.post-meta a {
    color: #93c5fd; /* light blue */
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-meta a:hover {
    color: #3b82f6; /* darker blue */
}

.prose-styles {
    line-height: 1.75;
    font-size: 1.125rem; /* 18px */
}

.prose-styles h2,
.prose-styles h3,
.prose-styles h4 {
    color: #ffffff;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1.5em;
    line-height: 1.3;
}

.prose-styles h2 { font-size: 1.875rem; } /* 30px */
.prose-styles h3 { font-size: 1.5rem; } /* 24px */
.prose-styles h4 { font-size: 1.25rem; } /* 20px */

.prose-styles p {
    margin-bottom: 1.5em;
}

.prose-styles a {
    color: #60a5fa;
    text-decoration: underline;
    text-decoration-color: #60a5fa;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.prose-styles a:hover {
    color: #3b82f6;
    text-decoration-color: #3b82f6;
}

.prose-styles blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin-left: 0;
    font-style: italic;
    color: #cbd5e1;
}

.prose-styles ul,
.prose-styles ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5em;
}

.prose-styles li {
    margin-bottom: 0.75em;
}

.prose-styles code {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.9em;
}

.prose-styles pre {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.prose-styles pre code {
    padding: 0;
    background: none;
}

.prose-styles img {
    border-radius: 0.75rem;
    margin-top: 2em;
    margin-bottom: 2em;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
