@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');

        :root {
            --bg-color: #FFFFFF;
            --default-text: #333333;
            --header-bg: #FFFFFF;
            --footer-bg: #dddddd;
            --accent-color: #718916;
            --card-bg: #FFFFFF;
            --card-hover-bg: #3498db;
            --card-hover-text: #FFFFFF;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            --accent-shadow: 0 4px 20px rgba(52, 152, 219, 0.2);
            --transition: all 0.3s ease;
			--hero-bg: linear-gradient(-11deg, rgba(58, 61, 91, 0.1), rgb(255 255 255 / 72%));
            --image-overlay: linear-gradient(to bottom, rgba(245, 245, 247, 0.1), rgba(245, 245, 247, 0.7));
            --hero-icon-bg: rgba(255, 255, 255, 0.7);
            --font-heading: 'Oswald', sans-serif;
            --font-body: 'Montserrat', sans-serif;
            --sidebar-width: 332px;
            /* Additional colors for PDF tools */
            --primary-color: #e74c3c;
            --primary-dark: #c0392b;
            --border-color: #f0f0f0;
            --gray-text: #5d6d7e;
            --light-gray: #f8f9fa;
            --scrollbar-bg: rgba(0, 0, 0, 0.05);
            --scrollbar-thumb: #e74c3c;
            --menu-hover-bg: rgba(52, 152, 219, 0.1);
            --dropdown-bg: #FFFFFF;
            --dropdown-border: #f0f0f0;
            --dropdown-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
            --icon-bg: #f0f7ff;
			--result-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        }

        [data-theme="dark"] {
            --bg-color: #8f8f9b;
            --default-text: #EAEAEA;
            --header-bg: #2B2D42;
            --footer-bg: #38383e;
            --accent-color: #FFD700;
            --card-bg: #3A3D5B;
            --card-hover-bg: #FFD700;
            --card-hover-text: #1E1E2F;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            --accent-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
			--hero-bg: linear-gradient(-11deg, rgb(247 248 255 / 72%), rgb(0 0 0));
            --image-overlay: linear-gradient(to bottom, rgba(30, 30, 47, 0.1), rgba(30, 30, 47, 0.7));
            --hero-icon-bg: rgba(58, 61, 91, 0.7);
            /* Additional colors for PDF tools in dark mode */
            --primary-color: #e74c3c;
            --primary-dark: #c0392b;
            --border-color: #3a3e5c;
            --gray-text: #b0b0b0;
            --light-gray: #25273d;
            --scrollbar-bg: rgba(255, 255, 255, 0.05);
            --scrollbar-thumb: #e74c3c;
            --menu-hover-bg: rgba(231, 76, 60, 0.2);
            --dropdown-bg: #2d3047;
            --dropdown-border: #3a3e5c;
            --dropdown-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            --icon-bg: rgba(58, 62, 92, 0.5);
			--result-bg: linear-gradient(135deg, #787d84 0%, #323842 100%);
        }

        /* start nav introduction */
		.mobile-only {
			display: none;
		}
		/* end nav introduction */
		
		
		* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
		
		
		
		body {
            background-color: var(--bg-color);
            color: var(--default-text);
            line-height: 1.6;
            font-family: var(--font-body);
			font-display: swap;
            transition: var(--transition);
			overflow-x: hidden;
        }
        
        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-heading);
			font-display: swap;
			color: var(--accent-color);
        }

        h1 {
			font-size: 2.8rem;
        }

        h2 {
			font-size: 2.4rem;
        }

        h3 {
			font-size: 2rem;
        }
		h4 {
			font-size: 1.6rem;
		}
		
		/* RESPONSIVENESS HEADINGS */
		
		@media (max-width: 768px) {
			.top h1 {
			    font-size: 1.2rem;
			}
			
			h1 {
				font-size: 2.2rem;
			}
			h2 {
				font-size: 1.8rem;
			}
			h3 {
				font-size: 1.5rem;
			}
			h4 {
				font-size: 1.25rem;
			}		
		}
		
		@media (max-width: 600px) {
			h1 {
				font-size: 2rem;
			}
			h2 {
				font-size: 1.6rem;
			}
			h3 {
				font-size: 1.4rem;
			}
			h4 {
				font-size: 1.2rem;
			}		
		}
		
		@media (max-width: 400px) {
			h1 {
				font-size: 1.7rem;
			}
			h2 {
				font-size: 1.5rem;
			}
			h3 {
				font-size: 1.3rem;
			}
			h4 {
				font-size: 1rem;
			}		
		}
		
		h3 a {
			color: inherit;
		}
		
		li a {
			font-family: var(--font-heading);
			color: var(--accent-color);
		}
		
		li {
			color: var(--default-text);
		}
		
		/* START HEADER CSS */
        .site-header {
            background-color: var(--header-bg);
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 0 20px;
            transition: var(--transition);
			font-family: var(--font-heading);
			font-display: swap;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
		
		/* Logo styling */
        .logo {
			display: flex;
			align-items: center;
			gap: 0.5rem;
			text-decoration: none;
		}

		.logo-icon {
			width: 50px;
			height: 50px;
		}

        .logo-text {
            font-size: 22px;
        }

        .logo-subtext {
            color: var(--primary-color);
            font-weight: 600;
        }
		/* START DROPDOWN MENUS RESPONSIVE CSS CODES */
		
		/* Main navigation */
        .main-nav {
            display: flex;
            align-items: center;
        }

        /* Navigation list */
        .nav-list {
            display: flex;
            list-style: none;
        }

        .nav-item {
            position: relative;
            margin-right: 8px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 10px;
            text-decoration: none;
            color: var(--h1-color);
            font-weight: 500;
            border-radius: 6px;
            transition: var(--transition);
            white-space: nowrap;
            font-family: var(--font-heading);
			font-display: swap;
        }

        .nav-link:hover {
            background-color: var(--accent-color);
            color: var(--card-hover-text);
        }

        .nav-link.active, .dropdown-link.active {
            background-color: rgba(231, 76, 60, 0.1);
            color: var(--primary-color);
            font-weight: 600;
        }

        [data-theme="dark"] .nav-link.active {
            background-color: rgba(231, 76, 60, 0.2);
        }

        /* Dropdown menu styling */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: -100px;
            background: var(--dropdown-bg);
            box-shadow: var(--dropdown-shadow);
            border-radius: 10px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px);
            transition: var(--transition);
            z-index: 1000;
            padding: 25px;
            max-width: 95vw;
            overflow: hidden;
            border: 1px solid var(--dropdown-border);
			font-family: var(--font-heading);
			font-display: swap;
        }

        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(5px);
        }

        /* Multi-column layout for dropdown */
        
		.dropdown-columns-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
			min-width: 700px;
            gap: 30px;
        }
		
		.dropdown-columns-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
			min-width: 600px;
            gap: 30px;
        }
		
		.dropdown-columns-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
			min-width: 400px;
            gap: 30px;
        }
		
		.dropdown-columns {
            display: grid;
            gap: 30px;
        }
		
		/* end 1 to 4 columns */

        .dropdown-section {
            margin-bottom: 0;
			font-family: var(--font-heading);
			font-display: swap;
        }

        .dropdown-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--h1-color);
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            font-family: var(--font-heading);
			font-display: swap;
        }

        .dropdown-icon {
            width: 18px;
            height: 18px;
            margin-right: 10px;
            background-color: var(--primary-color);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 10px;
        }

        .dropdown-list {
            list-style: none;
        }

        .dropdown-item {
            margin-bottom: 8px;
        }

        .dropdown-link {
            display: flex;
            align-items: center;
            padding: 8px 0;
            text-decoration: none;
            color: var(--gray-text);
            font-size: 14px;
            transition: var(--transition);
            border-radius: 4px;
            font-family: var(--font-heading);
			font-display: swap;
        }

        .dropdown-link:hover {
            color: var(--primary-color);
        }

        .item-icon {
            width: 16px;
            height: 16px;
            margin-right: 10px;
            background-color: var(--icon-bg);
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-text);
            font-size: 9px;
        }
		
		
        /* Custom scrollbar for mobile */
        .mobile-scroll-container {
            max-height: 60vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-right: 5px;
        }

        /* Beautiful scrollbar styling */
        .mobile-scroll-container::-webkit-scrollbar {
            width: 6px;
        }

        .mobile-scroll-container::-webkit-scrollbar-track {
            background: var(--scrollbar-bg);
            border-radius: 10px;
        }

        .mobile-scroll-container::-webkit-scrollbar-thumb {
            background: var(--scrollbar-thumb);
            border-radius: 10px;
        }

        .mobile-scroll-container::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* For Firefox */
        .mobile-scroll-container {
            scrollbar-width: thin;
            scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
        }

        /* Header actions */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .theme-toggle {
            display: flex;
            align-items: center;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ddd;
            transition: .4s;
            border-radius: 24px;
			box-shadow: inset 1px 0px 5px 3px;
        }

        [data-theme="dark"] .toggle-slider {
            background-color: #555;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: var(--accent-color);
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background-color: var(--footer-bg);
        }

        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            color: var(--h1-color);
            cursor: pointer;
            padding: 5px;
            transition: var(--transition);
        }
		
		/* PNG icon styling for when you add them */
        .png-icon {
            width: 30px;
            height: 30px;
            margin-right: 10px;
            object-fit: contain;
        }

        .png-icon-small {
            width: 16px;
            height: 16px;
            margin-right: 10px;
        }
		/* END DROPDOWN MENUS RESPONSIVE CSS CODES */
		
		/* START MAIN PAGE CSS */
		.main-content {
			max-width: 1200px;
			margin: 2rem auto;
			padding: 1rem;
		}
		/* END MAIN PAGE CSS */

        /* Hero section start style */
        .hero {
			background: var(--hero-bg);
			border-radius: 12px;
			padding: 2rem 2rem;
			margin-bottom: 3rem;
			text-align: center;
			box-shadow: var(--shadow);
		}
		
		.hero-icons {
			display: grid;
			grid-template-columns: repeat(6, 1fr);
			gap: 1.5rem;
			margin: 2rem auto 0;
			max-width: 900px;
		}

		.hero-icon {
			display: flex;
			flex-direction: column;
			align-items: center;
			border: 2px solid var(--accent-color);
			border-radius: 15px;
			padding: 10px;
			cursor: pointer;
			transition: var(--transition);
		}

		.hero-icon:hover {
			transform: translateY(-5px);
		}

		.icon-circle {
			width: 60px;
			height: 60px;
			border-radius: 50%;
			background-color: var(--hero-icon-bg);
			display: flex;
			align-items: center;
			justify-content: center;
			margin-bottom: 0.5rem;
			transition: var(--transition);
			backdrop-filter: blur(5px);
			border: 1px solid rgba(52, 152, 219, 0.3);
		}

		.icon-img {
			width: 60px;
			height: 60px;
			object-fit: contain;
			transition: var(--transition);
			border-radius: 50%;
		}

		.hero-icon:hover .icon-img {
			transform: scale(1.1);
		}

		.hero-icon p {
			font-size: 0.9rem;
			font-weight: 500;
			text-align: center;
			color: var(--accent-color);
			margin-top: 0.3rem;
		}

		.hero-icon:hover p {
			color: var(--accent-color);
		}
		
		@media (max-width: 480px) {
			.hero {
				padding: 1rem;
				margin-bottom: 0rem;
			}
		}
		
		/* Hero section end style */

        .highlight {
            color: var(--primary-color);
            font-weight: 600;
        }
		
		/* START ACCORDION COUNTRY DETECTION */
		.container-country {
            max-width: 1200px;
            width: 100%;
            border-radius: 15px;
            overflow: hidden;
            margin-top: 20px;
            padding: 20px;
        }
        
        .top-cities-container {
            max-width: 1200px;
            width: 100%;
            overflow: hidden;
            margin-bottom: 20px;
            box-shadow: var(--shadow);
        }
        
        .top-cities-header {
            padding: 10px;
            border: 3px solid var(--accent-color);
            text-align: center;
			background: var(--footer-bg);
        }
        
        .top-cities-content {
            padding: 20px;
			background: var(--footer-bg);
        }
		
		@media (max-width: 400px) {
			.top-cities-content {
            padding: 0px;
        }
		}
        
        .accordion {
            width: 100%;
        }
        
        .accordion-item {
            border-bottom: 1px solid #e0e0e0;
        }
        
        .accordion-header {
            padding: 20px;
            background-color: #f8f9fa;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s ease;
        }
        
        .accordion-header:hover {
            background-color: #e9ecef;
        }
        
        .country-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .flag {
            width: 40px;
            height: 30px;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            object-fit: cover;
        }
        
        .country-name {
            font-size: 1.2rem;
            font-weight: 600;
        }
        
        .accordion-icon {
            transition: transform 0.3s ease;
            color: #6c757d;
        }
        
        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        
        .button-container {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            margin-top: 15px;
            margin-bottom: 15px;
            padding: 0 10px;
        }

        .prayer-btn {
            flex: 1;
            min-width: 140px;
            padding: 3px 12px;
            border: 2px solid var(--accent-color);
            border-radius: 6px;
            background: var(--accent-color);
            color: white;
            font-weight: 600;
            font-size: 0.95rem;
			font-family: var(--font-heading);
			font-display: swap;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
            text-decoration: none;
            text-align: center;
        }

        .prayer-btn:hover {
            background: white;
			color: var(--accent-color);
        }

        .prayer-btn i {
            font-size: 1.1rem;
            margin-bottom: 8px;
        }
        
        .accordion-item.active .accordion-header {
            background-color: var(--footer-bg);
        }
        
        .accordion-item.active .accordion-icon {
            transform: rotate(180deg);
            color: #1a73e8;
        }
        
        .accordion-item.active .accordion-content {
            max-height: 500px;
        }
        
        .location-status {
            margin: 15px 0;
            padding: 10px 15px;
            border-radius: 8px;
            background-color: var(--footer-bg);
            color: var(--accent-color);
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
        }
        
        .location-status.error {
            background-color: #ffebee;
            color: #c62828;
        }
        
        .detection-options {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        
        .detection-btn {
            padding: 8px 15px;
            background: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background 0.3s;
        }
        
        .detection-btn:hover {
            background: #388E3C;
        }
        
        .detection-btn.secondary {
            background: #757575;
        }
        
        .detection-btn.secondary:hover {
            background: #616161;
        }
		/* START ACCORDION COUNTRY DETECTION */
		
		/* START MAIN CONTENT LAYOUT */
		
		.calculator-content {
            flex: 1;
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 5px;
            box-shadow: var(--shadow);
        }
		
		.calculator-body {
			display: flex;
			padding: 25px;
			gap: 20px;
		}
		
		/* END MAIN CONTENT LAYOUT */
		
		/* START ARTICLE CSS */
		#toolsArticle {
                border-radius: 8px;
				padding: 2rem;
				background: var(--footer-bg);
            }
            #toolsArticle p, #toolsArticle ul {
                margin-bottom: 1rem;
                font-size: 0.95rem;
                opacity: 0.9;
            }
            #toolsArticle li {
                margin-left: 1.5rem;
                margin-bottom: 0.5rem;
            }
             #toolsArticle strong { color: var(--accent-color); opacity: 1;}
			 
			@media (max-width: 480px) {
				#toolsArticle {
					padding: 0.5rem;
				}
				
				.comparison-table th {
					padding: 2px;
				}
				
				.comparison-table td {
					padding: 2px;
				}
			} 
			
			@media (max-width: 320px) {
				#toolsArticle {
					padding: 0.1rem;
				}
				
				#toolsArticle p, #toolsArticle ul {
					font-size: 0.75rem;
				}
				
				.comparison-table th {
					padding: 0px;
					font-size: .8rem;
				}
				
				.comparison-table td {
					padding: 0px;
					font-size: .8rem;
				}
			}
			
			#toolsArticle h2 a {
                text-decoration: none;
                color: inherit;
            }
			
			#toolsArticle p a {
                text-decoration: underline;
                font-family: var(--font-heading);
				color: var(--accent-color);
            }
		/* END ARTICLE CSS*/
		
		/* START Tool categories */
        .calculator-grid {
			display: grid;
			grid-template-columns: repeat(4, 1fr);
			gap: 2rem;
			margin-bottom: 3rem;
		}
		
		.category-grid {
			display: grid;
			gap: 2rem;
			margin-bottom: 3rem;
		}

		.category-card, .calculator-card {
			background-color: var(--card-bg);
			border-radius: 12px;
			padding: 0.5rem;
			transition: var(--transition);
			cursor: pointer;
			box-shadow: var(--shadow);
			display: flex;
			gap: 1rem;
			color: var(--royal-text);
		}
		
		.category-card h3 a, .calculator-card a {
			color: inherit;          /* Inherit the color from h1 */
			text-decoration: none;   /* Remove underline */
			font-weight: inherit;    /* Inherit font weight */
		}
		
		.category-card p a, .calculator-card p a {
			color: inherit;          /* Inherit the color from h1 */
			text-decoration: none;   /* Remove underline */
			font-weight: inherit;    /* Inherit font weight */
		}

		.category-card:hover, .calculator-card:hover {
			background-color: var(--accent-color);
			color: white;
			transform: translateY(-5px);
			box-shadow: var(--shadow);
		}
		
		.calculator-card:hover h3 {
			color: white;
		}
		
		.deatil {
			padding: 10px;
			display: flex;
			flex-direction: column;
		}

		/* Category Card with Image */
		.category-card {
			position: relative;
			overflow: hidden;
			padding: 0;
			height: 225px;
		}

		.card-image-container {
			position: relative;
			width: 100%;
			height: 100%;
		}

		.card-image {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: transform 0.5s ease;
		}

		.image-overlay {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: var(--image-overlay);
		}

		.card-content {
			position: absolute;
			bottom: 0;
			left: 0;
			width: 100%;
			padding: 1rem;
			z-index: 2;
		}

		.category-card:hover .card-image {
			transform: scale(1.05);
		}

		/* Adjust icon position */
		.category-card .card-icon {
			font-size: 2rem;
			margin-bottom: 0.5rem;
			color: var(--accent-color);
		}

		/* Adjust text contrast for better readability over images */
		.category-card h3 {
			color: white;
			text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
		}

		.category-card p {
			color: var(--royal-text);
			text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
		}

		/* Hover effects with images */
		.category-card:hover h3,
		.category-card:hover p {
			color: var(--card-hover-text);
			text-shadow: none;
		}

		.category-card:hover .card-icon {
			color: var(--card-hover-text);
		}

		.category-card:hover .image-overlay {
			background: rgba(52, 152, 219, 0.8);
		}

		[data-theme="dark"] .category-card:hover .image-overlay {
			background: rgba(255, 215, 0, 0.8);
		}

		.card-icon {
			font-size: 2.5rem;
			margin-bottom: 1rem;
		}

		.card-icon img {
			width: 40px;
			height: 40px;
			object-fit: contain;
			transition: var(--transition);
		}

		.calculator-card:hover .card-icon img {
			transform: scale(1.1);
			filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
		}

		.category-card h3, .calculator-card h3 {
			font-size: 1.5rem;
			color: var(--accent-color);
		}

		.category-card h4, .calculator-card h4 {
			font-size: 1.2rem;
			color: var(--accent-color);
		}

		.card-footer {
			margin-top: auto;
			font-size: 1.5rem;
			text-align: right;
		}

		/* END TOOL CATEGORY SECTION */
		
		/* START FOOTER CSS */
		footer {
            background-color: var(--footer-bg);
            color: var(--footer-text);
			font-family: var(--font-heading);
			font-display: swap;
            padding: 3rem 0 0;
            margin-top: 3rem;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
        }

        .footer-column {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .footer-logo-icon {
            width: 40px;
            height: 40px;
        }

        .footer-logo-text {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent-color);
        }

        .footer-description {
            font-size: 0.9rem;
            line-height: 1.6;
            opacity: 0.8;
        }

        .footer-heading {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 1rem;
            color: var(--accent-color);
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-heading::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 2px;
            background-color: var(--accent-color);
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .footer-link {
            color: var(--footer-text);
            text-decoration: none;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .footer-link:hover {
            color: var(--accent-color);
        }

        .footer-link-icon {
            width: 25px;
            height: 25px;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: rgba(255, 215, 0, 0.1);
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background-color: var(--accent-color);
            transform: translateY(-3px);
        }

        .social-icon {
            width: 18px;
            height: 18px;
        }

        .app-download {
            display: inline-block;
            margin-top: 1.5rem;
        }

        .app-store-icon {
            width: 200px;
            height: auto;
            border-radius: 5px;
            transition: transform 0.3s ease;
        }

        .app-store-icon:hover {
            transform: scale(1.05);
        }

        .copyright {
            background-color: var(--header-bg);
            padding: 1.5rem 0;
            margin-top: 3rem;
            text-align: center;
            font-size: 0.8rem;
            opacity: 0.7;
        }
		/* END FOOTER CSS */

        /* Mobile responsiveness */
        @media (max-width: 992px) {
            .mobile-menu-toggle {
                display: block;
            }
            
            .main-nav {
                position: fixed;
                top: 50px;
                left: 0;
                width: 75%;
                background: var(--header-bg);
                box-shadow: var(--shadow);
                padding: 20px;
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: var(--transition);
                z-index: 999;
                border-top: 1px solid var(--border-color);
                height: calc(100vh - 70px);
                display: flex;
                flex-direction: column;
            }
            
            .main-nav.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }
            
            .nav-list {
                flex-direction: column;
                width: 100%;
                flex: 1;
                overflow-y: auto;
                padding-right: 5px;
            }
            
            .nav-item {
                width: 100%;
                margin-right: 0;
                margin-bottom: 5px;
            }
            
            .nav-link {
                padding: 15px;
                border-radius: 8px;
                border-bottom: 1px solid var(--border-color);
            }
            
            .dropdown-menu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                padding: 0;
                min-width: auto;
                max-width: 100%;
                display: none;
                background: var(--light-gray);
                border-radius: 8px;
                margin-top: 5px;
                border: 1px solid var(--border-color);
                max-height: 400px;
                overflow-y: auto;
            }
            
            .dropdown-menu.active {
                display: block;
                padding: 15px;
            }
            
            .dropdown-columns {
                grid-template-columns: 1fr;
                gap: 20px;
            }
			
			/* Multi-column layout for dropdown */
        
			.dropdown-columns-4 {
				grid-template-columns: 1fr;
				gap: 20px;
			}
			
			.dropdown-columns-3 {
				grid-template-columns: 1fr;
				gap: 20px;
			}
			
			.dropdown-columns-2 {
				grid-template-columns: 1fr;
				gap: 20px;
			}
			
			/* end 1 to 4 columns */

            /* Make mobile dropdown scrollable */
            .dropdown-menu.active .dropdown-columns {
                max-height: 350px;
                overflow-y: auto;
                padding-right: 10px;
            }

            .dropdown-menu.active .dropdown-columns::-webkit-scrollbar {
                width: 5px;
            }

            .dropdown-menu.active .dropdown-columns::-webkit-scrollbar-track {
                background: var(--scrollbar-bg);
                border-radius: 10px;
            }

            .dropdown-menu.active .dropdown-columns::-webkit-scrollbar-thumb {
                background: var(--scrollbar-thumb);
                border-radius: 10px;
            }
            
            .hero-title {
                font-size: 36px;
            }
            
            .hero-subtitle {
                font-size: 18px;
            }
            
            .header-actions {
                gap: 10px;
            }
        }

        @media (max-width: 768px) {
            .hero-section {
                padding: 60px 20px;
            }
            
            .hero-title {
                font-size: 30px;
            }
            
            .hero-subtitle {
                font-size: 16px;
            }
            
            .categories-grid {
                grid-template-columns: 1fr;
            }
			
			.mobile-only {
				display: block;
			}
        }
		
		
/* UNSTYLING HEADINGS */
.main-header,
.main-footer,
.calculator-sidebar {
    transition: font-family 0.3s ease;
}

h1 a {
    color: inherit;          /* Inherit the color from h1 */
    text-decoration: none;   /* Remove underline */
    font-weight: inherit;    /* Inherit font weight */
}

h1 a:hover, h1 a:focus, h1 a:active {
    color: inherit;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1150px) {
				
				.calculator-body {
					padding: 8px;
				}
			}

@media (max-width: 1024px) {
    .category-grid, .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-copyright {
        grid-column: span 2;
        text-align: center;
    }
    
    .category-card {
        height: 250px;
    }
    
    .hero-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 1rem;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
	
	.main-content {
        flex-direction: column;
    }
            
    .calculator-content {
        order: 1;
    }
			
	.calculator-body {
		padding: 10px 80px;
		gap: 30px;
	}
}

@media (max-width: 992px) {
	.footer-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem;
            }
	.calculator-body {
		padding: 10px 50px;
		gap: 20px;
	}		
}

@media (max-width: 768px) {
    .main-content{
		margin: 0rem auto;
	}
	
	.calculator-body {
		padding: 10px 30px;
		gap: 15px;
	}
	
	.tool-container {
		margin: 0rem auto;
	}
	
	.converter-box {
		padding: 10px;
	}
	
	.header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .category-card {
        height: 220px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .category-card .card-icon {
        font-size: 1.8rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    .hero-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-icon p {
        font-size: 0.8rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }	
}

@media (max-width: 600px) {
    .converter-box {
		padding: 10px;
	}
	
	.category-grid, .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .footer-column {
                align-items: center;
                text-align: center;
            }
            
            .footer-heading::after {
                left: 50%;
                transform: translateX(-50%);
            }
            
            .footer-links {
                align-items: center;
            }
    
    .hero-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-list li {
        flex-direction: column;
    }
    
    .calculator-list li::after {
        content: none;
    }
    
    .calculator-list a {
        margin-bottom: 0.3rem;
    }		
}

@media (max-width: 400px) {
    .calculator-body {
		padding: 10px;
		gap: 10px;
	}
	
	.icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .hero-icon p {
        font-size: 0.75rem;
    }
    
    .main-nav a {
        padding: 0.5rem;
    }
	
	.main-nav ul {
		gap: .5rem;
		display: block;
	}
	
	.dropdown-content {
		width: 180px;
	}
 
	.toggle-label {
		font-size: 1.2rem;
	}
	
}



/* start QURAN-KAREEM CSS */
        .container-q {
            width: 100%;
            max-width: 800px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            margin-top: 20px;
        }
        
        .header-q {
            background: #1b707e;
            color: white;
            text-align: center;
            padding: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .header-q h1 {
            font-size: 2rem;
            margin-bottom: 5px;
        }
        
        .surah-list {
            height: 75vh;
            overflow-y: auto;
            padding: 10px;
        }
        
        /* Custom scrollbar */
        .surah-list::-webkit-scrollbar {
            width: 8px;
        }
        
        .surah-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        
        .surah-list::-webkit-scrollbar-thumb {
            background: #1a2a6c;
            border-radius: 10px;
        }
        
        .surah-list::-webkit-scrollbar-thumb:hover {
            background: #fdbb2d;
        }
        
        .surah-item {
            margin-bottom: 10px;
        }
        
        .surah-content {
            display: flex;
            flex-direction: column;
        }
        
        .surah-main {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
			box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            transition: all 0.3s ease;
			background: white;
			border-radius: 10px;
			border-bottom: 2px solid blue;
			padding: 10px;
        }
        
        .surah-btn {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0px;
            text-align: left;
			background: white;
			border: none;
        }
        
        .surah-main:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }
        
        .surah-info {
            flex: 1;
        }
        
        .surah-number {
            display: inline-block;
            width: 30px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            background: linear-gradient(135deg, #5cb0bf, #3a5f73);
            color: white;
            border-radius: 50%;
            margin-right: 10px;
            font-size: 14px;
        }
        
        .surah-name {
            font-weight: 600;
            color: #1a2a6c;
            margin-bottom: 5px;
        }
        
        .surah-urdu {
            font-family: 'Amiri', serif;
			font-display: swap;
            font-size: 1.4rem;
            color: #b21f1f;
            margin-bottom: 5px;
            font-weight: 700;
        }
        
        .surah-meaning {
            font-size: 0.9rem;
            color: #6c757d;
        }
        
        .surah-controls {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .control-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 8px 12px;
            border: none;
            border-radius: 12px;
            background: linear-gradient(135deg, #5cb0bf, #3a5f73);
            color: white;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
            text-decoration: none;
            text-align: center;
            min-width: 110px;
        }
        
        .control-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
            background: linear-gradient(135deg, #4ca1af, #2c3e50);
        }
        
        .audio-player {
            display: none;
            width: 100%;
            margin-top: 10px;
            border-radius: 5px;
        }
        
        .surah-details {
            display: none;
            margin-top: 10px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            border-left: 4px solid #1a2a6c;
        }
        
        .surah-details h3 {
            color: #1a2a6c;
            margin-bottom: 10px;
        }
        
        .surah-details p {
            margin-bottom: 8px;
            color: #555;
        }
        
        .stats {
            display: flex;
            justify-content: space-around;
            margin-top: 10px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 10px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: #1b707e;
        }
        
        .stat-label {
            font-size: 0.8rem;
            color: #6c757d;
        }
		/* End QURAN-KAREEM CSS */
		
		/* START SIDEBAR ACCORDION STYLE */
		.calculator-sidebar {
			width: var(--sidebar-width);
			border-radius: 12px;
			box-shadow: var(--shadow);
			padding: 10px;
			display: flex;
			flex-direction: column;
			gap: 30px;
			height: fit-content; /* Add this to control height based on content */
			min-height: auto; /* Ensure it doesn't have a minimum height */
		}
		
		/* Calculator Table Styles */
		.calculator-table {
			display: table;
			width: 100%;
			border-collapse: collapse;
		}

		.calculator-row {
			display: grid;
		}

		.calculator-cell {
			display: table-cell;
			padding: 12px 15px;
			border: 1px solid var(--border-color);
			cursor: pointer;
			transition: var(--transition);
			font-family: var(--font-body);
			font-weight: 500;
			color: var(--default-text);
			background-color: var(--card-bg);
		}

		.calculator-cell:hover {
			background-color: var(--card-hover-bg);
			color: var(--card-hover-text);
			transform: translateY(-2px);
			box-shadow: var(--accent-shadow);
		}

		/* Accordion content adjustments */
		.accordion-content {
			max-height: 0;
			overflow: hidden;
			transition: max-height 0.3s ease;
			padding: 0 15px; /* Add padding for better spacing */
		}
		
		@media (max-width: 480px) {
			.accordion-content {
				padding: 0px;
			}
			
			.container-country {
				padding: 0px;
			}
		}

		.accordion-content.active {
			max-height: 500px;
			padding: 2px; /* Add padding when active */
		}

		/* Ensure accordion items don't have extra spacing */
		.accordion-item {
			border-bottom: 1px solid rgba(0, 0, 0, 0.1);
			margin-bottom: 0; /* Remove any margin */
		}

		[data-theme="dark"] .accordion-item {
			border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		}

		/* Remove any extra margins from accordion headers */
		.accordion-header {
			padding: 1rem 1.5rem;
			background-color: var(--card-bg);
			cursor: pointer;
			display: flex;
			justify-content: space-between;
			align-items: center;
			transition: var(--transition);
			font-family: var(--font-heading);
			font-display: swap;
			font-weight: 600;
			font-size: 1.1rem;
			margin: 0; /* Ensure no margin */
		}
		
        /* Accordion Styling */
        .accordion {
            width: 100%;
        }

        .accordion-item {
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        [data-theme="dark"] .accordion-item {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .accordion-header {
            padding: 1rem 1.5rem;
            background-color: var(--card-bg);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
            font-family: var(--font-heading);
			font-display: swap;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .accordion-header:hover {
            background-color: rgba(52, 152, 219, 0.1);
        }

        [data-theme="dark"] .accordion-header:hover {
            background-color: rgba(255, 215, 0, 0.1);
        }

        .accordion-header.active {
            color: var(--accent-color);
        }

        .accordion-icon {
            transition: var(--transition);
        }

        .accordion-header.active .accordion-icon {
            transform: rotate(180deg);
        }

        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .accordion-content.active {
            max-height: 500px;
        }
		/* END SIDEBAR ACCORDION STYLE */
		
		/* BACK TO TOP CSS */
	
	.back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--accent-color);
      color: white;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      transition: all 0.3s;
      z-index: 9999;
      opacity: 0;
      visibility: hidden;
    }

    .back-to-top.show {
      opacity: 1;
      visibility: visible;
    }

    .back-to-top:hover {
      background: #2a5a3a;
      transform: translateY(-3px);
    }

    @media (max-width: 768px) {
      .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 20px; }
    }
/* END BACK TO TOP CSS */

/* START ISMA-UL-HUSNA CSS */
.names-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .name-card {
            background: var(--footer-bg);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
        }
        
        .name-number {
            background: var(--accent-color);
            color: white;
            text-align: center;
            padding: 12px;
            font-size: 1.2rem;
            font-weight: bold;
        }
        
        .name-arabic {
            font-family: 'Amiri', serif;
            font-size: 3.2rem;
            text-align: center;
            padding: 25px 15px;
            background: var(--card-bg);
            color: var(--accent-color);
            line-height: 1.4;
            min-height: 150px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .name-content {
            padding: 20px;
        }
        
        .name-transliteration {
            font-size: 1.4rem;
            color: var(--accent-color);
            margin-bottom: 10px;
            text-align: center;
            font-weight: 600;
        }
        
        .name-meaning {
            color: var(--default-text);
            text-align: center;
            margin-bottom: 15px;
            line-height: 1.5;
        }
        
        .name-benefits {
            color: var(--default-text);
            font-size: 0.9rem;
            margin-top: 15px;
            padding: 15px;
            background: var(--card-bg);
            border-radius: 8px;
            border-left: 3px solid var(--accent-color);
        }
		
		.name-benefits-urdu {
            direction: rtl;
			text-align: right;
			unicode-bidi: embed;
			color: var(--default-text);
            font-size: 0.9rem;
            margin-top: 15px;
            padding: 15px;
            background: var(--card-bg);
            border-radius: 8px;
            border-right: 3px solid var(--accent-color);
			font-family:'Noto Nastaliq Urdu', serif;
        }
        
        .card-actions {
            display: flex;
            justify-content: space-between;
            padding: 0 20px 10px;
            gap: 10px;
        }
        
        .audio-btn, .save-btn, .copy-btn {
            background: var(--accent-color);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            font-weight: 500;
            flex: 1;
        }
        
        .audio-btn {
            position: relative;
            overflow: hidden;
        }
        
        .audio-btn.playing {
            background: linear-gradient(135deg, #27ae60, #219653);
        }
        
        .audio-btn.loading {
            background: linear-gradient(135deg, #f39c12, #e67e22);
        }
        
        .audio-btn.error {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
        }
        
        .progress-container {
            width: 100%;
            height: 3px;
            background: rgba(255, 255, 255, 0.3);
            margin-top: 8px;
            border-radius: 2px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: #ffffff;
            width: 0%;
            transition: width 0.1s linear;
        }
        
        .audio-btn:hover, .save-btn:hover, .copy-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }
        
        .audio-btn:active, .save-btn:active {
            transform: translateY(0);
        }
        
        .copy-section {
            display: flex;
            justify-content: center;
            padding: 0 20px 20px;
            gap: 10px;
        }
        
        @media (max-width: 768px) {
            .names-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .name-arabic {
                font-size: 3rem;
                min-height: 120px;
            }
        }
        
        @media (max-width: 480px) {
            .names-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Animation for copy feedback */
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        
        .copy-feedback {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #27ae60;
            color: white;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            animation: fadeOut 2s ease-in-out 1s forwards;
            z-index: 1000;
            display: none;
        }
/* END ISMA-UL-HUSNA CSS */

.stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
            max-width: 800px;
            margin: 0 auto;
        }
		
		.stats-grid-site {
			display: flex;
			flex-direction: column;
			gap: 1.5rem;
		}

        .stat-card {
            background: var(--card-bg);
            padding: 1.8rem;
            border-radius: 12px;
			color: var(--default-text);
            text-align: center;
            border: 1px solid var(--accent-color);
        }
		
		.stat-card-site {
            background: var(--card-bg);
            padding: .5rem;
            border-radius: 12px;
            border: 1px solid var(--accent-color);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--accent-color);
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--default-text);
            margin-top: 0.3rem;
        }
		
		.notice-template {
            background: var(--card-bg);
			color: var(--default-text);
            padding: 1.5rem;
            border-radius: 8px;
            margin-top: 1rem;
            overflow-x: auto;
        }
/* MOBILE APPS PAGE CSS */
.apps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.8rem;
            max-width: 1100px;
            margin: 0 auto;
        }

        .app-card {
            background: var(--card-bg);
            padding: 1.8rem 1.8rem 2rem;
            border-radius: 16px;
            border: 1px solid var(--accent-color);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
        }

        .app-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.08);
        }

        .app-card.featured {
            border: 2px solid var(--accent-color);
            background: var(--footer-bg);
        }

        .app-badge {
            position: absolute;
            top: -12px;
            right: 20px;
            background: var(--accent-color);
            color: white;
            padding: 0.25rem 1rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .app-features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
            margin: 0.5rem 0 1.2rem;
        }

        .app-features span {
            font-size: 0.8rem;
            background: var(--feature-bg, #e8f0e8);
            color: var(--heading-color, #1a3a2a);
            padding: 0.2rem 0.7rem;
            border-radius: 20px;
            font-weight: 500;
        }
		
		/* Responsive */
        @media (max-width: 768px) {
            .apps-grid {
                grid-template-columns: 1fr;
                gap: 1.2rem;
            }

            .app-card {
                padding: 1.5rem;
            }

            .app-features span {
                font-size: 0.7rem;
                padding: 0.15rem 0.6rem;
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .apps-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
		
		/* HAJJ AND UMRAH CSS */
		/* Quran Section */
        .quran-section {
            margin-bottom: 3rem;
        }

        .verse-card {
            background: var(--footer-bg);
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 1.2rem;
            border-right: 4px solid var(--accent-color);
        }

        .verse-arabic {
            font-family: 'Amiri', serif;
            font-size: 1.3rem;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
            text-align: right;
            direction: rtl;
        }

        .verse-translation {
            font-size: 0.95rem;
            color: var(--default-text);
            line-height: 1.6;
            margin-bottom: 0.3rem;
        }

        .verse-reference {
            font-size: 0.85rem;
            color: var(--accent-color);
            font-weight: 500;
        }

        /* Steps Section */
        .steps-section {
            margin-bottom: 3rem;
        }

        .section-intro {
            text-align: center;
            color: var(--accent-color);
            margin-bottom: 2rem;
        }

        .step-card {
            display: flex;
            gap: 1.2rem;
            background: var(--card-bg);
            padding: 1.5rem 1.8rem;
            border-radius: 12px;
            margin-bottom: 1.2rem;
            border-left: 4px solid var(--accent-color);
            transition: transform 0.3s ease;
			color: var(--default-text);
			box-shadow: var(--shadow);
        }

        .step-number {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            background: var(--accent-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.1rem;
        }

        /* Dua Box */
        .dua-box {
            background: var(--footer-bg);
            padding: 1rem 1.5rem;
            border-radius: 8px;
            margin: 0.8rem 0;
        }

        .dua-arabic {
            font-family: 'Amiri', serif;
            font-size: 1.2rem;
            color: var(--accent-color);
            text-align: right;
            direction: rtl;
            margin-bottom: 0.3rem;
        }

        .dua-transliteration {
            font-size: 0.85rem;
            color: var(--default-text);
            font-style: italic;
        }

        .dua-translation {
            font-size: 0.9rem;
            color: var(--default-text);
        }

        /* Duas Section */
        .duas-section {
            margin-bottom: 3rem;
        }

        .dua-card {
            background: var(--footer-bg);
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 1.2rem;
            border-top: 3px solid var(--accent-color);
        }

        /* Types Section */
        .types-section {
            margin-bottom: 3rem;
        }

        .types-section h2 {
            text-align: center;
        }

        .types-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
        }

        .type-card {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 12px;
            text-align: center;
            border: 1px solid var(--accent-color);
        }

        .type-card p {
            font-size: 0.9rem;
            color: var(--default-text);
            line-height: 1.6;
            margin: 0;
        }

        /* Note Section */
        .note-section {
            max-width: 750px;
            margin: 2rem auto;
            padding: 1.2rem 1.8rem;
            background: var(--hero-bg);
            border-radius: 10px;
            color: var(--default-text);
        }

        .note-section i {
            color: var(--accent-color);
            margin-right: 0.5rem;
        }
		
		/* Responsive */
        @media (max-width: 768px) {
            .step-card {
                flex-direction: column;
                gap: 0.8rem;
                padding: 1.2rem;
            }

            .verse-arabic {
                font-size: 1.1rem;
            }

            .types-grid {
                grid-template-columns: 1fr;
            }

            .dua-arabic {
                font-size: 1rem;
            }

            .dua-box {
                padding: 0.8rem 1rem;
            }
			
			#toolsArticle {
				padding: .5rem;
			}
        }
		
		/* ARTICLE DECORATION */
    .article-grid {
      display: flex;
      flex-wrap: wrap;    
      gap: 1.5rem;         
      width: 100%;
      margin: 0 auto;
      justify-content: center;
    }

    .article-card {
      flex: 1 1 300px;        
      min-width: 260px;    
      padding: 1rem;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      display: flex;
      flex-direction: column;
      justify-content: flex-end; 
      min-height: 400px;         
      position: relative;
      isolation: isolate;     
    }

    .article-card::after {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }

    .article-card > * {
      position: relative;
      z-index: 2;
    }

    /* ------ distinct background images ------ */
    .card-1 {
      background-image: url(images/ghusal.png);
    }

    .card-2 {
      background-image: url('https://images.unsplash.com/photo-1470071459604-7b9ec44d7fa0?w=800&q=80&auto=format&fit=crop');
    }

    /* ----- responsive: tablets & small screens (stack) ----- */
    @media screen and (max-width: 768px) {
      .article-grid {
        flex-direction: column;  
        align-items: center;
        gap: 2rem;
        max-width: 560px;      
      }

      .article-card {
        flex: 0 0 auto;         
        width: 100%;
        min-height: 300px;    
        padding: 2rem 1.5rem;
      }
    }

    /* extra small devices (optional fine-tune) */
    @media screen and (max-width: 480px) {
      .article-card {
        min-height: 260px;
        padding: 1.6rem 1.2rem;
        border-radius: 1.4rem;
      }
    }
	
	/* top Styling */
        .top {
            text-align: center;
            padding: 20px;
			background: var(--hero-bg);
			box-shadow: var(--shadow);
        }

        .top h1 {
            font-family: 'Amiri', serif;
            font-size: 2rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }
		
		/* START QUIZ STYLE AND CSS FILE */
		.quiz-container {
            background-color: var(--card-bg);
			margin: 0 auto;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 1000px;
            padding: 20px;
            transition: all 0.3s ease;
        }

        .quiz-header {
            margin-bottom: 20px;
        }

        .progress-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .time-left, .current-score {
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: bold;
            color: var(--accent-color);
        }

        .time-left.warning {
            color: #ff5722;
        }

        .time-left.critical {
            color: #f44336;
            animation: pulse 1s infinite;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .progress-bar-container {
            width: 100%;
            height: 10px;
            background-color: #e0e0e0;
            border-radius: 5px;
            margin-bottom: 20px;
        }

        .progress-bar {
            height: 100%;
            border-radius: 5px;
            background-color: #4CAF50;
            width: 0%;
            transition: width 0.3s ease;
        }
		
		.progress-container {
            width: 100%;
            margin: 20px 0;
            height: 20px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #4CAF50, #8BC34A);
            border-radius: 10px;
            transition: width 1s ease-in-out;
            position: relative;
            overflow: hidden;
        }

        .progress-bar::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, 
                            rgba(255,255,255,0.1) 0%, 
                            rgba(255,255,255,0.3) 50%, 
                            rgba(255,255,255,0.1) 100%);
            animation: shine 2s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .badges {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .badge {
            width: 60px;
            height: 60px;
            background-color: var(--card-bg);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            font-size: 24px;
        }

        .restart-btn {
            margin-top: 30px;
            background-color: #4a6baf;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .restart-btn:hover {
            background-color: #3a5a9f;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }

        .restart-btn:active {
            transform: translateY(1px);
        }

        .celebration {
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: #f00;
            border-radius: 50%;
            pointer-events: none;
            animation: fly 3s linear forwards;
        }

        @keyframes fly {
            0% {
                transform: translate(0, 0) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translate(var(--tx), var(--ty)) rotate(720deg);
                opacity: 0;
            }
        }

        .question-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 20px;
        }

        .question-tab {
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f0f0f0;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: bold;
        }

        .question-tab:hover {
            background-color: #e0e0e0;
        }

        .question-tab.current {
            background-color: var(--accent-color);
            color: white;
        }

        .question-tab.answered {
            background-color: #8BC34A;
            color: white;
        }

        .question-tab.unanswered {
            background-color: var(--footer-bg);
        }

        .options {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 30px;
        }

        .option {
            padding: 15px;
            border: 1px solid var(--accent-color);
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.2s ease;
            background-color: var(--footer-bg);
        }

        .option:hover {
            background-color: var(--card-bg);
        }

        .option.selected {
            background-color: #d4edda;
            border-color: #c3e6cb;
        }

        .option.correct {
            background-color: #d4edda;
            border-color: #c3e6cb;
        }

        .option.incorrect {
            background-color: #f8d7da;
            border-color: #f5c6cb;
        }

        .button-group {
            display: flex;
            gap: 10px;
        }

        button {
            background-color: var(--accent-color);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
            flex: 1;
        }

        button:hover {
            box-shadow: var(--shadow);
        }

        button:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }

        button.secondary {
            background-color: #2196F3;
        }

        button.secondary:hover {
            background-color: #0b7dda;
        }

        button.danger {
            background-color: #f44336;
        }

        button.danger:hover {
            background-color: #d32f2f;
        }

        .result-container {
            text-align: center;
            background: var(--result-bg);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }
		
		.result-container::before {
            content: "";
            position: absolute;
            top: -50px;
            right: -50px;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
            border-radius: 50%;
        }

        .score {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 20px;
			padding: 6px;
			border: 3px solid green;
			border-radius: 20px;
			box-shadow: 1px 0px 2px 0px;
        }
		
		.score-display {
            position: relative;
            margin: 30px auto;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: var(--card-bg);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            animation: pulse 2s infinite alternate;
        }
		
		@keyframes pulse {
            0% { transform: scale(1); }
            100% { transform: scale(1.05); }
        }
		
		.score-display::before {
            content: "";
            position: absolute;
            inset: -10px;
            border-radius: 50%;
            border: 5px dashed var(--accent-color);
            animation: rotate 20s linear infinite;
            z-index: -1;
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .score-percentage {
            font-size: 48px;
            font-weight: bold;
            color: var(--accent-color);
            margin-bottom: 5px;
        }

        .score-fraction {
            font-size: 20px;
            color: var(--accent-color);
        }

        .score-message {
            font-size: 24px;
            margin: 20px 0;
            padding: 10px 20px;
            border-radius: 50px;
            display: inline-block;
        }

        .excellent {
            background-color: #4CAF50;
            color: white;
            animation: confetti 3s ease-in-out;
        }

        .good {
            background-color: #2196F3;
            color: white;
        }

        .average {
            background-color: #FFC107;
            color: #333;
        }

        .poor {
            background-color: #f44336;
            color: white;
        }

        @keyframes confetti {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .stars {
            margin: 20px 0;
            font-size: 30px;
            color: gold;
            text-shadow: 0 0 5px rgba(0,0,0,0.3);
        }


        .current-status {
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
			border: 2px solid var(--accent-color);
            text-align: center;
        }

        .current-status p {
            margin: 5px 0;
            font-size: 16px;
        }

        .current-status .highlight {
            font-weight: bold;
            color: #4CAF50;
        }

        @media (max-width: 600px) {
            .quiz-container {
                padding: 15px;
            }

            h2 {
                font-size: 20px;
            }

            .option {
                padding: 12px;
            }

            .question-tab {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }

            .score-display {
                width: 150px;
                height: 150px;
            }
            .score-percentage {
                font-size: 36px;
            }
            .score-fraction {
                font-size: 16px;
            }
            .score-message {
                font-size: 20px;
            }
        }
	
	/* END QUIZ STYLE AND CSS FILE */
	/* Breadcrumb Navigation */
.breadcrumb {
    max-width: 900px;
    margin: 5px auto;
    padding: 0px 20px;
    background: var(--card-bg);
    border-radius: 8px;
	box-shadow: var(--shadow);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
	font-family: var(--font-heading);
    padding: 0;
    margin: 0;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #a0aec0;
    font-size: 1.2rem;
}

.breadcrumb-item.active {
    color: #5a67d8;
    font-weight: 500;
}

@media (max-width: 600px) {
    .breadcrumb {
        margin: 10px;
        padding: 8px 15px;
    }
    .breadcrumb-item {
        font-size: 0.8rem;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease;
}

.notification-warning {
    background: #ed8936;
    color: white;
}

.notification-info {
    background: #4299e1;
    color: white;
}

.notification-success {
    background: #48bb78;
    color: white;
}

/* Question header */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.question-number {
    font-weight: 600;
    color: #4a5568;
}

.question-category {
    background: #edf2f7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4a5568;
}

/* Option labels */
.option-label {
    font-weight: 700;
    color: #4a5568;
    margin-right: 10px;
    min-width: 20px;
}

/* Status grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 5px 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    background: #f7fafc;
    border-radius: 4px;
}

.status-label {
    color: #718096;
    font-size: 0.9rem;
}

.status-value {
    font-weight: 600;
    color: #2d3748;
}

.wrong-attempts {
    color: #e53e3e;
    font-weight: 500;
    margin-top: 8px;
}

/* Keyboard shortcut hint */
.keyboard-hint {
    text-align: center;
    color: #a0aec0;
    font-size: 0.8rem;
    margin-top: 10px;
    padding: 5px;
    background: #f7fafc;
    border-radius: 4px;
}

/* Error container */
.error-container {
    text-align: center;
    padding: 40px 20px;
}

.error-container h2 {
    color: #e53e3e;
    margin-bottom: 15px;
}

.error-container p {
    color: #4a5568;
    margin-bottom: 20px;
}

/* Responsive improvements */
@media (max-width: 600px) {
    .status-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .option-label {
        min-width: 16px;
        font-size: 0.9rem;
    }
}
 /* START SURAH NAVIGATION BUTTONS CSS*/
.surah-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            margin-top: 40px;
            flex-wrap: wrap;
        }

        /* Navigation Buttons */
        .nav-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px 28px;
            border-radius: 15px;
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: var(--shadow);
            border: 2px solid var(--accent-color);
			color: var(--accent-color);
            flex: 1;
            max-width: 280px;
            min-width: 150px;
            position: relative;
            overflow: hidden;
        }

        .nav-btn:hover {
            border: 2px solid var(--accent-color);
			background: transparent;
			color: var(--accent-color);
			transform: translateY(-5px);
        }

        .nav-btn i {
            margin: 0 12px;
            font-size: 1.4rem;
        }

        .prev-btn i {
            order: -1;
        }

        .next-btn i {
            order: 1;
        }
		
		/* START ARTICLE CSS */
		/* Quote / Verse Box */
        .verse-box {
            background: #f4f0e8;
            border-right: 6px solid #2a6a3a;
            padding: 18px 22px;
            margin: 22px 0;
            border-radius: 6px;
            font-style: italic;
            font-size: 18px;
            color: #1a3a22;
        }
        .verse-box .ref {
            font-style: normal;
            font-size: 14px;
            color: #6a5a4a;
            margin-top: 6px;
            display: block;
        }

        /* Lists */
        ul, ol {
            font-size: 17px;
            color: #2d2418;
        }
        ul li, ol li {
            margin-bottom: 8px;
        }

        /* Highlight Boxes */
        .info-box {
            background: #eaf4ea;
            border-left: 6px solid #2a7a3a;
            padding: 18px 22px;
            margin: 22px 0;
            border-radius: 6px;
        }
        .info-box strong {
            color: #1a4a2a;
        }

        .note-box {
            background: #fdf6ec;
            border-left: 6px solid #c9a04a;
            padding: 18px 22px;
            margin: 22px 0;
            border-radius: 6px;
        }
        .note-box strong {
            color: #8a6a2a;
        }

        .warning-box {
            background: #fdf0ec;
            border-left: 6px solid #c94a3a;
            padding: 18px 22px;
            margin: 22px 0;
            border-radius: 6px;
        }
        .warning-box strong {
            color: #8a2a2a;
        }

        /* Table */
        .fardh-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0 25px;
            font-size: 17px;
            background: #f9f5ef;
            border-radius: 8px;
            overflow: hidden;
        }
        .fardh-table th {
            background: #1a3a2a;
            color: #ffffff;
            padding: 14px 18px;
            text-align: left;
            font-weight: 600;
        }
        .fardh-table td {
            padding: 14px 18px;
            border-bottom: 1px solid #e0d6c8;
        }
        .fardh-table tr:last-child td {
            border-bottom: none;
        }
        .fardh-table tr:nth-child(even) {
            background: #f4efe8;
        }

        /* Steps */
        .step-number {
            display: inline-block;
            background: #1a3a2a;
            color: #fff;
            font-weight: 700;
            width: 30px;
            height: 30px;
            text-align: center;
            line-height: 30px;
            border-radius: 50%;
            margin-right: 10px;
            font-size: 14px;
        }

        .step-list {
            list-style: none;
            margin: 12px 0 20px 0;
            padding: 0;
        }
        .step-list li {
            padding: 12px 16px;
            margin-bottom: 10px;
            background: #f9f5ef;
            border-radius: 8px;
            border-left: 4px solid #2a6a3a;
            font-size: 17px;
        }
        .step-list li strong {
            color: #1a4a2a;
        }

        /* Two Column Layout for Male/Female */
        .gender-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin: 20px 0;
        }
        .gender-box {
            background: #f9f5ef;
            padding: 20px 24px;
            border-radius: 10px;
            border-top: 4px solid #2a6a3a;
        }
        .gender-box.male {
            border-top-color: #2a5a7a;
        }
        .gender-box.female {
            border-top-color: #8a4a6a;
        }
        .gender-box h3 {
            margin-top: 0;
        }

        /* Dua Box */
        .dua-box {
            background: #eaf0e8;
            border: 2px solid #2a6a3a;
            border-radius: 12px;
            padding: 25px 30px;
            margin: 25px 0;
            text-align: center;
        }
        .dua-box .arabic {
            font-size: 28px;
            font-weight: 600;
            color: #1a3a22;
            line-height: 2;
            font-family: 'Amiri', 'Scheherazade', serif;
        }
        .dua-box .translation {
            font-size: 18px;
            color: #3d2e1e;
            margin-top: 12px;
        }

        /* Related Links */
        .related-links {
            background: #f4f0e8;
            padding: 20px 25px;
            border-radius: 10px;
            margin: 30px 0;
        }
        .related-links a:hover {
            text-decoration: underline;
        }

        /* Share Section */
        .share-section {
            background: #1a3a2a;
            color: #fff;
            padding: 25px 30px;
            border-radius: 10px;
            margin: 35px 0 0;
            text-align: center;
        }
        /* FAQ Section */
        .faq-item {
            background: #f9f5ef;
            padding: 16px 22px;
            margin-bottom: 14px;
            border-radius: 8px;
            border-left: 4px solid #2a6a3a;
        }
        /* Responsive */
        @media (max-width: 768px) {
            .gender-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            .dua-box .arabic {
                font-size: 22px;
            }
            .fardh-table {
                font-size: 15px;
            }
            .fardh-table th,
            .fardh-table td {
                padding: 10px 12px;
            }
            ul, ol {
                margin-left: 20px;
                font-size: 16px;
            }
            .step-list li {
                font-size: 15px;
                padding: 10px 14px;
            }
        }

        @media (max-width: 480px) {
            .verse-box {
                font-size: 16px;
                padding: 14px 16px;
            }
        }
		
		/* Table */
        .wuzu-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0 25px;
            font-size: 17px;
            background: #f9f5ef;
            border-radius: 8px;
            overflow: hidden;
        }
        .wuzu-table th {
            background: #1a3a2a;
            color: #ffffff;
            padding: 14px 18px;
            text-align: left;
            font-weight: 600;
        }
        .wuzu-table td {
            padding: 14px 18px;
            border-bottom: 1px solid #e0d6c8;
        }
        .wuzu-table tr:last-child td {
            border-bottom: none;
        }
        .wuzu-table tr:nth-child(even) {
            background: #f4efe8;
        }
		
		/* END ARTICLE CSS */
		
		.country-heading {
			list-style: none;
			font-weight: bold;
			font-size: 1.1em;
			margin-top: 10px;
			padding: 5px 0;
			border-bottom: 1px solid var(--accent-color);
			cursor: default;
			color: var(--accent-color);
		}
		
		/* START SEARCH SECTION CSS */
		.search-wrapper {
    background: var(--card-bg);
    max-width: 620px;
	margin: 0 auto;
	margin-bottom: 20px;
    width: 100%;
    padding: .5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ===== Branding ===== */
.brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: .5rem;
    border-bottom: 2px dashed #d4c9bc;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand p {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--accent-color);
}

.brand p span {
    font-weight: 600;
    background: var(--accent-color);
    color: white;
    padding: 0.1rem 0.7rem;
    border-radius: 60px;
    font-size: 1rem;
    margin-left: 6px;
    letter-spacing: 0.3px;
}

.brand .domain {
    font-size: 0.8rem;
    background: var(--footer-bg);
    padding: 0.2rem 1rem;
    border-radius: 30px;
    color: var(--default-text);
    font-weight: 500;
}

.brand-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-toggle {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    border: 1px solid var(--footer-bg);
}
/* ===== Search Container ===== */
.search-container {
    position: relative;
    width: 100%;
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--footer-bg);
    border-radius: 80px;
    padding: 0.1rem 0.1rem 0.1rem 1.5rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.input-group:focus-within {
    background: var(--card-bg);
    border-color: var(--accent-color);
    box-shadow: 0 8px 18px -8px rgba(60, 50, 40, 0.12);
}

.input-group svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-color);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    margin-right: 8px;
    opacity: 0.7;
}

#searchInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent-color);
    outline: none;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.2px;
}

#searchInput::placeholder {
    color: var(--default-text);
    font-weight: 300;
    letter-spacing: 0.2px;
    font-size: 1rem;
}

.input-group button {
    background: var(--accent-color);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    border-radius: 60px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.15s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    border: 1px solid #2d3a4b;
    box-shadow: 0 4px 8px -4px rgba(0, 0, 0, 0.2);
    margin-left: 0.3rem;
}

.input-group button:hover {
    background: #2f4057;
    transform: scale(0.97);
}

.input-group button:active {
    transform: scale(0.94);
}

/* ===== Dropdown ===== */
.keyword-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 40px -12px rgba(20, 20, 20, 0.25), 0 6px 14px -6px rgba(0, 0, 0, 0.08);
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem 0.3rem;
    z-index: 100;
    border: 1px solid #e6ddd2;
    transition: opacity 0.18s ease, transform 0.15s ease;
    opacity: 0;
    transform: scaleY(0.92) translateY(-6px);
    transform-origin: top center;
    pointer-events: none;
    visibility: hidden;
}

.keyword-dropdown.active {
    opacity: 1;
    transform: scaleY(1) translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* ===== Keyword Items ===== */
.keyword-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.4rem;
    margin: 0.1rem 0.2rem;
    border-radius: 60px;
    background: transparent;
    transition: background 0.12s ease, padding-left 0.1s;
    border: 1px solid transparent;
    text-decoration: none;
    color: #1e2a38;
    cursor: pointer;
    font-weight: 480;
    font-size: 1rem;
    gap: 0.6rem;
}

.keyword-item:hover {
    background: #f0ebe4;
    border-color: #d5cbbc;
    padding-left: 1.9rem;
}

.keyword-item:active {
    background: #dacfc2;
}

.keyword-item::before {
    content: "🕌";
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.1s;
    margin-right: 0.3rem;
}

.keyword-item:hover::before {
    opacity: 0.9;
}

.keyword-item .kw-text {
    font-weight: 500;
}

.keyword-item .kw-sub {
    font-size: 0.7rem;
    color: #7b6e5e;
    background: #eae3db;
    padding: 0.15rem 0.7rem;
    border-radius: 30px;
    margin-left: auto;
    white-space: nowrap;
}

.keyword-item .kw-url {
    display: none;
}

.keyword-item .kw-city {
    font-size: 0.75rem;
    color: #5a6a7a;
    background: #eef0f2;
    padding: 0.15rem 0.8rem;
    border-radius: 30px;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.keyword-item .kw-prayer-icon {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-right: 0.3rem;
}

/* ===== No Results ===== */
.no-result {
    justify-content: center;
    opacity: 0.6;
    cursor: default;
    font-size: 0.9rem;
    padding: 0.8rem;
}

.no-result::before {
    content: "🔎";
    opacity: 0.5;
    margin-right: 0.4rem;
}

/* ===== Scrollbar ===== */
.keyword-dropdown::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.keyword-dropdown::-webkit-scrollbar-thumb {
    background: #cbbcb0;
    border-radius: 20px;
}

.keyword-dropdown::-webkit-scrollbar-track {
    background: #f2ede7;
    border-radius: 20px;
}

/* ===== Arabic Support ===== */
[dir="rtl"] {
    font-family: 'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
}

[dir="rtl"] .keyword-item::before {
    margin-right: 0;
    margin-left: 0.3rem;
}

[dir="rtl"] .keyword-item .kw-sub {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .keyword-item .kw-city {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .search-wrapper {
        padding: .5rem;
    }

    .input-group {
        padding-left: 1rem;
    }

    #searchInput {
        font-size: 0.95rem;
        padding: 0.8rem 0.2rem;
    }

    .input-group button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .brand p {
        font-size: .8rem;
    }

    .brand {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-controls {
        justify-content: flex-end;
    }

    .keyword-item {
        flex-wrap: wrap;
    }

    .keyword-item .kw-city {
        font-size: 0.65rem;
    }
}
		/* END SEARCH SECTION CSS */
		
		/* Ensure loader doesn't block content on back navigation */


