/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-blue: #010285;
    --orange: #ff751f;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Arial', Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-blue);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.8rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.orange {
    color: var(--orange);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background-color: var(--orange);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e05e00;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--dark-blue);
    padding: 10px 25px;
    text-decoration: none;
    border: 2px solid var(--dark-blue);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

/* ===== HEADER ===== */
header {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 20px 0;
    border-bottom: 4px solid var(--orange);
    position: relative;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-text h1 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
}

.brand-text .tagline {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    margin: 5px 0 0;
}

/* ===== DESKTOP NAVIGATION ===== */
.desktop-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    margin-left: 25px;
    position: relative;
}

.desktop-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--orange);
}

.auth-links {
    display: flex;
    gap: 10px;
}

.login-btn, .signup-btn {
    padding: 8px 16px;
    border-radius: 4px;
}

.login-btn {
    border: 1px solid rgba(255,255,255,0.3);
}

.signup-btn {
    background-color: var(--orange);
    color: var(--white) !important;
}

.signup-btn:hover {
    background-color: #e05e00;
}

/* Desktop Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid var(--medium-gray);
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--orange) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== MOBILE HAMBURGER MENU ===== */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--dark-blue);
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
}

.mobile-nav-menu li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--orange);
}

.mobile-dropdown .mobile-dropbtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown .mobile-dropbtn i {
    transition: transform 0.3s;
}

.mobile-dropdown.open .mobile-dropbtn i {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    display: none;
    background: rgba(255,255,255,0.05);
    padding-left: 20px;
}

.mobile-dropdown.open .mobile-dropdown-content {
    display: block;
}

.mobile-dropdown-content a {
    padding: 12px 20px;
    font-size: 0.9rem;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

/* Responsive - Hide desktop nav on mobile, show hamburger */
@media (max-width: 992px) {
    .desktop-nav {
        display: none !important;
    }
    .mobile-menu-icon {
        display: block !important;
    }
}

@media (min-width: 993px) {
    .desktop-nav {
        display: block !important;
    }
    .mobile-menu-icon {
        display: none !important;
    }
    .mobile-nav, .mobile-nav-overlay {
        display: none !important;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(1,2,133,0.6), rgba(2,4,168,0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ===== SERVICE CARDS ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--medium-gray);
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--orange);
}

.service-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.service-card .price {
    color: var(--orange);
    font-weight: 600;
}

/* ===== PRICE BOX ===== */
.price-box {
    background: var(--light-gray);
    padding: 30px;
    border-left: 4px solid var(--orange);
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

.price-box .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--orange);
}

/* ===== CATEGORY HEADER ===== */
.category-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #0204a8 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.category-header h1 {
    color: var(--white);
    font-size: 2.8rem;
}

.category-header p {
    color: rgba(255,255,255,0.9);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 4px solid var(--orange);
    margin-top: 60px;
}

footer a {
    color: var(--white) !important;
    text-decoration: none;
}

footer a:hover {
    color: var(--orange) !important;
}

footer h4 {
    color: var(--white) !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
}

/* ===== DASHBOARD ===== */
.dashboard-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
    margin-bottom: 20px;
}

.dashboard-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    font-weight: 600;
    color: var(--dark-blue);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--orange);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    border-top: 1px solid var(--medium-gray);
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===== MOBILE RESPONSIVE (FULL) ===== */
@media (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .logo-area {
        gap: 10px;
    }
    
    .logo img {
        height: 40px;
        width: auto;
    }
    
    .brand-text h1 {
        font-size: 1rem;
    }
    
    .brand-text .tagline {
        font-size: 0.55rem;
    }
    
    .hero {
        padding: 50px 15px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p, li, span {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .btn, .btn-outline {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
    }
    
    .price-box .amount {
        font-size: 1.8rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
        padding: 15px;
    }
    
    .step-circle {
        margin: 0;
        flex-shrink: 0;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .step h4 {
        margin-bottom: 3px;
    }
    
    .step p {
        margin-bottom: 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        padding: 40px 15px;
    }
    
    .category-header h1 {
        font-size: 1.8rem;
    }
    
    .two-column, .about-grid {
        flex-direction: column;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 10px;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .faq-question {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.85rem;
    }
}

/* ===== EXTRA SMALL PHONES ===== */
@media (max-width: 480px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .brand-text h1 {
        font-size: 0.85rem;
    }
    
    .brand-text .tagline {
        font-size: 0.5rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    p, li {
        font-size: 0.85rem;
    }
    
    .btn, .btn-outline {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .price-box .amount {
        font-size: 1.4rem;
    }
}
/* ===== FORCE ALL TWO-COLUMN LAYOUTS TO STACK ON MOBILE ===== */
@media (max-width: 768px) {
    
    /* Fix for About page - Our Story and Our Promise */
    .about-grid,
    .story-section,
    .mission-vision,
    .values-grid,
    .why-choose-grid,
    [style*="display: grid"],
    [style*="grid-template-columns"] {
        display: block !important;
    }
    
    /* Force any flex row layouts to column */
    [style*="display: flex"][style*="flex-direction: row"],
    [style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
    }
    
    /* About page specific - Our Story section */
    .about-story,
    .about-promise {
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    
    /* Mission and Vision boxes */
    .mission-box,
    .vision-box {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Contact page form */
    .contact-info,
    .contact-form {
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Homepage about preview section */
    .about-preview .about-content {
        flex-direction: column !important;
    }
    
    .about-preview .about-text,
    .about-preview .about-image {
        width: 100% !important;
    }
    
    /* Why Islamic Finance boxes */
    .why-grid,
    .values-grid {
        display: block !important;
    }
    
    .why-box,
    .value-box {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Testimonials */
    .testimonials-grid {
        display: block !important;
    }
    
    .testimonial-card {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Form inputs - full width and usable */
    .form-container {
        width: 100% !important;
        padding: 20px !important;
        margin: 0 !important;
    }
    
    input, textarea, select {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    /* Contact page specific */
    .contact-page .contact-wrapper {
        flex-direction: column !important;
    }
    
    .contact-info {
        margin-bottom: 30px !important;
    }
    
    /* Any element with inline styles that create columns */
    div[style*="grid-template-columns"],
    div[style*="display: grid"] {
        display: block !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: repeat(2"],
    div[style*="grid-template-columns: 50% 50%"] {
        display: block !important;
    }
    
    /* Make sure text doesn't overflow */
    .container, 
    .service-detail,
    .dashboard {
        overflow-x: hidden !important;
    }
    
    /* All text should wrap properly */
    p, h1, h2, h3, h4, li, span {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}
       /* Floating Action Button */
    .fab-container {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 9999;
    }
    
    .fab-button {
        width: 60px;
        height: 60px;
        background: #ff751f;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        text-decoration: none;
        color: white;
        font-size: 1.5rem;
        animation: pulse 2s ease-in-out infinite;
        position: relative;
        z-index: 9999;
    }
    
    .fab-button:hover {
        background: #010285;
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    
    .fab-text {
        position: absolute;
        right: 75px;
        top: 50%;
        transform: translateY(-50%);
        background: #010285;
        color: white;
        padding: 8px 15px;
        border-radius: 30px;
        font-size: 0.85rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 9999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        font-weight: normal;
    }
    
    /* Small arrow pointing to button */
    .fab-text::before {
        content: '';
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
        border-style: solid;
        border-width: 6px 0 6px 8px;
        border-color: transparent transparent transparent #010285;
    }
    
    .fab-container:hover .fab-text {
        opacity: 1;
        visibility: visible;
        right: 80px;
    }
    
    /* Mobile adjustment */
    @media (max-width: 768px) {
        .fab-container {
            bottom: 20px;
            right: 20px;
            z-index: 9999;
        }
        .fab-button {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
        }
        .fab-text {
            display: none;
        }
    }
    
    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.08);
        }
    }