@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;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;
			--minute-hand: #555;
			--font-arabic: 'Cairo', 'Noto Sans Arabic', 'Tajawal', 'Amiri', sans-serif;
        }

        [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);
			--minute-hand: #918383;
        }

		/* 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;
        }
		
		p {
			color: var(--default-text);
		}
		
		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;
		}
		
		/* START FONT SETTINGS */

        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-heading);
			display: swap;
        }
		
		h1, h2, h3 {
            color: var(--accent-color);
        }
		
		h4, h5, h6 {
			color: var(--default-text);
		}

        h1 {
            font-size: 2.8rem;
            text-align: center;
        }

        h2 {
            font-size: 2.4rem;
			margin-bottom: 1rem;
        }

        h3 {
            font-size: 2rem;
        }
		h4 {
			font-size: 1.6rem;
		}
		
		@media (max-width: 992px) {
			h1 {
				font-size: 2.2rem;
			}
			h2 {
				font-size: 1.8rem;
			}
			h3 {
				font-size: 1.5rem;
			}
			h4 {
				font-size: 1.25rem;
			}
		}
		
		@media (max-width: 768px) {
			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: 480px) {
			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;
			}
			
		}
		
		@media (max-width: 400px) {
			h1 {
				font-size: 1.5rem;
			}
			h2 {
				font-size: 1.2rem;
			}
			h3 {
				font-size: 1rem;
			}
			h4 {
				font-size: 0.9rem;
			}
			.toggle-label {
				font-size: 1.2rem;
			}
			
		}
		/* END FONT SETTINGS */
/* Page Load Animation - Theme Compatible */
.flag {
    width: 50px;
    height: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    }

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo-container {
    text-align: center;
    padding: 30px;
    max-width: 90%;
}

.loader-logo-link {
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.loader-logo {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #daa520 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.loader-logo:before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: repeating-linear-gradient( 
        45deg, 
        var(--accent-color),
        rgba(255, 215, 0, 0.3) 10px,
        transparent 10px,
        transparent 20px 
    );
    animation: rotate 20s linear infinite;
}

.loader-logo-inner {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background: var(--card-bg);
}

.loader-calculator-icon {
    width: 70%;
    height: 70%;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1%;
    justify-content: center;
    align-items: center;
}

.loader-calculator-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: brightness(0.8);
}

.loader-logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.loader-royal-text {
    font-family: 'Times New Roman', Times, serif;
	font-display: swap;
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 
        2px 2px 0 var(--default-text),
        -1px -1px 0 var(--default-text), 
        1px -1px 0 var(--default-text), 
        -1px 1px 0 var(--default-text);
    letter-spacing: 2px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loader-royal-text-arabic {
    font-family: 'Noto Naskh Arabic', 'Traditional Arabic', 'Amiri', sans-serif;
    direction: rtl;
    text-align: right;
	font-display: swap;
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 
        2px 2px 0 var(--default-text),
        -1px -1px 0 var(--default-text), 
        1px -1px 0 var(--default-text), 
        -1px 1px 0 var(--default-text);
    letter-spacing: 2px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

[data-theme="dark"] .loader-logo {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

[data-theme="dark"] .loader-royal-text {
    text-shadow: 
        2px 2px 0 #000000,
        -1px -1px 0 #000000, 
        1px -1px 0 #000000, 
        -1px 1px 0 #000000;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes textGlow {
    from {
        text-shadow: 
            2px 2px 0 var(--default-text),
            -1px -1px 0 var(--default-text), 
            1px -1px 0 var(--default-text), 
            -1px 1px 0 var(--default-text);
    }
    to {
        text-shadow: 
            0 0 10px var(--accent-color),
            0 0 20px var(--accent-color),
            2px 2px 0 var(--default-text);
    }
}

/* end loader style */

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    cursor: pointer;
}

.theme-toggle 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;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--accent-color);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #ff9800;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 1.2rem;
}

/* Sun and Moon Icons */
.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;
        }

/* Search Box */
.search-container {
    max-width: 600px;
    margin: .2rem auto;
    padding: .7rem;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.search-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: var(--accent-shadow);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--default-text);
    padding: 0.5rem;
    font-family: var(--font-body);
	font-display: swap;
}

.search-box input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Dropdown menu styling */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
	display: flex;
	align-items: center;
}

.dropdown-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 1000;
    overflow: hidden;
	border-bottom: 4px solid var(--accent-color);
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    color: var(--default-text);
    text-decoration: none;
	transition: all 0.3s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--accent-color);
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
}

.png-icon {
	width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}

.png-icon-small {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    object-fit: contain;
}

.head {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* End Dropdown menu styling */

/* header style */

.main-header {
    background-color: var(--header-bg);
    padding: 0 15px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    font-family: var(--font-heading);
	font-display: swap;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
	max-width: 1200px;
    margin: 0 auto;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
}

.logo h2 {
    color: var(--accent-color);
    font-family: var(--font-heading);
	font-display: swap;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    color: var(--default-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-heading);
	font-display: swap;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-color);
    background-color: rgba(52, 152, 219, 0.1);
}

[data-theme="dark"] .main-nav a:hover, [data-theme="dark"] .main-nav a.active {
    background-color: rgba(255, 215, 0, 0.1);
}

.main-content {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem;
}

.main-content-arabic {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem;
	font-weight: 400;
    font-style: normal;
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* .main-content-arabic:lang(ar),
.main-content-arabic:lang(ar) * {
    font-family: 'Noto Naskh Arabic', Arial, sans-serif !important;
} */

/* ===== APPLY ARABIC FONT ONLY TO ARABIC CHARACTERS ===== */
@font-face {
    font-family: 'ArabicFallback';
    src: local('Cairo'), local('Noto Sans Arabic'), local('Arial');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, 
                   U+FB50-FDFF, U+FE70-FEFF, U+10E60-10E7F;
}

/* Apply to your Arabic container - only Arabic characters change */
.main-content-arabic {
    font-family: 'Noto Naskh Arabic', 'Cairo', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

/* English text inside the container stays with its own font */
.main-content-arabic .ltr-text,
.main-content-arabic .english-text {
    font-family: 'Arial', 'Helvetica', sans-serif !important;
    direction: ltr;
    display: inline-block;
}


/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-icon {
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	color: var(--accent-color);
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* end new added style */

/* RAMZAN section start */
.ramzan-time {
	display: flex;
	width: 100%;
	gap: 20px;
}

.ramzan-card {
	display: flex;
	width: 100%;
	border: 2px solid var(--accent-color);
	Border-radius: 20px;
	padding: 10px;
	gap: 10px;
	
}

.card-img {
	width: 110px;
	height: 110px;
}

.ramzan-icon {
	width: 100px;
    height: 100px;
    margin-right: 10px;
    object-fit: contain;
}

.card-info {
	padding: 5px;
	color: var(--accent-color);
}

@media (max-width: 768px) {
	.ramzan-time {
		flex-direction: column;
	}
	
	.flag {
		width: 40px;
		height: 30px;
	}
}
/* RAMZAN section end */

/* prayer alarm button */
.prayer-alarm-btn {
	border: none;
	background: transparent;
}

/* 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;
        }
		
		/* FOOTER RESPONSIVE */
		@media (max-width: 992px) {
			.footer-container {
				grid-template-columns: repeat(2, 1fr);
				gap: 2rem;
			}	
		}
		
		@media (max-width: 600px) {
			.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;
            }
		}	
		/* END FOOTER CSS */

/* start archive section */	
/* Archive Section Styles */
.archive-section {
    margin-top: 30px;
}

.archive-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.month-selector select {
    padding: 8px 12px;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    background: var(--card-bg);
    font-size: 1rem;
	color: var(--accent-color);
}

.download-buttons {
    display: flex;
    gap: 10px;
}

.download-btn {
    flex: 1;
	min-width: 170px;
	max-height: 60px;
	padding: 14px 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;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgb(0 0 0 / 12%);
	text-decoration: none;
	text-align: center;
	gap: 10px;
}

.download-btn:hover {
    background: white;
    color: var(--accent-color);
}

.download-btn i {
    font-size: 1.1rem;
}

.archive-date {
    font-weight: 600;
    color: white;
    background-color: var(--accent-color);
}
/* end archive section */

/* start content section */
.wraper {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 30px;
            max-width: 1200px;
            width: 100%;
            color: #333;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }

        .main-content, .main-content-arabic {
            display: flex;
            gap: 30px;
            margin-bottom: 30px;
        }
		
		.clock-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clock-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 25px;
	border-radius: 50%;
	border: 4px solid var(--accent-color);
	box-shadow: 0 10px 25px rgb(0 0 0 / 15%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Double border effect */
.clock::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    z-index: -1;
}

.clock::after {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    z-index: -2;
}

/* Hour marks */
.hour-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.hour-mark {
    position: absolute;
    width: 3px;
    height: 12px;
    background: var(--accent-color);
    left: 50%;
    top: 10px;
    margin-left: -1.5px;
    transform-origin: 50% 115px;
}

/* Minute dots */
.minute-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.minute-dot {
    position: absolute;
	Color: var(text-color);
    width: 3px;
    height: 7px;
    background: #888;
    border-radius: 50%;
    left: 50%;
    top: 12px;
    margin-left: -1.5px;
    transform-origin: 50% 113px;
}

/* Numbers */
.numbers {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.number {
    position: absolute;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 16px;
}

/* Clock hands */
.hands {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: 50% 100%;
    border-radius: 4px 4px 2px 2px;
    transform: translateX(-50%);
    transition: transform 0.2s cubic-bezier(0.4, 2.3, 0.8, 1);
}

.hour-hand {
    width: 6px;
    height: 60px;
    background: var(--accent-color);
    z-index: 3;
    transform-origin: 50% 100%;
}

.minute-hand {
    width: 4px;
    height: 85px;
    background: var(--minute-hand);
    z-index: 2;
    transform-origin: 50% 100%;
}

.second-hand {
    width: 2px;
    height: 100px;
    background: #e74c3c;
    z-index: 1;
    transform-origin: 50% 100%;
    transition: transform 0.1s cubic-bezier(0.4, 2.3, 0.8, 1);
}

.center-circle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #e74c3c;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.digital-clock {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    font-family: 'Roboto Mono', 'Courier New', 'Segoe UI', monospace;
	letter-spacing: 2px;
	font-display: swap;
}

.date-display {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
}

        .prayer-section {
            flex: 2;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border-radius: 10px;
            overflow: hidden;
        }

        th, td {
            padding: 10px;
            text-align: center;
            border-bottom: 1px solid var(--accent-color);
        }

        th {
            background: var(--accent-color);
            color: #fff;
            font-weight: 600;
            font-size: 1.1rem;
        }

        tr {
            transition: all 0.3s ease;
            cursor: pointer;
        }

        tr:nth-child(even) {
            background: var(--footer-bg);
        }

        tr:active {
            transform: translateY(0);
        }

        td {
            color: #333;
            font-size: 1.05rem;
        }

        .start-time, .end-time {
            font-weight: 600;
			color: var(--accent-color);
			direction: ltr;
        }

        /* Color coding for prayers */
        tr[data-prayer="fajr"].active-row, 
		tr[data-prayer="dhuhr"].active-row,
		tr[data-prayer="asr"].active-row,
		tr[data-prayer="maghrib"].active-row, 
		tr[data-prayer="isha"].active-row {
            background-color: var(--accent-color);
			color: white;
            box-shadow: 0 4px 10px rgb(0 0 0 / 12%);
        }
        
        tr[data-prayer="sunrise"].active-row,
        tr[data-prayer="sunset"].active-row,
        tr[data-prayer="zawal"].active-row {
            background-color: #c42d2d !important;
            box-shadow: 0 0 15px rgba(196, 45, 45, 0.3);
        }
        
        tr[data-prayer="ishraq"].active-row,
        tr[data-prayer="chasht"].active-row {
            background-color: rgba(39, 186, 219, 0.2) !important;
            box-shadow: 0 0 15px rgba(39, 186, 219, 0.3);
        }
        
        tr[data-prayer="awwabin"].active-row,
		tr[data-prayer="tahajjud"].active-row {
            background-color: rgb(27 139 130) !important;
            box-shadow: 0 0 15px rgba(219, 165, 39, 0.3);
        }
        
        tr.active-row td {
            color: white;
            font-weight: bold;
        }

        .active-time {
            position: relative;
        }

        .active-time::after {
            content: '●';
            position: absolute;
            right: 0px;
            animation: pulse 1.5s infinite;
        }

        /* Color for active time indicators */
        tr[data-prayer="fajr"] .active-time::after { color: #27db3c; }
        tr[data-prayer="sunrise"] .active-time::after,
        tr[data-prayer="sunset"] .active-time::after,
        tr[data-prayer="zawal"] .active-time::after { color: #c42d2d; }
        tr[data-prayer="ishraq"] .active-time::after,
        tr[data-prayer="chasht"] .active-time::after { color: #27badb; }
        tr[data-prayer="dhuhr"] .active-time::after { color: #9fdb27; }
        tr[data-prayer="asr"] .active-time::after { color: #c9db27; }
        tr[data-prayer="maghrib"] .active-time::after { color: #dbc327; }
        tr[data-prayer="isha"] .active-time::after,
        tr[data-prayer="awwabin"] .active-time::after { color: #dba527; }
        tr[data-prayer="tahajjud"] .active-time::after { color: #14a649; }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.4; }
            100% { opacity: 1; }
        }

        .new-section {
            margin-top: 30px;
        }
        
        .prayer-time-item {
            margin-bottom: 25px;
            padding: 20px;
            border-radius: 10px;
            background: var(--card-bg);
			color: var(--default-text);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            scroll-margin-top: 100px;
        }
        
        /* Border colors for prayer items */
        #fajr-detail, #sunrise-detail, #sunset-detail, #zawal-detail, #ishraq-detail, #chasht-detail, #dhuhr-detail,
		#asr-detail, #maghrib-detail, #isha-detail, #awwabin-detail, #tahajjud-detail { border-left: 3px solid var(--accent-color); }
        
        .prayer-time-display {
            font-weight: 600;
            font-size: 1.2rem;
            color: var(--accent-color);
			direction: ltr;
        }
        
        .time-range {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .time-separator {
            font-weight: bold;
            color: var(--default-text);
        }
        
        .prayer-info {
            margin-top: 10px;
            color: #666;
            line-height: 1.6;
        }
        
        .prayer-azan {
            margin-top: 10px;
            padding: 5px;
			display: none;
        }
        
        .azan-time-display {
            font-weight: 600;
            color: var(--accent-color);
			direction: ltr;
        }
        
        .button-container {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            margin-top: 30px;
            padding: 0 10px;
        }

        .prayer-btn {
			flex: 1;
			min-width: 140px;
			padding: 8px;
			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 rgb(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.4rem;
            margin-bottom: 8px;
        }
		
		.explanation {
            margin: 20px 0;
        }

        .highlighted {
            animation: highlight 2s ease;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        }

        @keyframes highlight {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); }
            100% { transform: scale(1); }
        }

        .time-display {
            min-width: 80px;
            display: inline-block;
        }

        /* Monthly Prayer Times Table Styles */
        .monthly-section {
            margin-top: 30px;
        }

        .monthly-table-container {
            overflow-x: auto;
            margin-top: 20px;
        }

        .monthly-table {
            width: 100%;
            border-collapse: collapse;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            min-width: 800px;
        }

        .monthly-table th {
            background: var(--accent-color);
            color: white;
            padding: 12px 8px;
            text-align: center;
            font-weight: 600;
            font-size: 0.9rem;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .monthly-table td {
            padding: 10px 8px;
            text-align: center;
            border-bottom: 1px solid #e0e0e0;
            font-size: 0.85rem;
			background: var(--card-bg);
			color: var(--default-text);
        }

        .monthly-table tr.current-date {
            background-color: rgba(76, 161, 175, 0.15) !important;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(76, 161, 175, 0.3);
        }

        .monthly-table tr:nth-child(even) {
            background-color: #f8f9fa;
        }

        .monthly-table tr:hover {
            background-color: #e3f2fd;
        }

        .monthly-date {
            font-weight: 600;
            color: #2c3e50;
            background-color: #f1f8ff;
        }

        .current-date .monthly-date {
            background-color: #4ca1af;
            color: white;
        }

        .prayer-time-cell {
            font-family: 'Courier New', monospace;
			font-display: swap;
            font-weight: bold;
			direction: ltr;
        }
		
		/* Prayer Labels */
        .prayer-label {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 15px;
            color: white;
            font-size: 0.85rem;
            margin-top: 5px;
            font-weight: 500;
        }

        .fajr-label,
		.dhuhr-label,
		.asr-label,
		.maghrib-label,
		.isha-label	{ background: #27db3c; }
		.sunrise-label,
		.zawal-label,
		.sunset-label { background: #c42d2d; }
		.ishraq-label,
		.chasht-label { background: #27badb; }
		.awwabin-label,
		.tahajjud-label { background: #dba527; }
        
        .color-box {
            width: 15px;
            height: 15px;
            border-radius: 3px;
        }
/* end content section */

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-copyright {
        grid-column: span 2;
        text-align: center;
    }
    
    
}

@media (max-width: 900px) {
    .main-content, .main-content-arabic {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 0.2rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
	
	.monthly-table th,
    .monthly-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
            
    .monthly-table {
        min-width: 700px;
    }
	
	.prayer-time-item {
		padding: 10px;
	}
	
	.archive-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .month-selector {
        justify-content: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .archive-table th,
    .archive-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
    
    .archive-table {
        min-width: 700px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* new added responsive toogle */
	@media (max-width: 990px) {
	.mobile-menu-toggle {
        display: flex;
        align-items: center;
		background-color: var(--accent-color);
    }
    
    .main-nav {
        position: fixed;
        top: 50px;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 90vh;
        background: var(--card-bg);
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    /* Overlay when menu is open */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .dropdown {
        width: 100%;
		background: var(--footer-bg);
    }
    
    .dropdown-toggle {
        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;
    }
    
    .dropdown-toggle::after {
        content: "▼";
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .dropdown-content {
        position: static;
        background: rgba(255,255,255,0.1);
        width: 100%;
        box-shadow: none;
        margin-top: 10px;
        border-radius: 8px;
        display: none;
    }
    
    .dropdown-content a {
        color: var(--default-text);
        padding: 12px 20px;
        border-bottom: 1px solid var(--accent-color);
    }
    
    .dropdown-content a:hover {
        background: var(--accent-color);
		color: white;
        padding-left: 30px;
    }
    
    .theme-toggle {
        justify-content: center;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
	
	
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
	}

@media (max-width: 600px) {
    .wraper {
		padding: 10px;
	}
	
	.footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-copyright {
        grid-column: span 1;
    }
	
	.loader-logo {
        width: 150px;
        height: 150px;
    }
    
    .loader-royal-text {
        font-size: 26px;
    }
		
	.date-display {
		margin-bottom: 10px;
	}	
}

@media (max-width: 480px) {
    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .main-nav a {
        padding: 0.5rem;
    }
	
	.main-nav ul {
		gap: .5rem;
	}
	
	.dropdown-content {
		width: 100px;
	}
	
	.search-box {
		padding: 0.3rem 1.5rem;
	}
	
	th, td {
		font-size: 1rem;
		padding: 7px 5px;
	}
	.prayer-btn {
		padding: 5px 12px;
	}	
		
	.explanation {
		padding: 5px;
	}
	.main-content, .main-content-arabic {
		gap: 10px;
		padding: 2px;
	}
	.new-section {
		padding: 10px;
	}
}

.main-header,
.main-footer,
.calculator-sidebar {
    transition: font-family 0.3s ease;
}

/* 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 */

/* Remove any extra margins from accordion headers */
		.display-none {
			display: none;
		}
		
		.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: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;
			background: var(--footer-bg);
			color: var(default-text);
        }

        .accordion-content.active {
            max-height: 500px;
			background: var(--footer-bg);
			padding: 10px;
			color: var(default-text);
        }
		
		.gregorian-date-display {
  display: inline;
  margin: 0;
  padding: 0;
}

.chevron {
  flex-shrink: 0; /* Prevents chevron from shrinking */
  margin-left: auto; /* Pushes it to the right */
}
		/* END SIDEBAR ACCORDION STYLE */