:root { 
    --bg-color: #ffffff; 
    --text-color: #0a0f1f; 
    --card-bg: #f7f9fc; 
    --border-color: #eef2f9; 
    --dark-blue: #0a0f1f; 
    --medium-blue: #1a2035; 
    --accent-blue: #3672ff; 
    --light-grey: #a0a8c2; 
    --white: #ffffff; 
    --font-main: 'Inter', sans-serif; 
}

html { 
    scroll-behavior: smooth; 
}

body.dark-mode { 
    --bg-color: #0a0f1f; 
    --text-color: #ffffff; 
    --card-bg: #1a2035; 
    --border-color: #1a2035; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: var(--font-main); 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    transition: background-color 0.3s, color 0.3s; 
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.logo-img { 
    height: 45px; 
    width: auto; 
    vertical-align: middle; 
}

body.dark-mode .logo-img { 
    filter: brightness(0) invert(1); 
}

body.dark-mode .sidebar .logo-img,
body.dark-mode .footer .logo-img {
    filter: none;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

main {
    padding-top: 85px;
    padding-bottom: 100px;
}

.header-left { 
    display: flex; 
    align-items: center; 
}

.hamburger-menu { 
    font-size: 1.5rem; 
    cursor: pointer; 
    margin-right: 20px; 
}

.header-center { 
    flex-grow: 1; 
    margin: 0 30px; 
    position: relative;
}

.search-bar { 
    display: flex; 
    align-items: center; 
    background-color: var(--card-bg); 
    border-radius: 12px; 
    padding: 5px; 
}

.search-bar input { 
    flex-grow: 1; 
    border: none; 
    background: none; 
    outline: none; 
    padding: 10px; 
    font-size: 1rem; 
    color: var(--text-color); 
}

.search-bar .filter-select { 
    background: none; 
    border: none; 
    outline: none; 
    margin: 0 10px; 
    font-size: 0.9rem; 
    color: var(--light-grey); 
}

.search-bar .search-btn { 
    background-color: var(--accent-blue); 
    border: none; 
    color: var(--white); 
    padding: 10px 15px; 
    border-radius: 8px; 
    cursor: pointer; 
}

.header-right { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.dark-mode-toggle { 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--text-color); 
}

/* --- Sidebar --- */
.sidebar { 
    position: fixed; 
    top: 0; 
    left: -280px; 
    height: 100%; 
    width: 280px; 
    background-color: var(--dark-blue); 
    z-index: 1001; 
    transition: transform 0.4s ease-in-out; 
    padding: 20px; 
}

.sidebar.open { 
    transform: translateX(280px); 
}

.sidebar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 40px; 
}

.sidebar-header .logo { 
    color: var(--white); 
}

.close-btn { 
    color: var(--white); 
    font-size: 1.8rem; 
    cursor: pointer; 
}

.sidebar-links a { 
    display: block; 
    color: var(--light-grey); 
    text-decoration: none; 
    padding: 15px 20px; 
    font-size: 1.1rem; 
    font-weight: 600; 
    border-radius: 8px; 
    transition: background-color 0.3s, color 0.3s; 
}

.sidebar-links a:hover { 
    background-color: var(--accent-blue); 
    color: var(--white); 
}

.sidebar-links a i { 
    margin-right: 15px; 
    width: 20px; 
}

.overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 1000; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.4s, visibility 0.4s; 
}

.overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

/* --- Homepage Specific Styles --- */
.hero { 
    text-align: center; 
    padding: 100px 0; 
    background-color: var(--card-bg); 
}

.hero h1 { 
    font-size: 4rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}

.hero p { 
    font-size: 1.2rem; 
    color: var(--light-grey); 
    margin-bottom: 40px; 
    max-width: 650px; 
    margin-left: auto; 
    margin-right: auto; 
}

.hero .main-cta { 
    background-color: var(--accent-blue); 
    color: var(--white); 
    padding: 18px 40px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1.1rem; 
    transition: transform 0.3s, box-shadow 0.3s; 
}

.hero .main-cta:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(54, 114, 255, 0.3); 
}

.featured-in { 
    text-align: center; 
    padding: 50px 0; 
    border-bottom: 1px solid var(--border-color); 
}

.featured-in h3 { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--light-grey); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 30px; 
}

.logos { 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 20px; 
    filter: grayscale(100%); 
    opacity: 0.6; 
}

body.dark-mode .logos { 
    filter: invert(100%) grayscale(100%); 
    opacity: 0.8; 
}

.logos img { 
    height: 30px; 
}

.section { 
    padding: 80px 0; 
}

.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 40px; 
}

.section-title { 
    font-size: 2.2rem; 
    font-weight: 800; 
}

.see-all-link { 
    color: var(--accent-blue); 
    text-decoration: none; 
    font-weight: 600; 
}

.see-all-link:hover { 
    text-decoration: underline; 
}

.swiper-container-wrapper { 
    position: relative; 
}

.swiper { 
    width: 100%; 
    padding: 10px 0; 
}

.swiper-slide { 
    width: auto; /* دع الحاوية تحدد حجمها تلقائيًا */
    height: auto;
    display: flex;
}

.card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    width: 220px; /* تحديد عرض ثابت للبطاقة نفسها */
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 25px rgba(26, 32, 53, 0.08); 
}

.card img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.app-logo-slider {
    object-fit: cover !important;
}

.card-link-wrapper { 
    text-decoration: none; 
    color: inherit;
    display: block;
    height: 100%;
}

.card-content {
    padding: 15px;
    flex-grow: 1;
}

.card-content h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;            /* <-- أضف هذا السطر الجديد */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiper-button-next, .swiper-button-prev { 
    color: var(--accent-blue); 
    background-color: rgba(255, 255, 255, 0.8); 
    border-radius: 50%; 
    width: 44px; 
    height: 44px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

.swiper-button-next::after, .swiper-button-prev::after { 
    font-size: 1.2rem; 
    font-weight: 800; 
}

body.dark-mode .swiper-button-next, body.dark-mode .swiper-button-prev { 
    background-color: rgba(26, 32, 53, 0.8); 
}

.fade-in-section { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}

.fade-in-section.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* === Inner Pages General Styles === */
.page-header { 
    padding: 60px 0; 
    background-color: var(--card-bg); 
    text-align: center; 
    margin-bottom: 60px; 
}

.page-title { 
    font-size: 3rem; 
    font-weight: 800; 
}

.item-info h2 { 
    font-size: 2rem; 
    font-weight: 700; 
    margin-bottom: 15px; 
}

.item-info p { 
    font-size: 1.1rem; 
    color: var(--light-grey); 
    line-height: 1.8; 
    margin-bottom: 30px; 
}

.item-info .cta-button { 
    background-color: var(--accent-blue); 
    color: var(--white); 
    padding: 15px 35px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 600; 
    display: inline-block; 
    transition: transform 0.3s; 
}

.item-info .cta-button:hover { 
    transform: translateY(-3px); 
}

/* ======================================================= */
/* === LAYOUT FOR CATEGORY PAGES (e.g., books.html)    === */
/* ======================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding-bottom: 80px;
}

.grid-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.grid-card-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.grid-card-image.app-logo {
    object-fit: contain;
    background-color: var(--bg-color);
}

.grid-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.grid-card-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.grid-card-content p {
    font-size: 0.75rem;
    color: var(--light-grey);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ======================================================= */
/* === LAYOUT FOR DETAIL PAGES (e.g., sapiens.html)    === */
/* ======================================================= */

/* --- Book & Course Detail Layout --- */
.item-card { 
    display: flex; 
    gap: 40px; 
    align-items: flex-start;
}

.item-card img {
    width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.item-info .author-style {
    font-weight: 600;
    color: var(--light-grey);
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.item-info .details-heading {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.item-info .takeaways-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 30px;
    color: var(--light-grey);
}

.item-info .takeaways-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* --- App Detail Layout --- */
.app-detail-layout {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.app-image-container {
    flex: 0 0 250px;
}

.app-image-container img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.app-detail-layout .item-info {
    flex: 1;
}

.article-detail-image {
    display: block;
    max-width: 650px; /* يحدد عرضًا أقصى للصورة */
    width: 100%;      /* يجعلها متجاوبة على الشاشات الصغيرة */
    height: auto;     /* يحافظ على النسبة الطولية الصحيحة */
    margin: 0 auto 40px; /* يضع الصورة في المنتصف */
    object-fit: contain; /* يضمن ظهور الصورة بالكامل */
    border-radius: 16px;
}

.article-detail-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
}

.article-detail-info h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.3;
    text-align: center;
}

.article-full-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--light-grey);
}

.article-full-text strong {
    color: var(--text-color);
    font-weight: 700;
}

/* تنسيقات جديدة لمحتوى المقال المنسق */
.article-subheading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.4;
}

.article-list {
    list-style-type: disc;
    padding-left: 25px;
    margin: 25px 0;
}

.article-list li {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--light-grey);
    margin-bottom: 15px;
}

/* ======================================================= */
/* === UTILITIES (Search, Tables, Footer, etc.)      === */
/* ======================================================= */
.no-results {
    text-align: center;
    padding: 80px 20px;
    font-size: 1.2rem;
    color: var(--light-grey);
    grid-column: 1 / -1; /* Make it span all columns */
}

.search-results-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--light-grey);
}

.search-results-close {
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.search-results-close:hover {
    color: var(--text-color);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
}

.search-result-item:hover {
    background-color: var(--card-bg);
}

.search-result-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.search-result-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.search-result-info h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.search-result-info p {
    font-size: 0.9rem;
    color: var(--light-grey);
}

.app-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 1rem;
}

.app-info-table th, .app-info-table td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.app-info-table th {
    font-weight: 600;
    width: 30%;
}

.app-info-table td {
    color: var(--light-grey);
}

.app-info-table tbody tr:nth-child(odd) {
    background-color: var(--card-bg);
}

.app-info-table a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

.app-info-table a:hover {
    text-decoration: underline;
}

.disclaimer-box {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--card-bg);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--light-grey);
}

.disclaimer-box h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.footer { 
    background-color: var(--dark-blue); 
    color: var(--light-grey); 
    padding: 60px 0 40px; 
    text-align: center; 
}

.footer .logo { 
    color: var(--white); 
    margin-bottom: 20px; 
    display: inline-block;
}

.footer-links { 
    list-style: none; 
    display: flex; 
    justify-content: center; 
    flex-wrap:wrap; 
    gap: 30px; 
    margin-bottom: 30px; 
}

.footer-links a { 
    color: var(--light-grey); 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s; 
}

.footer-links a:hover { 
    color: var(--white); 
}

.social-media { 
    margin-bottom: 30px; 
}

.social-media a { 
    color: var(--light-grey); 
    font-size: 1.5rem; 
    margin: 0 15px; 
    transition: color 0.3s; 
}

.social-media a:hover { 
    color: var(--accent-blue); 
}

.footer p { 
    margin-top: 20px; 
    font-size: 0.9rem; 
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 992px) {
    .app-detail-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .app-image-container {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) { 
    .header-center { 
        display: none; 
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .item-card { 
        flex-direction: column; 
        align-items: center;
        text-align: center; 
    } 
    .article-detail-info h1 {
        font-size: 2.2rem;
    }
}

/* === Infinite Scroll Loader === */
.loading-indicator {
    display: flex;
    justify-content: center;
    padding: 40px;
    width: 100%;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--accent-blue);
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* === Contact Page Styles === */
/* === Contact Page Styles === */
.page-intro {
    font-size: 1.2rem;
    color: var(--light-grey);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-form-container, .contact-info-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.contact-info-container .contact-card {
    padding: 0;
    border: none;
    background: none;
}

.contact-info-container .contact-card:first-child {
    margin-bottom: 40px;
}

.contact-form-container h3, .contact-info-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Form Styles */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-main);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

/* Info & Social List Styles */
.contact-info-list .contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--light-grey);
}

.contact-info-list .contact-info-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: var(--accent-blue);
}

.social-links-list a {
    display: flex;
    align-items: center;
    color: var(--light-grey);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 15px;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
}

.social-links-list a:hover {
    color: var(--accent-blue);
    background-color: var(--bg-color);
}

.social-links-list i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

/* Responsive adjustments for contact page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* أنماط رسائل حالة النموذج */
#form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.form-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.form-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}


/* === Success Modal Styles === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-size: 2rem;
    margin: 20px 0 10px;
}

.modal-content p {
    color: var(--light-grey);
    font-size: 1.1rem;
}

/* Animated Checkmark Icon */
.success-icon {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto;
}

.checkmark-stem, .checkmark-kick {
    position: absolute;
    background-color: #28a745;
    border-radius: 3px;
}

.checkmark-stem {
    width: 6px;
    height: 0;
    top: 40px;
    left: 37px;
    transform: rotate(45deg);
    animation: grow-stem 0.3s ease-out forwards;
}

.checkmark-kick {
    width: 0;
    height: 6px;
    top: 59px;
    left: 20px;
    transform: rotate(-45deg);
    animation: grow-kick 0.3s 0.3s ease-out forwards;
}

@keyframes grow-stem {
    from { height: 0; }
    to { height: 25px; }
}

@keyframes grow-kick {
    from { width: 0; }
    to { width: 45px; }
}

/* === Filter Button Styles === */
.filter-container {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--light-grey);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

.filter-btn.active {
    background-color: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
}

/* === About Us Page Styles === */
.about-section {
    padding: 40px 0;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-intro h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-intro p {
    font-size: 1.2rem;
    color: var(--light-grey);
    line-height: 1.9;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(26, 32, 53, 0.08);
}

.about-card .icon {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--light-grey);
    line-height: 1.8;
    font-size: 1rem;
}

.cta-section {
    background-color: var(--card-bg);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--light-grey);
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-button-about {
    background-color: var(--accent-blue); 
    color: var(--white); 
    padding: 15px 35px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-block; 
    transition: transform 0.3s;
    font-size: 1.1rem;
}

.cta-button-about:hover {
    transform: translateY(-3px);
}

/* === Terms Banner Styles === */
.terms-banner {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-blue);
    color: var(--light-grey);
    padding: 15px 20px;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.terms-banner p {
    margin: 0;
    margin-right: 20px;
}

.terms-banner a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
}

.terms-banner button {
    background: none;
    border: none;
    color: var(--light-grey);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.terms-banner button:hover {
    color: var(--white);
}