/* Global Public Design - Premium Modern Version */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    --primary: var(--k-primary);
    --primary-light: var(--k-primary-light);
    --primary-dark: var(--k-primary-dark);
    --accent: var(--k-accent);
    --accent-light: var(--k-accent-soft);
    --text: var(--k-text-main);
    --text-light: var(--k-text-muted);
    --bg-main: var(--k-bg);
    --bg-white: var(--k-white);
    --bg-footer: var(--k-primary-dark);
    --border: var(--k-border);
    --radius-sm: var(--k-radius-sm);
    --radius-md: var(--k-radius-md);
    --radius-lg: var(--k-radius-lg);
    --radius-full: var(--k-radius-full);
    --shadow-sm: var(--k-shadow-soft);
    --shadow-md: var(--k-shadow-md);
    --shadow-lg: var(--k-shadow-lg);
    --transition: var(--transition);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Arabic', 'Noto Naskh Arabic', system-ui, sans-serif;
    color: var(--text);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Naskh Arabic', 'Noto Sans Arabic', serif;
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: inherit;
}

ul {
    list-style: none;
}

/* === TOP BAR (Language Menu) === */
.top-bar {
    background: var(--bg-main);
    border-bottom: 1px solid rgba(26, 83, 92, 0.08);
    padding: 8px 5%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
}

.top-bar-lang {
    display: flex;
    gap: 15px;
}

.lang-item {
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-item:hover,
.lang-item.active {
    color: var(--primary);
}

/* === HEADER === */
.main-header {
    background: rgba(254, 251, 245, 0.85);
    backdrop-filter: blur(15px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner,
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions .btn {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background: #2D5A56;
    color: white;
    box-shadow: 0 4px 15px rgba(45, 90, 86, 0.2);
    border: none;
}

.btn-primary:hover {
    background: #254b47;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 90, 86, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #2D5A56;
    color: #2D5A56;
}

.btn-outline:hover {
    background: #2D5A56;
    color: white;
}

/* === HERO SECTION === */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 40px 5%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(254, 251, 245, 0.9) 0%, rgba(254, 251, 245, 0.6) 50%, rgba(254, 251, 245, 0.1) 100%);
    z-index: 1;
}

[dir="rtl"] .hero::before {
    background: linear-gradient(-90deg, rgba(254, 251, 245, 0.9) 0%, rgba(254, 251, 245, 0.6) 50%, rgba(254, 251, 245, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: #FDF4E3;
    color: #D4A373;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(212, 163, 115, 0.2);
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #000000;
}

.hero h1 span {
    background-image: linear-gradient(135deg, #29655f, #e8a530);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
}

.hero p {
    font-size: 1.15rem;
    color: #8C8C84;
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 60px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 18px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row-reverse;
    /* RTL Default */
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[dir="ltr"] .stat-item {
    flex-direction: row;
    text-align: left;
}

.stat-icon-mini {
    width: 44px;
    height: 44px;
    background: #EAF2F1;
    color: #2D5A56;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: #8C8C84;
    font-weight: 500;
}

/* === FEATURES SECTION === */
.section {
    padding: 70px 5%;
}

.section-inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 40px;
}

.section-header .subtitle {
    display: block;
    color: #D4A373;
    /* Golden/Brown like in design */
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.section-header h2 {
    font-size: 2.6rem;
    color: var(--primary);
    margin: 0 0 10px;
    font-weight: 700;
}

.section-header p {
    color: #A1A19A;
    font-size: 0.95rem;
    max-width: 600px;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered p {
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #F8F8F4;
    padding: 50px 40px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid #EBEBE6;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: #E8E8E3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: absolute;
    top: 25px;
    right: 25px;
    /* Default RTL */
}

[dir="ltr"] .feature-icon {
    right: auto;
    left: 25px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 90%;
}

/* === CLUBS / LIBRARIES SECTION === */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.club-card-premium {
    background: #F8F8F4;
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.club-card-premium:nth-child(even) {
    background: #EAF2F1;
    /* Light teal as per design */
}

.club-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.club-card-premium .club-icon {
    width: 44px;
    height: 44px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: absolute;
    top: 25px;
    left: 25px;
}

[dir="ltr"] .club-card-premium .club-icon {
    left: auto;
    right: 25px;
}

.club-card-premium .club-content {
    margin-top: auto;
    text-align: right;
}

[dir="ltr"] .club-card-premium .club-content {
    text-align: left;
}

.club-card-premium h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.club-card-premium .club-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.club-card-premium .club-reading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* === MEMBERS & ACTIVITY SECTION === */
.members-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.members-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.member-card-mini {
    background: #F8F8F4;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border: 1px solid #EBEBE6;
    transition: var(--transition);
    /* RTL by default */
    flex-direction: row-reverse;
    text-align: right;
}

[dir="ltr"] .member-card-mini {
    flex-direction: row;
    text-align: left;
}

.member-card-mini:hover {
    background: white;
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.member-card-mini .member-avatar {
    width: 44px;
    height: 44px;
    background: #E8E8E3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.member-card-mini .member-info {
    flex: 1;
}

.member-card-mini .member-info h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 0;
    font-weight: 700;
}

.member-badge-mini {
    position: absolute;
    top: 15px;
    left: 15px;
    /* RTL - floating on the opposite side */
    font-size: 0.65rem;
    background: #F1ECE4;
    /* Slightly warmer like in image 1 */
    padding: 2px 10px;
    border-radius: 10px;
    color: #8C8C84;
    font-weight: 500;
}

.activity-item-premium {
    background: #F8F8F4;
    border-radius: 10px;
    padding: 10px 15px;
    /* Slimmer as per image 1 */
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #EBEBE6;
    transition: var(--transition);
    /* RTL by default */
    flex-direction: row-reverse;
    text-align: right;
    margin-bottom: 8px;
}

[dir="ltr"] .activity-item-premium {
    flex-direction: row;
    text-align: left;
}

.activity-item-premium:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.activity-text {
    font-size: 0.82rem;
    color: #8C8C84;
    flex: 1;
}

.activity-text span {
    font-weight: 700;
    color: var(--primary);
}

.activity-time {
    font-size: 0.7rem;
    color: #A1A19A;
    display: block;
    margin-top: 2px;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: #E8E8E3;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* === CTA BANNER === */
.cta-section {
    background: linear-gradient(135deg, #1A535C 0%, #2D5A56 100%);
    padding: 100px 5%;
    text-align: center;
    color: white;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.png');
    opacity: 0.1;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.8;
    margin-bottom: 45px;
    line-height: 1.8;
}

.cta-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.btn-yellow {
    background: #EBB042;
    color: var(--primary-dark);
    padding: 16px 45px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
}

.btn-yellow:hover {
    background: #F4BA4C;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-text-white {
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-text-white:hover {
    text-decoration: underline;
}

/* === FOOTER === */
footer {
    background: #F8F8F4;
    color: var(--text);
    padding: 80px 5% 40px;
    border-top: 1px solid #EBEBE6;
}

/* === PREMIUM MODERN FOOTER === */
.footer-modern {
    background: #0F172A;
    /* Deep Midnight Blue */
    padding: 80px 0 40px;
    color: #94A3B8;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

/* Brand Section */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 25px;
}

.footer-logo i {
    font-size: 1.8rem;
    color: #FBBF24;
    /* Amber Accent */
}

.footer-logo span {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.7;
    color: #94A3B8;
    max-width: 320px;
    margin-bottom: 30px;
}

/* Social Buttons */
.social-links-modern {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-btn:hover {
    background: #FBBF24;
    color: #0F172A;
    transform: translateY(-5px);
    border-color: #FBBF24;
}

/* Column Styles */
.footer-col-title {
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-list,
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list li a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-links-list li a:hover {
    color: #FBBF24;
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94A3B8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-contact-info i {
    color: #FBBF24;
}

/* Bottom Bar */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.footer-copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 25px;
}

.legal-links a {
    color: #64748B;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #FFFFFF;
}

@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
    }

    .footer-copyright-row {
        flex-direction: column;
        text-align: center;
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .features-grid,
    .listings-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .club-card {
        flex-direction: column;
        height: auto;
    }

    .club-img {
        width: 100%;
        height: 150px;
    }

    .club-info {
        width: 100%;
    }
}

/* Go to Top Button */
.go-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    outline: none;
}

.go-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.go-top-btn:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    color: white;
}

[dir="rtl"] .go-top-btn {
    right: auto;
    left: 30px;
}