:root {
    --primary-dark: #0d1b2a;
    --primary-light: #1b4965;
    --accent-sky: #62b6cb;
    --accent-orange: #f39c12;
    --light-bg: #ffffff;
    --dark-text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    padding: 10px 0;
    transition: all 0.4s ease;
}

.navbar-logo {
    height: 120px;
    width: auto;
    transition: all 0.4s ease;
}

.navbar.scrolled .navbar-logo {
    height: 70px;
}

.navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 600;
    padding: 25px 18px !important;
    transition: all 0.4s ease;
}

.navbar.scrolled .navbar-nav .nav-link {
    padding: 15px 18px !important;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-sky) !important;
}

/* Navbar Actions */
.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.nav-action-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-action-btn:hover i {
    transform: scale(1.15);
}

.login-btn {
    background: linear-gradient(135deg, var(--accent-sky), var(--primary-light));
    color: white !important;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    box-shadow: 0 6px 25px rgba(98, 182, 203, 0.4);
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white !important;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
}

.admin-btn {
    background: linear-gradient(135deg, var(--accent-orange), #e67e22);
    color: white !important;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.4);
}

/* Page Header */
.page-header-modern {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    padding: 140px 0 100px;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(98, 182, 203, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.15) 0%, transparent 50%);
    opacity: 0.6;
}

.page-header-modern .container {
    position: relative;
    z-index: 2;
}

.page-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(98, 182, 203, 0.2);
    border: 2px solid rgba(98, 182, 203, 0.5);
    border-radius: 50px;
    color: var(--accent-sky);
    font-weight: 600;
    margin-bottom: 25px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-sky), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Search Section */
.faq-search-section {
    padding: 80px 0 60px;
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-box-modern {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-box-modern input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.search-box-modern input:focus {
    outline: none;
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 4px rgba(98, 182, 203, 0.1);
}

.search-box-modern .search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--accent-sky);
}

/* Categories Section */
.faq-categories-section {
    padding: 40px 0 60px;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--accent-sky);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card.active {
    background: linear-gradient(135deg, var(--accent-sky), var(--primary-light));
    border-color: var(--accent-sky);
    color: white;
}

.category-card i {
    font-size: 2rem;
    color: var(--primary-light);
    transition: color 0.3s ease;
}

.category-card.active i {
    color: white;
}

.category-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* FAQ Content */
.faq-content-section {
    padding: 60px 0 100px;
    background: linear-gradient(180deg, white 0%, #f8f9fa 100%);
}

.faq-category-section {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-sky), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 0;
}

/* Accordion Modern */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.accordion-item-modern:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.accordion-button-modern {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: white;
    border: none;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-button-modern:hover {
    background: rgba(98, 182, 203, 0.05);
}

.question-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-sky), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.question-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: right;
}

.accordion-button-modern i {
    font-size: 1.2rem;
    color: var(--accent-sky);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-button-modern:not(.collapsed) i {
    transform: rotate(180deg);
}

.accordion-body-modern {
    padding: 0 30px 30px 95px;
    color: #666;
    line-height: 1.8;
}

.accordion-body-modern ul {
    margin: 15px 0;
    padding-right: 20px;
}

.accordion-body-modern li {
    margin-bottom: 10px;
}

/* No Results */
.no-results-modern {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    width: 120px;
    height: 120px;
    background: rgba(98, 182, 203, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.no-results-icon i {
    font-size: 3rem;
    color: var(--accent-sky);
}

.no-results-modern h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.no-results-modern p {
    color: #666;
}

/* Support Section */
.faq-support-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}

.support-card-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.support-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.support-icon i {
    font-size: 3rem;
    color: var(--accent-sky);
}

.support-content h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.support-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-support-primary,
.btn-support-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-support-primary {
    background: white;
    color: var(--primary-dark);
}

.btn-support-primary:hover {
    background: var(--accent-sky);
    color: white;
    transform: translateY(-5px);
}

.btn-support-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-support-secondary:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background-color: var(--light-bg);
    padding-top: 80px;
    border-top: 1px solid #eee;
}

/* ===== Responsive Design ===== */

/* Nest Hub Max (1280x800) */
@media (min-width: 1200px) and (max-width: 1366px) and (max-height: 850px) {
    .navbar-logo {
        height: 28px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.55rem;
        padding: 12px 10px !important;
    }
    
    .nav-action-btn {
        font-size: 0.5rem;
        padding: 6px 12px;
    }
    
    .page-header-modern {
        padding: 80px 0 60px;
        min-height: 45vh;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-description {
        font-size: 0.95rem;
    }
}

/* Large Tablets (992px-1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-logo {
        height: 60px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.55rem;
        padding: 18px 12px !important;
    }
    
    .nav-action-btn {
        font-size: 0.5rem;
        padding: 8px 15px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* iPad Pro (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-logo {
        height: 35px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.65rem;
        padding: 15px 20px !important;
        border-radius: 10px;
        margin-bottom: 5px;
    }
    
    .navbar-nav .nav-link::before {
        display: none;
    }
    
    .navbar-collapse {
        background: white;
        margin-top: 15px;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-actions {
        flex-direction: column;
        width: 100%;
        padding: 15px 0 0 0;
        gap: 10px;
        border-top: 2px solid rgba(98, 182, 203, 0.2);
        margin-top: 15px;
    }
    
    .nav-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 2.3rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Nest Hub & Landscape (768px-1024px, height ≤900px) */
@media (min-width: 768px) and (max-width: 1024px) and (max-height: 900px) {
    .navbar-logo {
        height: 32px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.6rem;
        padding: 14px 12px !important;
    }
    
    .nav-action-btn {
        font-size: 0.55rem;
        padding: 7px 14px;
    }
    
    .page-header-modern {
        padding: 90px 0 70px;
        min-height: 50vh;
    }
}

/* Nest Hub (1024x600) */
@media (min-width: 1000px) and (max-width: 1100px) and (max-height: 650px) {
    .navbar-logo {
        height: 30px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.6rem;
        padding: 12px 10px !important;
    }
    
    .nav-action-btn {
        font-size: 0.5rem;
        padding: 6px 12px;
    }
    
    .page-header-modern {
        padding: 70px 0 50px;
        min-height: 40vh;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .navbar-logo {
        height: 70px;
    }
    
    .navbar-collapse {
        background: white;
        margin-top: 15px;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        font-size: 1rem;
        border-radius: 10px;
        margin-bottom: 5px;
    }
    
    .navbar-actions {
        flex-direction: column;
        width: 100%;
        padding: 15px 0 0 0;
        gap: 10px;
        border-top: 2px solid rgba(98, 182, 203, 0.2);
        margin-top: 15px;
    }
    
    .nav-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .accordion-button-modern {
        padding: 20px;
        gap: 15px;
    }
    
    .question-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .accordion-body-modern {
        padding: 0 20px 20px 20px;
    }
    
    .support-buttons {
        flex-direction: column;
    }
    
    .btn-support-primary,
    .btn-support-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Small (≤575px) */
@media (max-width: 575px) {
    .navbar-logo {
        height: 60px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.95rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .search-box-modern input {
        font-size: 0.95rem;
        padding: 18px 50px 18px 18px;
    }
}

/* Extra Small (≤399px) */
@media (max-width: 399px) {
    .page-title {
        font-size: 1.6rem;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .accordion-button-modern {
        padding: 15px;
    }
}

/* ===== Footer Complete Styles ===== */
.footer-logo {
    height: 150px;
    width: auto;
    object-fit: contain;
}

.footer h5 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-orange);
    bottom: 0;
}

[dir="rtl"] .footer h5:after {
    right: 0;
}

[dir="ltr"] .footer h5:after {
    left: 0;
}

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-right: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-left: 10px;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-orange);
    color: white;
    transform: translateY(-5px);
}

.copyright {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
}

.maay {
    color: chocolate;
    text-decoration: none;
    font-weight: 600;
}

.maay:hover {
    color: var(--accent-sky);
}


/* PUSHED NAVBAR TOGGLER GLOBALLY TO FIX ALL PAGES */
.navbar-toggler {
    border: 2px solid var(--accent-sky) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background-color: transparent !important;
}

.navbar-toggler:hover {
    background-color: rgba(98, 182, 203, 0.1) !important;
    border-color: var(--accent-orange) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(98, 182, 203, 0.25) !important;
    outline: none !important;
}

.navbar-toggler-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-image: none !important;
}

.navbar-toggler-icon i {
    color: var(--accent-sky) !important;
    font-size: 1.3rem !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.navbar-toggler:hover .navbar-toggler-icon i {
    color: var(--accent-orange) !important;
    transform: rotate(90deg) !important;
}
