    /* ============================================
           HOME PAGE CSS
           ============================================ */
    html,
    body {
        overflow-x: hidden;
        /* Only for this page */
        max-width: 100%;
    }

    /* ============================================
           HOME PAGE HERO SECTION
           ============================================ */
    .home-hero {
        background: linear-gradient(135deg, #0c1445, #1a237e);
        padding: 80px 0 60px;
        position: relative;
    }

    .home-hero::before {
        content: '﷽';
        position: absolute;
        top: 50px;
        right: -300px;
        font-size: 10rem;
        opacity: 0.03;
        font-family: 'Amiri', serif;
        color: #fff;
        pointer-events: none;
        user-select: none;
        line-height: 0.8;
    }

    @media (max-width: 768px) {
        .home-hero::before {
            font-size: 5rem;
            top: 100px;
            right: -300px;
            opacity: 0.03;
        }

        .home-hero {
            padding: 60px 0 40px;
        }
    }

    @media (max-width: 576px) {
        .home-hero::before {
            font-size: 5rem;
            top: 100px;
            right: -500px;
            opacity: 0.03;
        }

        .home-hero {
            padding: 60px 0 30px;
        }
    }

    .home-hero h1 {
        font-family: 'Amiri', serif;
        font-size: 3.5rem;
        color: #fff;
        font-weight: 700;
    }

    .home-hero h1 span {
        color: var(--gold);
    }

    .home-hero p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.2rem;
    }

    /* ============================================
           SEARCH BOX
           ============================================ */
    .search-wrapper {
        max-width: 600px;
        margin: 0 auto;
        position: relative;
        z-index: 10;
    }

    .search-box {
        position: relative;
    }

    .search-box .form-control {
        height: 60px;
        border-radius: 50px;
        padding: 0 25px;
        font-size: 1.1rem;
        border: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        padding-right: 120px;
    }

    .search-box .form-control:focus {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        outline: none;
    }

    .search-box .btn-search {
        position: absolute;
        right: 5px;
        top: 5px;
        bottom: 5px;
        padding: 0 30px;
        border-radius: 50px;
        background: var(--gold-gradient);
        color: #0c1445;
        font-weight: 600;
        border: none;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .search-box .btn-search:hover {
        transform: scale(1.02);
        box-shadow: 0 5px 20px rgba(201, 168, 76, 0.3);
    }

    /* ============================================
           SUGGESTIONS DROPDOWN
           ============================================ */
    .suggestions-box {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        margin-top: 8px;
        max-height: 400px;
        overflow-y: auto;
        display: none;
        z-index: 999;
        padding: 8px 0;
    }

    .suggestions-box.active {
        display: block;
    }

    .suggestions-box .suggestion-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 12px 20px;
        cursor: pointer;
        transition: all 0.2s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        text-decoration: none;
        color: #0c1445;
    }

    .suggestions-box .suggestion-item:hover,
    .suggestions-box .suggestion-item.active {
        background: #f8f6f1;
    }

    .suggestions-box .suggestion-item .suggestion-img {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        object-fit: cover;
        flex-shrink: 0;
        background: #e8eaf6;
    }

    .suggestions-box .suggestion-item .suggestion-info {
        flex: 1;
        min-width: 0;
    }

    .suggestions-box .suggestion-item .suggestion-info .suggestion-name {
        font-weight: 600;
        font-size: 0.95rem;
        color: #0c1445;
    }

    .suggestions-box .suggestion-item .suggestion-info .suggestion-urdu {
        font-family: 'Amiri', serif;
        color: var(--gold);
        font-size: 0.85rem;
    }

    .suggestions-box .suggestion-item .suggestion-info .suggestion-detail {
        font-size: 0.75rem;
        color: #999;
        display: flex;
        gap: 12px;
        margin-top: 2px;
    }

    .suggestions-box .suggestion-item .suggestion-arrow {
        color: #ccc;
        font-size: 0.8rem;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .suggestions-box .suggestion-item:hover .suggestion-arrow {
        color: var(--gold);
        transform: translateX(4px);
    }

    .suggestions-box .no-suggestion {
        padding: 30px 20px;
        text-align: center;
        color: #999;
    }

    .suggestions-box .loading-suggestion {
        padding: 20px;
        text-align: center;
        color: #999;
    }

    .suggestions-box .loading-suggestion .spinner {
        display: inline-block;
        width: 30px;
        height: 30px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid var(--gold);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .suggestions-box::-webkit-scrollbar {
        width: 6px;
    }

    .suggestions-box::-webkit-scrollbar-track {
        background: transparent;
    }

    .suggestions-box::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    .suggestions-box::-webkit-scrollbar-thumb:hover {
        background: #ccc;
    }

    /* ============================================
           SEARCH STATS
           ============================================ */
    .search-stats {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
        margin-top: 12px;
    }

    .search-stats strong {
        color: #fff;
    }

    /* ============================================
           MADARIS CARDS
           ============================================ */
    .madrasa-card {
        background: #fff;
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.4s ease;
        border: 1px solid rgba(201, 168, 76, 0.08);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
        height: 100%;
    }

    .madrasa-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
        border-color: rgba(201, 168, 76, 0.2);
    }

    .madrasa-card .card-img-top {
        height: 200px;
        object-fit: cover;
        background: #e8eaf6;
    }

    .madrasa-card .card-body {
        padding: 20px 22px;
    }

    .madrasa-card .card-title {
        font-weight: 700;
        color: #0c1445;
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .madrasa-card .card-title .urdu {
        font-family: 'Amiri', serif;
        color: var(--gold);
        font-size: 0.9rem;
        display: block;
    }

    .madrasa-card .card-text {
        color: #666;
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .madrasa-card .card-footer {
        background: transparent;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        padding: 12px 22px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .madrasa-card .card-footer .btn-visit {
        background: var(--gold-gradient);
        color: #0c1445;
        font-weight: 600;
        padding: 6px 20px;
        border-radius: 50px;
        font-size: 0.85rem;
        border: none;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .madrasa-card .card-footer .btn-visit:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(201, 168, 76, 0.3);
        color: #0c1445;
    }

    /* ============================================
           NO RESULTS
           ============================================ */
    .no-results {
        padding: 60px 20px;
        background: #fff;
        border-radius: 20px;
        border: 2px dashed rgba(201, 168, 76, 0.15);
    }

    .no-results i {
        font-size: 4rem;
        color: #ddd;
    }

    /* ============================================
           POPULAR MADARIS
           ============================================ */
    .popular-section {
        background: #f8f6f1;
        padding: 40px 0;
        border-radius: 20px;
    }

    .popular-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 12px 18px;
        background: #fff;
        border-radius: 12px;
        transition: all 0.3s ease;
        border: 1px solid rgba(201, 168, 76, 0.05);
        text-decoration: none;
        color: #0c1445;
    }

    .popular-item:hover {
        border-color: var(--gold);
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
        color: #0c1445;
    }

    .popular-item .rank {
        font-weight: 700;
        color: var(--gold);
        font-size: 1.2rem;
        min-width: 30px;
    }

    .popular-item .info .name {
        font-weight: 600;
        font-size: 0.95rem;
    }

    .popular-item .info .students {
        font-size: 0.8rem;
        color: #888;
    }

    /* ============================================
           PAGINATION
           ============================================ */
    .pagination-custom .page-link {
        color: #0c1445;
        border-radius: 50px;
        margin: 0 3px;
        border: 1px solid rgba(201, 168, 76, 0.15);
        padding: 8px 16px;
    }

    .pagination-custom .page-link:hover {
        background: var(--gold-gradient);
        color: #0c1445;
        border-color: #c9a84c;
    }

    .pagination-custom .page-item.active .page-link {
        background: var(--gold-gradient);
        color: #0c1445;
        border-color: #c9a84c;
        font-weight: 600;
    }

    /* ============================================
           RESPONSIVE
           ============================================ */
    @media (max-width: 768px) {
        .home-hero h1 {
            font-size: 2.2rem;
        }

        .home-hero p {
            font-size: 1rem;
        }

        .search-box .form-control {
            height: 50px;
            font-size: 0.95rem;
            padding-right: 100px;
        }

        .search-box .btn-search {
            padding: 0 20px;
            font-size: 0.9rem;
        }

        .madrasa-card .card-img-top {
            height: 150px;
        }

        .popular-item {
            padding: 10px 14px;
        }

        .suggestions-box .suggestion-item {
            padding: 10px 16px;
        }

        .suggestions-box .suggestion-item .suggestion-img {
            width: 40px;
            height: 40px;
        }
    }

    @media (max-width: 576px) {
        .search-box .form-control {
            font-size: 0.85rem;
            padding-right: 80px;
        }

        .search-box .btn-search {
            padding: 0 14px;
            font-size: 0.8rem;
        }

        .suggestions-box {
            max-height: 300px;
        }

        .suggestions-box .suggestion-item .suggestion-info .suggestion-name {
            font-size: 0.85rem;
        }
    }

    /* ============================================
   POPULAR MADARIS CARDS
   ============================================ */
    .popular-card {
        background: #fff;
        border-radius: 20px;
        padding: 25px;
        transition: all 0.4s ease;
        border: 1px solid rgba(201, 168, 76, 0.08);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
        position: relative;
        overflow: hidden;
        height: 100%;
    }

    .popular-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
        border-color: rgba(201, 168, 76, 0.2);
    }

    .popular-card .popular-rank {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
        font-weight: 900;
        color: rgba(201, 168, 76, 0.1);
    }

    .popular-card .popular-content {
        position: relative;
        z-index: 1;
    }

    .popular-card .popular-header .popular-name {
        font-weight: 700;
        color: #0c1445;
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .popular-card .popular-header .popular-urdu {
        font-family: 'Amiri', serif;
        color: var(--gold);
        font-size: 0.85rem;
        display: block;
    }

    .popular-card .popular-rating {
        margin: 10px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .popular-card .popular-rating .rating-text {
        font-size: 0.8rem;
        color: #888;
    }

    .popular-card .popular-stats {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        margin: 12px 0;
        padding: 10px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .popular-card .popular-stats span {
        font-size: 0.85rem;
        color: #666;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .popular-card .popular-stats span i {
        color: var(--gold);
        width: 18px;
    }

    .popular-card .btn-popular {
        display: inline-block;
        background: var(--gold-gradient);
        color: #0c1445;
        font-weight: 600;
        padding: 8px 25px;
        border-radius: 50px;
        font-size: 0.85rem;
        border: none;
        transition: all 0.3s ease;
        text-decoration: none;
        margin-top: 5px;
    }

    .popular-card .btn-popular:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(201, 168, 76, 0.3);
        color: #0c1445;
    }

    /* ============================================
   RESPONSIVE
   ============================================ */
    @media (max-width: 768px) {
        .popular-card .popular-rank {
            font-size: 1.8rem;
            top: 10px;
            right: 15px;
        }

        .popular-card {
            padding: 20px;
        }
    }

    /* ============================================
   CARD RATING & STATS
   ============================================ */
    .madrasa-card .card-rating {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 6px 0 4px;
        flex-wrap: wrap;
    }

    .madrasa-card .card-rating i {
        font-size: 0.85rem;
    }

    .madrasa-card .card-rating .rating-text {
        font-size: 0.75rem;
        color: #999;
    }

    .madrasa-card .card-stats {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin: 6px 0 10px;
        padding: 6px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.03);
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .madrasa-card .card-stats span {
        font-size: 0.75rem;
        color: #888;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .madrasa-card .card-stats span i {
        color: var(--gold);
        font-size: 0.7rem;
        width: 16px;
    }

    /* ============================================
   RESPONSIVE
   ============================================ */
    @media (max-width: 576px) {
        .madrasa-card .card-rating .rating-text {
            font-size: 0.65rem;
        }

        .madrasa-card .card-stats span {
            font-size: 0.65rem;
        }
    }