/* Kurdistan Business Excellence Academy - Corrected Styles */

:root {
    --primary: #B8964F;
    --primary-dark: #9A7A3D;
    --primary-light: #D4AF6A;
    --secondary: #1A1A1A;
    --text-dark: #2D2D2D;
    --text-light: #5A5A5A;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border: #E5E5E5;
    --success: #10B981;
    --error: #EF4444;
    --shadow: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* FORCE LTR for all pages by default */
body {
    font-family: 'Poppins', -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
    direction: ltr !important;
    text-align: left !important;
}

/* Kurdish RTL ONLY when html has lang="ku" */
html[lang="ku"] body {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Noto Sans Arabic', Arial, sans-serif;
    font-size: 0.85rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
    margin-bottom: 1rem;
}

html[lang="ku"] h1, 
html[lang="ku"] h2, 
html[lang="ku"] h3,
html[lang="ku"] h4, 
html[lang="ku"] h5, 
html[lang="ku"] h6 {
    font-family: 'Noto Sans Arabic', Arial, sans-serif;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

html[lang="ku"] h1 { font-size: clamp(1.6rem, 4vw, 3rem); }
html[lang="ku"] h2 { font-size: clamp(1.4rem, 3.5vw, 2.3rem); }
html[lang="ku"] h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
html[lang="ku"] h4 { font-size: clamp(1rem, 2vw, 1.3rem); }

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

html[lang="ku"] p {
    font-size: 0.9rem;
}

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

img {
    max-width: 100%;
    height: auto;
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

html[lang="ku"] .nav-menu a {
    font-size: 0.8rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.cta-btn {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px;
}

.cta-btn:hover {
    background: var(--primary-dark) !important;
}

.lang-switch {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.lang-switch:hover {
    background: var(--primary-dark);
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 150px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

html[lang="ku"] .hero-badge {
    font-size: 0.75rem;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: white;
    opacity: 0.95;
}

html[lang="ku"] .hero-subtitle {
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: white;
}

.page-subtitle {
    font-size: 1.125rem;
    color: white;
    opacity: 0.95;
}

html[lang="ku"] .page-subtitle {
    font-size: 0.95rem;
}

/* Stats */
.stats-section {
    background: var(--secondary);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

html[lang="ku"] .stat-number {
    font-size: 2.3rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

html[lang="ku"] .stat-label {
    font-size: 0.85rem;
}

/* Section */
.section {
    padding: 6rem 0;
}

.section.bg-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

html[lang="ku"] .section-badge {
    font-size: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

html[lang="ku"] .section-subtitle {
    font-size: 0.95rem;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

/* Cards */
.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

html[lang="ku"] .service-icon {
    font-size: 2.3rem;
}

.service-title {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
}

html[lang="ku"] .service-description {
    font-size: 0.85rem;
}

.program-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--primary);
}

.program-title {
    color: var(--primary);
    font-size: 1.25rem;
}

html[lang="ku"] .program-title {
    font-size: 1rem;
}

.program-description {
    color: var(--text-light);
}

html[lang="ku"] .program-description {
    font-size: 0.8rem;
}

/* Membership */
.membership-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 3px solid transparent;
    position: relative;
}

.membership-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.membership-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

html[lang="ku"] .membership-badge {
    font-size: 0.75rem;
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.membership-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 1rem 0;
}

html[lang="ku"] .membership-price {
    font-size: 1.9rem;
}

.membership-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

html[lang="ku"] .membership-features {
    text-align: right;
}

.membership-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

html[lang="ku"] .membership-features li {
    font-size: 0.85rem;
}

.membership-features li:before {
    content: "✓ ";
    color: var(--primary);
    font-weight: 700;
    margin-right: 0.5rem;
}

html[lang="ku"] .membership-features li:before {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

html[lang="ku"] .btn {
    font-size: 0.85rem;
    padding: 0.9rem 1.8rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

html[lang="ku"] .btn-lg {
    font-size: 0.95rem;
    padding: 1.1rem 2.2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

html[lang="ku"] .form-group label {
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

html[lang="ku"] .form-control {
    text-align: right;
    font-size: 0.85rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.success-message {
    background: var(--success);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 2rem;
}

html[lang="ku"] .cta-text {
    font-size: 0.95rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-heading {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

html[lang="ku"] .footer-heading {
    font-size: 1rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

html[lang="ku"] .footer-links li,
html[lang="ku"] .footer-contact li {
    font-size: 0.85rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

html[lang="ku"] .footer-bottom {
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(320px, 85vw);
        background: white;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: 0.3s;
        z-index: 999;
    }
    
    html[lang="ku"] .nav-menu {
        right: auto;
        left: 0;
        transform: translateX(-100%);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
    }
    
    .hero, .page-header {
        padding: 120px 0 80px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hero-actions, .cta-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .membership-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    html[lang="ku"] { font-size: 12px; }
    
    .stats-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
