/*
Theme Name: Fahm ul Islam
Theme URI: https://fahmulislam.com
Author: Fahm ul Islam Team
Author URI: https://fahmulislam.com
Description: A comprehensive Islamic learning platform featuring daily Quranic verses, Hadith, prayer times, Islamic calendar, and educational resources.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fahm-ul-islam
Tags: islamic, education, rtl-language-support, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    /* Color Palette */
    --color-primary: #1B6B3A;
    --color-primary-dark: #14532D;
    --color-primary-light: #22C55E;
    --color-primary-bg: #F0FDF4;
    --color-gold: #C9A84C;
    --color-gold-light: #F5E6B8;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAF5;
    --color-bg-dark: #111827;
    --color-text: #1A1A1A;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;
    --color-border: #E5E7EB;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-arabic: 'Amiri', serif;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

/* 1. RESET & BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

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

ul {
    list-style: none;
}

/* 2. LAYOUT UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* 3. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-text);
}

.btn-gold:hover {
    background-color: #B8973B;
    transform: translateY(-2px);
}

/* 4. HEADER / NAVBAR */
.site-header {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    max-height: 40px;
}

.site-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-white);
    margin: 0;
}

.site-title a {
    color: var(--color-white);
}

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

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 5. HERO SECTION */
.hero-section {
    position: relative;
    padding: 100px 0 60px;
    background-color: var(--color-bg);
    overflow: hidden;
    text-align: center;
}

.hero-dot {
    position: absolute;
    border-radius: 50%;
    background-color: var(--color-primary);
    opacity: 0.1;
    animation: pulse 4s infinite ease-in-out alternate;
}

.hero-label {
    display: inline-block;
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
}

.hero-title span {
    display: block;
    font-size: 2rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
    padding-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 6. SPIRITUAL SECTION */
.spiritual-section {
    background-color: #fcfdfc;
    padding: 80px 0;
}

.spiritual-grid {
    gap: 2.5rem;
    margin-top: 1rem;
}

.spiritual-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spiritual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.spiritual-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.spiritual-card-header .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.spiritual-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-white);
}

.spiritual-card-icon.bg-green {
    background-color: var(--color-primary);
}

.spiritual-card-icon.bg-gold {
    background-color: var(--color-gold);
}

.header-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.spiritual-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
    font-family: var(--font-body);
}

.spiritual-card-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    margin-top: 2px;
}

.btn-refresh-spiritual {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.95rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-refresh-spiritual:hover {
    background-color: #f3f4f6;
    color: var(--color-primary);
    transform: rotate(45deg);
}

.spiritual-card-body {
    text-align: center;
    padding: 0.5rem 0;
    flex-grow: 1;
}

.spiritual-card-body .arabic-text {
    font-family: var(--font-arabic);
    font-size: 2.1rem;
    line-height: 1.8;
    text-align: center;
    direction: rtl;
    color: #1e293b;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.spiritual-card-body .transliteration-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #b48a30;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.spiritual-card-body .translation-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
    padding: 0 10px;
}

.spiritual-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.reference-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reference-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.reference-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: var(--color-white);
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 120px;
}

.btn-action i {
    font-size: 0.95rem;
}

.btn-action:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
    background-color: var(--color-primary-bg);
}

/* 6a. MODALS STYLING */
.fahm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fahm-modal.is-active {
    display: flex;
    opacity: 1;
}

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

.fahm-modal-container {
    position: relative;
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 540px;
    z-index: 2001;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fahm-modal.is-active .fahm-modal-container {
    transform: translateY(0);
}

.fahm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.fahm-modal-title {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fahm-modal-title i {
    color: var(--color-primary);
}

.fahm-modal-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.fahm-modal-close:hover {
    color: #334155;
}

.fahm-modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.fahm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

/* IMAGE PREVIEW FOR DOWNLOAD */
.preview-card-viewport {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.preview-card {
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    padding: 2.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.preview-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.preview-logo {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.preview-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.preview-arabic {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    direction: rtl;
}

.preview-transliteration {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.preview-translation {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.preview-reference {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
}

.preview-footer-web {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    opacity: 0.85;
}

/* PREVIEW BACKGROUND STYLES */
.preview-card.style-light {
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}
.preview-card.style-light .preview-logo,
.preview-card.style-light .preview-reference {
    color: var(--color-primary);
}
.preview-card.style-light .preview-transliteration {
    color: #b48a30;
}
.preview-card.style-light .preview-translation {
    color: #475569;
}
.preview-card.style-light .preview-footer-web {
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.preview-card.style-emerald {
    background: linear-gradient(135deg, #115e59, #064e3b);
    color: #ffffff;
}
.preview-card.style-emerald .preview-logo,
.preview-card.style-emerald .preview-reference {
    color: #f5e6b8;
}
.preview-card.style-emerald .preview-transliteration {
    color: #a7f3d0;
}
.preview-card.style-emerald .preview-footer-web {
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
}

.preview-card.style-royal-gold {
    background: linear-gradient(135deg, #c29f38, #785a02);
    color: #ffffff;
}
.preview-card.style-royal-gold .preview-logo,
.preview-card.style-royal-gold .preview-reference {
    color: #ffffff;
}
.preview-card.style-royal-gold .preview-transliteration {
    color: #fef08a;
}
.preview-card.style-royal-gold .preview-footer-web {
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
}

.preview-card.style-charcoal {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
}
.preview-card.style-charcoal .preview-logo,
.preview-card.style-charcoal .preview-reference {
    color: var(--color-gold);
}
.preview-card.style-charcoal .preview-transliteration {
    color: #94a3b8;
}
.preview-card.style-charcoal .preview-footer-web {
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
}

.preview-card.style-sunset {
    background: linear-gradient(135deg, #f43f5e, #881337);
    color: #ffffff;
}
.preview-card.style-sunset .preview-logo,
.preview-card.style-sunset .preview-reference {
    color: #fef08a;
}
.preview-card.style-sunset .preview-transliteration {
    color: #fecdd3;
}
.preview-card.style-sunset .preview-footer-web {
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
}

/* BG PALETTE SELECTOR */
.bg-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bg-selector-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.bg-palette {
    display: flex;
    gap: 12px;
}

.palette-chip {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.palette-chip:hover {
    transform: scale(1.1);
}

.palette-chip.active {
    box-shadow: 0 0 0 2px var(--color-primary);
}

.palette-chip.bg-light { background-color: #ffffff; }
.palette-chip.bg-emerald { background: linear-gradient(135deg, #115e59, #064e3b); }
.palette-chip.bg-royal-gold { background: linear-gradient(135deg, #c29f38, #785a02); }
.palette-chip.bg-charcoal { background: linear-gradient(135deg, #1e293b, #0f172a); }
.palette-chip.bg-sunset { background: linear-gradient(135deg, #f43f5e, #881337); }

/* SOCIAL SHARE MODAL */
.share-modal-container {
    max-width: 440px;
}

.share-instructions {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.social-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-item:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.social-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
}

.share-whatsapp .social-icon-wrapper { background-color: #25d366; }
.share-twitter .social-icon-wrapper { background-color: #111111; }
.share-facebook .social-icon-wrapper { background-color: #1877f2; }
.share-telegram .social-icon-wrapper { background-color: #0088cc; }
.share-linkedin .social-icon-wrapper { background-color: #0a66c2; }
.share-instagram-btn .social-icon-wrapper { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.share-copy-text-box {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.25rem;
}

.copy-box-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.copy-input-group {
    display: flex;
    gap: 8px;
}

.share-text-area {
    flex-grow: 1;
    height: 60px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #475569;
    resize: none;
}

.btn-copy-textarea {
    padding: 0 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* HELPER MODAL FOR INSTAGRAM */
.helper-modal-container {
    max-width: 400px;
}

.secondary-modal {
    z-index: 2500;
}

.secondary-modal .fahm-modal-overlay {
    background-color: rgba(15, 23, 42, 0.4);
}

.helper-steps {
    margin-top: 1rem;
    padding-left: 1.25rem;
}

.helper-steps li {
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.9rem;
    list-style-type: decimal;
}

.btn-insta-close {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
}

/* Toast alert notification */
.fahm-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fahm-toast.is-active {
    transform: translateX(-50%) translateY(0);
}

.fahm-toast i {
    color: var(--color-primary-light);
}

/* 7. PERSONALITY SECTION */
.personality-card-container {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.personality-banner-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.banner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-gold);
}

.avatar-icon-wrapper {
    font-size: 1.8rem;
    color: var(--color-white);
}

.banner-title-area {
    display: flex;
    flex-direction: column;
}

.personality-name {
    font-family: var(--font-body);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    line-height: 1.2;
}

.personality-arabic {
    font-family: var(--font-arabic);
    font-size: 1.15rem;
    color: #a7f3d0;
    margin-top: 4px;
    line-height: 1;
}

.personality-epithet {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fde047;
    margin-top: 4px;
}

.personality-card-content {
    display: flex;
    padding: 2.5rem;
    gap: 2.5rem;
}

/* SIDEBAR STYLING */
.personality-sidebar {
    width: 33%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.sidebar-box-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.sidebar-box-title i {
    color: var(--color-primary);
}

.sidebar-box-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.meta-label {
    color: #64748b;
    font-weight: 600;
}

.meta-val {
    color: #1e293b;
    font-weight: 700;
}

.origin-text {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
}

.today-date-container {
    text-align: left;
    padding: 5px;
    margin-top: 0.5rem;
}

.today-date-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.gregorian-date {
    font-size: 1rem;
    color: #334155;
    font-weight: 500;
    margin-bottom: 4px;
}

.hijri-date {
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* RIGHT CONTENT AREA */
.personality-main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.content-section {
    display: flex;
    flex-direction: column;
}

.personality-main-content .section-heading {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.personality-main-content .section-heading i {
    color: var(--color-gold);
}

.bio-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1rem;
}

.personality-quote {
    border-left: 4px solid var(--color-gold);
    padding: 8px 0 8px 1.25rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: #475569;
}

.personality-quote p {
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

.achievements-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievements-list li {
    list-style: none;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.4;
}

.achievements-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary-light);
    border-radius: 50%;
}

.contribution-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-contribution-tag {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-contribution-tag:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.did-you-know-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
    margin: 0;
}

/* FOOTER LEARN MORE */
.personality-card-footer {
    display: flex;
    justify-content: center;
    padding: 0 2.5rem 2.5rem;
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-learn-more:hover {
    background-color: #0c381c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 83, 45, 0.25);
}

/* WIKIPEDIA MODAL LAYOUT */
.wiki-modal-container {
    max-width: 680px;
}

.wiki-hero-banner {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.wiki-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--color-gold);
}

.wiki-hero-titles {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.wiki-hero-name {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
}

.wiki-hero-epithet {
    font-size: 0.85rem;
    color: #fde047;
    font-weight: 600;
    margin-top: 2px;
}

.wiki-tabs-bar {
    display: flex;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
}

.wiki-tab {
    background: none;
    border: none;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.wiki-tab:hover {
    color: var(--color-primary);
}

.wiki-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.wiki-tab-content-pane {
    padding: 2.25rem 2rem;
    text-align: left;
    min-height: 180px;
}

.wiki-content-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}

.btn-wiki-close {
    padding: 10px 24px;
    border-radius: 8px;
}

/* RELATION DATABASE POPUP */
.relation-modal-container {
    max-width: 500px;
}

.relation-search-header {
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.relation-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.relation-tag-heading {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 4px 0 0;
}

.relation-intro {
    font-size: 0.9rem;
    color: #475569;
    text-align: left;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.relation-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.relation-result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-align: left;
}

.relation-result-card:hover {
    border-color: var(--color-primary-light);
    background-color: var(--color-primary-bg);
    transform: translateX(2px);
}

.result-card-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-scholar-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.result-scholar-meta {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.btn-result-view {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-result-view:hover {
    color: var(--color-primary-dark);
    gap: 8px;
}

.btn-relation-close {
    border-radius: 8px;
    padding: 10px 24px;
}

@media (max-width: 900px) {
    .personality-card-content {
        flex-direction: column;
    }
    .personality-sidebar {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* 8. DAILY INFO SECTION */
.daily-info-section {
    background-color: var(--color-bg-alt);
}

/* Removed old daily info styles to avoid conflicts with Section 13 */

/* 9. CALENDAR & HISTORY */
.calendar-card {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.calendar-card h3 {
    color: var(--color-white);
}

.hijri-date-large {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    font-family: var(--font-heading);
}

.history-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-gold);
}

/* 10. LEARNING PLATFORM */
.learning-section {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.learning-section .section-title,
.learning-section .section-subtitle {
    color: var(--color-white);
}

.learning-content {
    display: flex;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.learning-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.learning-tab {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.learning-tab:hover, .learning-tab.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.learning-panel {
    flex-grow: 1;
    background: var(--color-white);
    color: var(--color-text);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

/* 11. FEATURES */
.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

/* 12. FOOTER */
.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 80px 0 0;
}

.footer-grid {
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: var(--color-text-light);
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.social-link:hover {
    background: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* 13. DAILY ISLAMIC INFORMATION STYLES */
.info-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    margin-bottom: 24px;
}

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

.location-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.15rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.location-city {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}

.location-coords {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.info-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.digital-clock {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.75rem;
    color: #0f172a;
    line-height: 1;
}

.date-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-top: 6px;
}

.gregorian-date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.islamic-date {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 700;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.info-card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.sun-position-card {
    background-color: #fffbeb;
}

.prayer-times-card {
    background-color: #f0fdf4;
}

.fasting-times-card {
    background-color: #f5f3ff;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.card-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-white);
}

.card-icon-circle.bg-gold {
    background-color: var(--color-gold);
}

.card-icon-circle.bg-green {
    background-color: var(--color-primary);
}

.card-icon-circle.bg-purple {
    background-color: #6b21a8;
}

.card-header-titles {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-header-titles h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.card-header-titles span {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.info-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rounded-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.02);
    font-size: 0.9rem;
    font-weight: 600;
}

.row-label {
    color: #475569;
}

.row-value {
    font-weight: 700;
}

.row-value.color-gold {
    color: #ca8a04;
}

.sun-cols-grid, .fasting-cols-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
}

.sun-col-box, .fasting-col-box {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sun-col-icon, .fasting-col-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 8px;
    position: relative;
}

.sun-col-icon.color-orange {
    background: #fffbeb;
    color: #f59e0b;
}

.sun-col-icon.color-red {
    background: #fef2f2;
    color: #ef4444;
}

.fasting-col-icon.color-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.fasting-col-icon.color-red {
    background: #fef2f2;
    color: #ef4444;
}

.arrow-sub {
    position: absolute;
    font-size: 0.55rem;
    bottom: -1px;
    right: -1px;
    font-weight: 900;
}

.col-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.col-time {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
}

.duration-highlight-bar.highlight-gold {
    background-color: #fef9c3;
    border-color: #fef08a;
}

.fast-duration-bar.highlight-blue {
    background-color: #dbeafe;
    border-color: #bfdbfe;
}

.bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.bar-left i {
    font-size: 0.95rem;
    color: #475569;
}

.bar-value {
    font-weight: 800;
    color: #1e293b;
}

.solar-noon-block {
    text-align: center;
    margin: 18px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.solar-noon-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.solar-noon-time {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.makruh-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid transparent;
    text-align: center;
}

.makruh-status-bar.permissible {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.makruh-status-bar.makruh {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.prayer-rows-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.prayer-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.prayer-name-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alarm-icon {
    font-size: 0.95rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.names-stack {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.p-english {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}

.p-arabic {
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 1px;
}

.prayer-time-val {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

.prayer-item-row.active-highlight {
    background: #ffffff;
    border-color: var(--color-gold);
}

.prayer-item-row.active-highlight .alarm-icon {
    color: #ca8a04;
    font-size: 1rem;
    animation: bell-ring 2s infinite ease;
}

.prayer-item-row.active-highlight .p-english {
    color: #ca8a04;
}

.prayer-item-row.active-highlight .p-arabic {
    color: #ca8a04;
    opacity: 0.85;
}

.prayer-item-row.active-highlight .prayer-time-val {
    color: #ca8a04;
}

.prayer-countdown-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.countdown-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.fasting-date-banner {
    background: #f3e8ff;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.f-date {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: #581c87;
}

.f-msg {
    font-size: 0.85rem;
    color: #6b21a8;
    font-weight: 600;
}

.iftar-countdown-box {
    background: #ffe4e6;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.iftar-label {
    font-size: 0.85rem;
    color: #9f1239;
    font-weight: 600;
}

.iftar-time-val {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 6px 0;
}

.iftar-footnote {
    font-size: 0.8rem;
    color: #be123c;
    font-weight: 500;
    font-style: italic;
}

.fasting-ayah-quote-box {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.ayah-quote-text {
    font-size: 0.85rem;
    font-style: italic;
    color: #5b21b6;
    line-height: 1.5;
    margin: 0 0 6px 0;
}

.ayah-quote-ref {
    font-size: 0.75rem;
    font-weight: 600;
    color: #7c3aed;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(8deg); }
    20%, 40%, 60%, 80% { transform: rotate(-8deg); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite ease-in-out;
}

@media (max-width: 1024px) {
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .info-header-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 24px;
    }
    .info-header-right {
        align-items: flex-start;
        text-align: left;
    }
    .date-details {
        align-items: flex-start;
    }
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ANIMATIONS */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.05; }
    100% { transform: scale(1.2); opacity: 0.15; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .learning-content { flex-direction: column; }
    .learning-sidebar { width: 100%; display: flex; overflow-x: auto; padding-bottom: 1rem; }
    .learning-tab { white-space: nowrap; text-align: center; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-primary-dark);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .nav-menu.is-open { display: flex; }
    .personality-content { flex-direction: column; text-align: center; align-items: center; }
    .personality-meta { justify-content: center; }
    .hero-stats { gap: 1.5rem; }
}
