/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1c3d6d;
    --primary-light: #3a6bc0;
    --dark: #1e3a5f;
    --secondary: #8B4513;
    --accent: #d4af37;
    --light: #ffffff;
    --silver-light: #f8f9fa;
    --border: #e0e0e0;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --radius: 8px;
}

/* Base Typography */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text) !important;
    background-color: var(--light) !important;
    overflow-x: hidden;
}
 
/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
/* Header & Navigation */
header {
    background: var(--light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #dbdbdb;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo i {
    font-size: 1.8rem;
    color: #20b2aa;
}

.logo h1 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* Desktop Navigation - DEFAULT: HIDDEN ON MOBILE */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: var(--primary);
    background: var(--silver-light);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.desktop-nav a:hover::after {
    width: 80%;
}

/* Search Container */
.search-container {
    margin-left: auto;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--silver-light);
    border-radius: 25px;
    padding: 0.3rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    min-width: 250px;
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(44, 95, 45, 0.1);
}

.search-input {
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    flex: 1;
}

.search-button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.search-button:hover {
    background: var(--dark);
}

/* Mobile Menu Toggle - DEFAULT: VISIBLE ON MOBILE */
.mobile-menu-toggle {
    display: flex;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--light);
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--light);
    position: sticky;
    top: 0;
    z-index: 2001;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem;
    margin: 0;
    animation: slideInRight 0.3s ease-out;
}

.mobile-nav li {
    margin-bottom: 0.5rem;
}

.mobile-nav li:not(.mobile-search-item) a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    border: 1px solid transparent;
}

.mobile-nav li:not(.mobile-search-item) a:hover {
    background: var(--silver-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Search */
.mobile-search-item {
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-search-form {
    display: flex;
    gap: 0.5rem;
}

.mobile-search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
}

.mobile-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(44, 95, 45, 0.1);
}

.mobile-search-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.mobile-search-button:hover {
    background: var(--dark);
}

/* RESPONSIVE BREAKPOINTS */

/* Tablet and Desktop - SHOW DESKTOP NAV */
@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
}

/* Mobile - HIDE DESKTOP NAV, SHOW MOBILE TOGGLE */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .logo h1 {
       // font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem;
    }
    
    .logo h1 {
        //font-size: 1.2rem;
    }
    
    .mobile-nav-header {
        padding: 0.8rem;
    }
    
    .mobile-nav ul {
        padding: 0.8rem;
    }
    
    .mobile-search-form {
        flex-direction: column;
    }
    
    .mobile-search-button {
        padding: 0.8rem;
    }
}

/* Animation for mobile menu */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Backdrop effect for mobile menu */
.mobile-nav::before {
    //content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active::before {
    opacity: 1;
    visibility: visible;
}
.text-center {
    text-align: center;
}
/* Hero Section */
.hero { 
	background-color: #f5f5f5;
    color: #333;
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.verse-date-display {
    background: var(--silver-light);
    color: var(--text);
    border: 2px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.verse-of-day {
    font-size: 2.2rem;
    margin: 2rem 0;
    font-family: 'Scheherazade New', 'Traditional Arabic', serif;
    line-height: 2;
    text-align: right;
    direction: rtl;
}

.verse-reference {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.verse-translation {
    font-size: 1.3rem;
    line-height: 1.7;
    margin: 2rem 0;
    font-style: italic;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    font-weight: 500;
    //border-radius: var(--radius);
    //border-left: 4px solid var(--accent);
}
.verse-image-section {
    text-align: center;
}
.verse-image-section img {
    border-radius: 10px;
    box-shadow: var(--shadow);
	max-width: 100%;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-direction: row;
}
.page-header {
    margin-bottom: 1rem;
}.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--dark);
    padding: 9px 19px;
    border: 1px solid #20b2aa;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    min-height: 50px;
}
.btn-outline:hover {
    background-color: #20b2aa;
    color: #ffffff;
}
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
	border: 1px solid var(--border);
    background: var(--light);
    color: var(--dark);
	min-height: 50px;
}
 

.btn-primary:hover {
    background: #e6c12e;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
 

.btn-secondary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}



/* Previous Verses Section */
.previous-verses {
    padding: 3rem 0;
    background: var(--silver-light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.previous-verses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.verse-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.verse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.verse-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.verse-card:hover::before {
    width: 8px;
}

.verse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.verse-header h3 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.verse-date {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
    background: var(--silver-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.verse-arabic {
    font-size: 1.5rem;
    text-align: right;
    margin-bottom: 1rem;
    color: var(--primary);
    font-family: 'Scheherazade New', 'Traditional Arabic', serif;
    line-height: 1.8;
}

.verse-english {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.5;
    font-style: italic;
}

.verse-actions {
    text-align: center;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.view-all-container {
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-view-all:hover {
    background: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Categories Section */
.popular-categories {
    padding: 4rem 0;
    background: var(--light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
	margin-bottom: 2rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--silver-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.category-card:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 1.5rem;
    color: inherit;
}

.category-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.verse-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

.category-arrow {
    margin-left: auto;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}
.footer-widget {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}
.footer-links { 
	padding-left: 25px;
	width: 100%;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    
}

/* Breadcrumb */
.breadcrumb {
    padding: 0.7rem 0 0.5rem;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-light);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .verse-of-day {
        font-size: 1.8rem;
    }
    
    .verse-translation {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .previous-verses-list {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: row;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
	.footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.7rem;
    }
    
    .hero {
        padding: 1rem 0 2rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .verse-of-day {
        font-size: 1.5rem;
    }
    
    .verse-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .mobile-menu-toggle,
    .desktop-nav,
    .hero-actions,
    .share-actions,
    .footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    .container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .verse-of-day {
        font-size: 16pt !important;
        color: black !important;
    }
    
    .verse-translation {
        background: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Header Search Styles */
.desktop-nav {
    //display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.search-container {
    margin-left: auto;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--silver-light);
    border-radius: 25px;
    padding: 0.3rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(44, 95, 45, 0.1);
}

.search-input {
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    outline: none;
    width: 200px;
    font-size: 0.9rem;
}

.search-button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: var(--dark);
}

/* Mobile Search Styles */
.mobile-search-item {
    padding: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.mobile-search-form {
    display: flex;
    gap: 0.5rem;
}

.mobile-search-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.mobile-search-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
}
 

/* Sidebar Layout */
.page-with-sidebar {
    padding: 1rem 0;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.main-content {
    min-width: 0; /* Prevent grid overflow */
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    //border-radius: var(--radius);
    //border: 1px solid var(--border);
    //box-shadow: var(--shadow);
    padding: 0rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

/* Ad Container */
.ad-container {
    text-align: center;
}

.ad-placeholder {
    background: var(--silver-light);
    border: 2px dashed var(--border);
    padding: 3rem 1rem;
    border-radius: var(--radius);
    color: var(--text-light);
}

.ad-placeholder p {
    margin: 0.5rem 0;
}

/* Category Links */
.category-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--silver-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.category-name {
    font-weight: 500;
}

.verse-count {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-link:hover .verse-count {
    background: white;
    color: var(--primary);
}

/* Sidebar Verse */
.sidebar-verse {
    text-align: center;
}

.sidebar-verse-arabic {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-family: 'Scheherazade New', 'Traditional Arabic', serif;
    line-height: 1.6;
}

.sidebar-verse-english {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.4;
}

.read-more-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 0rem;
    }
    
    .sidebar {
        position: static;
        //order: -1;
    }
    
    .sidebar-widgets {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
}