@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: #f5f5f5;
            --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;
			/* Tasbih colors */
			--bead-normal: #a70000;
			--tasbih-bg: #c8e6c99e;
			
			--pattern-header:
                url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><path d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23c9a961' stroke-width='1' opacity='0.12'/><circle cx='40' cy='40' r='12' fill='none' stroke='%23c9a961' stroke-width='1' opacity='0.12'/></svg>");
			--pattern-header-effect: linear-gradient(180deg, #f0f7ff 0%, #555956 100%);
			
			--pattern-footer:
                url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><path d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23c9a961' stroke-width='1' opacity='0.15'/><circle cx='30' cy='30' r='10' fill='none' stroke='%23c9a961' stroke-width='1' opacity='0.15'/></svg>");
			--pattern-footer-effect: linear-gradient(180deg, #f0f7ff 0%, #555956 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);
			/* Tasbih colors */
			--bead-normal: #FFD700;
			--tasbih-bg: #1717164a;
			
			--pattern-header:
                url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><path d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23c9a961' stroke-width='1' opacity='0.18'/><circle cx='40' cy='40' r='12' fill='none' stroke='%23c9a961' stroke-width='1' opacity='0.18'/></svg>");
			--pattern-header-effect: linear-gradient(180deg, #0d3b4f 0%, #092b3a 100%);
			
			--pattern-footer:
                url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><path d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23c9a961' stroke-width='1' opacity='0.15'/><circle cx='30' cy='30' r='10' fill='none' stroke='%23c9a961' stroke-width='1' opacity='0.15'/></svg>");
			--pattern-footer-effect: linear-gradient(180deg, #0d3b4f 0%, #092b3a 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;
		}
		/* START DROPDOWN MENUS RESPONSIVE CSS CODES */
        /* 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);
        }
		/* END DROPDOWN MENUS RESPONSIVE CSS CODES */
		

        /* START HEADER CSS CODES */
        .site-header {
            background-image: var(--pattern-header), var(--pattern-header-effect);
            background-size: 80px 80px, cover;
            background-position: top left, center;
            background-repeat: repeat, no-repeat;
            
            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;
        }

        /* 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;
        }

        /* 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 HEADER CSS CODES */
		
		/* START MAIN PAGE CSS */
		.main-content {
			max-width: 1200px;
			margin: 2rem auto;
			background: var(--header-bg);
			padding: 1rem;
		}
		
		.wrap {
		    background: var(--footer-bg);
		}
		/* 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 h2 {
			font-size: 2.5rem;
			margin-bottom: 1rem;
			color: var(--accent-color);
		}

		.hero p {
			font-size: 1.2rem;
			max-width: 700px;
			margin: 0 auto;
		}
		
		.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(--default-text);
			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 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 {
                margin-top: 3rem;
                border-radius: 8px;
				padding: 2rem;
				background: var(--header-bg);
            }
            #toolsArticle h1 {
                color: var(--accent-color);
                margin-bottom: 1rem;
                font-size: 2.2rem;
            }
			
			#toolsArticle h2 {
                color: var(--accent-color);
                margin-bottom: 1rem;
                text-align: center;
                font-size: 2rem;
            }
            #toolsArticle h3 {
                color: var(--accent-color);
                opacity: 0.9;
                margin-top: 1.5rem;
                margin-bottom: 0.5rem;
                border-bottom: 1px solid var(--header-background);
                padding-bottom: 0.3rem;
            }
            #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;}
		/* END ARTICLE CSS*/
		
		/* START FOOTER CSS */
		footer {
            background-image: var(--pattern-footer), var(--pattern-footer-effect);
            background-size: 60px 60px, cover;
            background-repeat: repeat, no-repeat;
            
            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;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1.25rem;
    }		
}

@media (max-width: 600px) {
    .calculator-body {
		padding: 15px;
		gap: 5px;
	}
	
	.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;
    }
    
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    h4 {
        font-size: 1.2rem;
    }		
}

@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;
	}
    
    h1 {
        font-size: 1.7rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    h4 {
        font-size: 1rem;
    }
	.toggle-label {
		font-size: 1.2rem;
	}
	
}
		
		/* START TABLE STYLE CSS */
		.table-container {
			overflow-x: auto;
			margin-top: 3px;
		}
		
		.comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 30px 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            overflow: hidden;
        }
        
        .comparison-table th {
            background: var(--accent-color);
            color: white;
            padding: 15px;
            text-align: left;
        }
        
        .comparison-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #ddd;
        }
        
        .key-button {
            display: inline-block;
            padding: 8px 15px;
            background: #34495e;
            color: white;
            border-radius: 5px;
            font-weight: bold;
            min-width: 50px;
            text-align: center;
        }
        
        .key-func {
            background: #2e7d32;
        }
        
        .key-op {
            background: #e65100;
        }
        
        .key-num {
            background: #0d47a1;
        }
        
        .key-mem {
            background: #bb1818;
        }
		
		@media (max-width: 480px) {
				.comparison-table th {
					padding: 2px;
				}
				
				.comparison-table td {
					padding: 2px;
				}
			}
			
		@media (max-width: 320px) {
				.comparison-table th {
					padding: 0px;
					font-size: .8rem;
				}
				
				.comparison-table td {
					padding: 0px;
					font-size: .8rem;
				}
			}	
		
		/* END TABLE STYLE CSS */
		
		/* 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 */
/* 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;
    }
}

/* 	HIJRI CALENDAR TEST START */
/* ---------- Date strip ---------- */
  .date-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  .date-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    text-align: center;
  }
  .date-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .date-card .value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
  }

  /* ---------- Clock ---------- */
  .clock-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .clock {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px 18px;
    font-variant-numeric: tabular-nums;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
  }
  .clock .sec { color: var(--accent); }
  select#countrySelect {
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 0.95rem;
    cursor: pointer;
  }

  /* ---------- Calendar ---------- */
  .calendar {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 20px;
  }
  .cal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
  }
  .cal-head h2 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    text-align: center;
    flex: 1;
  }
  .nav-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
  }
  .nav-btn:hover { background: var(--primary-dark); }

  .weekdays, .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
  }
  .weekdays div {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 0;
  }
  .days-grid > div {
    position: relative;
    min-height: 62px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fafbfc;
    padding: 6px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .days-grid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .days-grid > div.empty {
    background: transparent;
    border: none;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
  }
  .days-grid > div.empty:hover { transform: none; box-shadow: none; }

  .gregorian-day {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
  }
  .hijri-day {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: right;
  }

  .days-grid > div.current-day {
    background: var(--today);
    border-color: var(--primary);
  }
  .days-grid > div.selected-day {
    background: var(--selected);
    border-color: var(--primary-dark);
  }
  .days-grid > div.selected-day .gregorian-day,
  .days-grid > div.selected-day .hijri-day {
    color: #fff;
  }
  .days-grid > div.has-event {
    box-shadow: inset 0 0 0 2px var(--accent);
  }
  .event-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
  }

  /* ---------- Detail panel ---------- */
  .panel {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 20px;
  }
  .panel h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
  }
  .panel .date-line {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 14px;
  }
  .panel .date-line strong { color: var(--text); }

  .event-list { display: grid; gap: 10px; margin-bottom: 4px; }
  .event-item {
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fffdf7;
  }
  .event-item .ev-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 2px;
  }
  .event-item .ev-desc {
    font-size: 0.85rem;
    color: var(--muted);
  }
  .no-events {
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
  }

  /* ---------- FAQ ---------- */
  .faq {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 20px;
  }
  .faq h2 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--today);
  }
  .faq-item {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .faq-item:last-child { border-bottom: none; padding-bottom: 0; }
  .faq-q {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  .faq-q .marker {
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s;
  }
  .faq-item.open .faq-q .marker { transform: rotate(45deg); }
  .faq-a {
    font-size: 0.9rem;
    color: var(--muted);
    display: none;
    padding-left: 4px;
    line-height: 1.6;
  }
  .faq-item.open .faq-a { display: block; }
  .faq-a strong { color: var(--primary-dark); }

  /* ---------- Modal ---------- */
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
  }
  .modal-backdrop.open { display: flex; }
  .modal {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    max-width: 480px;
    width: 100%;
    padding: 20px;
    animation: pop 0.18s ease-out;
  }
  @keyframes pop {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  .modal h3 {
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-size: 1.1rem;
  }
  .modal .m-date {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
  }
  .modal .event-item { margin-bottom: 10px; }
  .modal .actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
  }
  .modal .actions button {
    padding: 9px 16px;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
  }
  .btn-primary { background: var(--primary); color: #fff; }
  .btn-primary:hover { background: var(--primary-dark); }
  .btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border) !important;
  }
  .btn-ghost:hover { background: #f3f4f6; }

  /* ---------- Responsive ---------- */
  @media (max-width: 640px) {
    .date-strip { grid-template-columns: 1fr; }
    .days-grid > div { min-height: 54px; }
    .gregorian-day { font-size: 0.85rem; }
    .hijri-day { font-size: 0.65rem; }
    .cal-head h2 { font-size: 0.95rem; }
  }

/* END HIJRI CALENDAR TEST */  

/* START EEVENTS SECTION OF HIJRI CALENDAR */
		/* Stats Bar */
        .stats-bar {
            display: none;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }

        .stat-card {
            background: transparent;
            backdrop-filter: blur(10px);
            padding: 0.8rem 1.5rem;
            border-radius: 40px;
            color: var(--accent-color);
            text-align: center;
			border: 2px solid var(--accent-color);
        }

        .stat-card span:first-child {
            font-weight: bold;
            color: var(--accent-color);
        }

        /* Grid Layout - Responsive */
        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
        }

        /* Event Card */
        .event-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
            backdrop-filter: blur(12px);
            border-radius: 20px;
            padding: 1rem;
            transition: all 0.3s ease;
            border: 2px solid var(--accent-color);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .event-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            transition: left 0.5s ease;
        }

        .event-card:hover::before {
            left: 100%;
        }

        .event-card:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.08) 100%);
            box-shadow: 0 15px 35px rgba(0,0,0,0.3);
        }

        /* Row Layout Inside Card */
        .event-row {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }
		
		.event-set {
			display: flex;
			gap: 5px;
		}

        /* Moon Icon */
        .event-icon {
            flex-shrink: 0;
            width: 55px;
            height: 55px;
            background: linear-gradient(135deg, #2d5f3e 0%, #1a3a2a 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: #ffd700;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            transition: transform 0.3s ease;
        }

        .event-card:hover .event-icon {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(255,215,0,0.3);
        }

        /* Event Info */
        .event-info {
            flex: 1;
            min-width: 180px;
        }

        /* Hijri Date */
        .hijri-date-event {
            display: inline-block;
            background: rgba(255,215,0,0.2);
            padding: 0.2rem 0.8rem;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: bold;
            color: var(--accent-color);
            letter-spacing: 0.5px;
        }

        /* Event Badge */
        .event-badge {
            flex-shrink: 0;
            background: rgba(255,215,0,0.15);
            border: 1px solid rgba(255,215,0,0.3);
            border-radius: 50px;
            padding: 0.3rem 0.8rem;
            font-size: 0.7rem;
            font-weight: bold;
            color: #ffd700;
            white-space: nowrap;
        }

        /* Loading State */
        .loading {
            text-align: center;
            color: white;
            padding: 3rem;
            font-size: 1.2rem;
        }

        .loading i {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* No Results */
        .no-results {
            text-align: center;
            color: white;
            padding: 3rem;
            background: rgba(0,0,0,0.3);
            border-radius: 20px;
        }

        /* Filter Section */
        .filter-section {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 2rem;
        }

        .filter-btn {
            background: transparent;
            border: 1px solid var(--accent-color);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            color: var(--accent-color);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--accent-color);
            color: white;
            border-color: #ffd700;
        }

        /* Responsive Breakpoints */
        @media screen and (max-width: 768px) {
            .events-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .event-row {
                flex-direction: column;
                text-align: center;
            }

            .event-info {
                text-align: center;
            }

            .event-badge {
                white-space: normal;
                text-align: center;
            }

            .stats-bar {
                gap: 1rem;
            }

            .stat-card {
                padding: 0.5rem 1rem;
                font-size: 0.8rem;
            }
        }

        @media screen and (min-width: 769px) and (max-width: 1024px) {
            .events-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media screen and (min-width: 1025px) {
            .events-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media screen and (min-width: 1400px) {
            .events-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #1a3a2a;
        }

        ::-webkit-scrollbar-thumb {
            background: #ffd700;
            border-radius: 4px;
        }
		/* END EVENTS SECTION OF HIJRI CALENDAR */