     /*   * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #e8e8e8;
            direction: rtl;
            display: flex;
            justify-content: center;
            min-height: 100vh;
        }*/

        /* Main Container */
        .main-container {
            width: 100%;
            margin: auto;
            max-width: 1100px;
            background-color: #fff;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
        }

        /* Header Section */
        .header {
            position: relative;
            width: 100%;
        }

        .header-bg {
            width: 100%;
            height: auto;
            display: block;
        }

        .header-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Ramadan Logo */
        .ramadan-logo {
            width: 30%;
            max-width: 320px;
            min-width: 120px;
            margin-top: 2%;
            z-index: 10;
        }

        /* Side Badges Container - Desktop */
        .badges-container {
            position: absolute;
            top: 5%;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            padding: 0 2%;
            z-index: 20;
        }

        .badge {
            width: 80%;
            display:block !important;
            max-width: 160px;
            min-width: 60px;
            height: auto;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .badge:hover {
            transform: scale(1.05);
        }

        /* Mobile Badges - Hidden by default */
        .badges-mobile {
            display: none;
            justify-content: center;
            gap: 5%;
            width: 100%;
            padding: 0 5%;
            margin-top: 3%;
        }

        .badges-mobile .badge {
            width: 35%;
            max-width: 140px;
        }

        /* Search Section */
        .search-section {
            position: absolute;
            top: 40%;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 60%;
            max-width: 650px;
            z-index: 15;
        }

        .search-title {
            width: 70%;
            max-width: 400px;
            min-width: 120px;
            margin-bottom: 3%;
        }

        .search-box-wrapper {
            position: relative;
            width: 70%;
        }

        .search-box-bg {
            width: 100%;
            height: auto;
            display: block;
        }

        .search-input {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 88%;
            height: 55%;
            border: none;
            outline: none;
            font-size: clamp(10px, 1.6vw, 18px);
            text-align: center;
            background: transparent;
            direction: rtl;
            color: #333;
        }

        .search-input::placeholder {
            color: #888;
        }

        /* Content Section */
        .content {
            background-color: #fff;
            padding: 4% 3% 5%;
        }

        /* Cards Grid */
        .cards-container {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .cards-row {
            display: flex;
            justify-content: center;
            gap: 2.5%;
            width: 100%;
            margin-bottom: 2.5%;
        }

        .card {
            width: 22%;
            max-width: 220px;
            min-width: 80px;
            cursor: pointer;
            border: none !important;
            transition: transform 0.3s ease, filter 0.3s ease;
        }

        .card:hover {
            transform: translateY(-8px);
            filter: brightness(1.05);
        }

        .card img {
            width: 100%;
            height: auto;
        }

        .cards-row-3 .card {
            width: 22%;
            max-width: 220px;
        }

        /* ============ MOBILE STYLES ============ */
        @media (max-width: 600px) {
            /* Hide desktop badges */
            .badges-container {
                display: none;
            }
            
            /* Show mobile badges */
            .badges-mobile {
                display: flex;
            }
            
            /* Adjust search section for mobile */
            .search-section {
                top: 18%;
                width: 85%;
            }
            
            .search-title {
                width: 80%;
            }
            
            /* Cards - 2 per row on mobile */
            .cards-row {
                flex-wrap: wrap;
                gap: 4%;
                row-gap: 15px;
            }
            
            .card {
                width: 45%;
                max-width: none;
            }
            
            .cards-row-3 .card {
                width: 45%;
                max-width: none;
            }
            
            .content {
                padding: 5% 4% 6%;
            }
        }
        
        
        @media screen and (max-width: 767.9px) {
            .portalpage {
                padding: 0px !important;
            }
        }

        /* Very small screens */
        @media (max-width: 400px) {
            .search-section {
                top: 37%;
                width: 90%;
            }

            .search-box-wrapper {
                width: 40%;
            }

            .badges-mobile {
                gap: 80%;
                margin: -145px;
            }
            
            .badges-mobile .badge {
                width: 40%;
            }
            
            .ramadan-logo {
                width: 35%;
            }
        }
        
        .portalheader {
            background: rgb(14 82 117);
            }
        
        @media (max-width: 450px) {
            .search-section {
                top: 30%;
                width: 90%;
            }
            
            .badges {   
                
            }

            .search-box-wrapper {
                width: 40%;
            }

            .badges-mobile {
                gap: 80%;
                margin: -150px;
            }
            
            .badges-mobile .badge {
                width: 40%;
                
                max-width: 75px !important;
                min-width: 75px !important;
            }
            
            .ramadan-logo {
                width: 35%;
            }
        }
