@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Google Sans Display', 'Roboto', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #202124;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    gap: 16px;
    color: #5f6368;
    font-size: 14px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8eaed;
    border-top: 4px solid #01875f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header Container - The ONLY Sticky Parent */
#main-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    /* Highest priority */
    background: #fff;
    width: 100%;
}

/* 0. Top Navigation Bar - Non-sticky (parent handles it) */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    height: 80px;
    /* Increased to fit the 70px logo perfectly */
    background: #fff;
    border-bottom: 1px solid #e8eaed;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 70px;
    /* Increased for better visibility */
    border-radius: 8px;
    cursor: pointer;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    gap: 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #01875f;
    background-color: #f1f3f4;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* 1. Header Section */
.play-header {
    display: flex;
    flex-direction: column;
    padding: 40px 8% 20px 8%;
    gap: 30px;
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.app-info-left {
    flex: 1;
}

.app-title {
    font-size: 64px;
    /* Matches standard desktop view */
    font-weight: 500;
    margin: 0 0 10px 0;
    color: #202124;
}

.dev-name {
    color: #01875f;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 5px 0;
    display: block;
}

.dev-name a:hover {
    text-decoration: underline;
}

.in-app-text {
    color: #5f6368;
    font-size: 14px;
    margin: 4px 0 0 0;
}

/* Divider Line */
.divider {
    height: 1px;
    background-color: #dadce0;
    margin: 20px 8%;
    border: none;
}

/* Meta Stats Row */
.meta-container {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.app-meta-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Reduced gap to accommodate dividers nicely */
}

.meta-item {
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered as per Google Play Store */
}

.meta-value {
    font-weight: 500;
    font-size: 16px;
    display: block;
    color: #202124;
    line-height: 1.2;
}

.meta-label {
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
    display: block;
}

.meta-vertical-line {
    width: 1px;
    height: 30px;
    background-color: #e8eaed;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.play-store-btn {
    background-color: #01875f;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.play-store-btn:hover {
    background-color: #016b4c;
}

.apk-download-btn {
    background-color: #fff;
    color: #01875f;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dadce0;
    transition: background 0.2s;
}

.apk-download-btn:hover {
    background-color: #f6fdfa;
}

.share-btn {
    background: transparent;
    color: #01875f;
    border: 1px solid #dadce0;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.share-btn:hover {
    background: #f6fdfa;
}

.app-logo-content {
    flex-shrink: 0;
}

.main-app-logo {
    width: 250px;
    /* Large on desktop */
    height: 250px;
    border-radius: 48px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Right Side: Screenshots */
.screenshots-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.screenshots-right {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-behavior: smooth;
    width: 100%;
    /* Ensure it fills the wrapper */
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 10px;
}

.screenshots-right::-webkit-scrollbar {
    display: none;
}

.screenshots-right img {
    height: 380px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    color: #5f6368;
    font-size: 20px;
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    background-color: #f1f3f4;
    color: #202124;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn.prev-btn {
    left: -24px;
}

.carousel-nav-btn.next-btn {
    right: -24px;
}

/* 2. Apps Grid Section */
.section-box {
    padding: 20px 8% 40px 8%;
}

.grid-title {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 500;
    color: #202124;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.app-card {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
    max-width: 180px;
}

.app-card:hover {
    opacity: 0.8;
}

.app-card .card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    margin-bottom: 12px;
}

.app-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20%;
    border: 1px solid #e8eaed;
    object-fit: cover;
}

.app-card h3 {
    font-size: 14px;
    margin: 0;
    font-weight: 400;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card .rating-row {
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.status-badge {
    font-size: 10px;
    color: #d93025;
    font-weight: bold;
    display: block;
    margin-top: 4px;
}

/* ========================================================================= */
/* AL QURAN PAGE STYLES (Quran.com Inspired)
/* ========================================================================= */

.quran-hero {
    background: #f8f9fa;
    padding: 80px 8% 60px 8%;
    text-align: center;
    border-bottom: 1px solid #e8eaed;
}

.quran-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #202124;
    margin: 0 0 10px 0;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
}

.quran-hero p {
    font-size: 18px;
    color: #5f6368;
    margin-bottom: 40px;
}

.quran-search-container {
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i.fa-search {
    position: absolute;
    left: 20px;
    color: #5f6368;
    font-size: 18px;
    pointer-events: none;
}

#search-clear {
    position: absolute;
    right: 20px;
    color: #5f6368;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 5;
}

#search-clear:hover {
    color: #d93025;
    transform: scale(1.1);
}

.search-input-wrapper input {
    width: 100%;
    padding: 18px 50px 18px 55px;
    border: 1px solid #dadce0;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #ffffff;
}

.search-input-wrapper input:focus {
    border-color: #01875f;
    box-shadow: 0 4px 12px rgba(1, 135, 95, 0.1);
}

.hero-quick-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-link {
    padding: 10px 22px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid #e8eaed;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-link::before {
    content: '\f101';
    /* FontAwesome angle-double-right icon code */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    opacity: 0.5;
    transition: transform 0.3s;
}

.quick-link:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: #01875f;
    color: #01875f;
    background: #ffffff;
    box-shadow: 0 6px 15px rgba(1, 135, 95, 0.15);
}

.quick-link:hover::before {
    transform: translateX(3px);
    opacity: 1;
}

/* Continue Reading Section */
.continue-reading-section {
    padding-top: 40px;
    padding-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.see-all {
    text-decoration: none;
    color: #01875f;
    font-size: 14px;
    font-weight: 500;
}

.continue-card {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 400px;
}

.continue-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #01875f;
}

.continue-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.surah-number-icon {
    width: 40px;
    height: 40px;
    background: #f1f3f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #202124;
    transform: rotate(45deg);
}

.surah-number-icon {
    /* Correcting rotation for content */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fixed surah number style */
.surah-number-diamond {
    width: 40px;
    height: 40px;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #202124;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.surah-number-diamond span {
    transform: rotate(-45deg);
}

.surah-details h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}

.surah-details p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #5f6368;
}

.surah-arabic-name {
    font-size: 24px;
    font-family: 'Amiri', serif;
    color: #202124;
}

.continue-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #01875f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Surah Grid Section */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.grid-view-toggles {
    display: flex;
    background: #f1f3f4;
    border-radius: 8px;
    padding: 4px;
}

.view-toggle {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-toggle.active {
    background: #ffffff;
    color: #202124;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.surah-card {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.surah-card:hover {
    border-color: #004e4b;
    background-color: #004e4b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 174, 186, 0.15);
}

.surah-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    border-radius: 50%;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.surah-card:hover .surah-num {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(0.8);
    opacity: 0;
}

.surah-hover-icon {
    position: absolute;
    left: 16px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004e4b;
    font-size: 18px;
    transform: translateX(-60px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.surah-card:hover .surah-hover-icon {
    transform: translateX(0);
}

.surah-info-main {
    flex: 1;
    transition: transform 0.3s ease;
}

.surah-card:hover .surah-info-main {
    transform: translateX(10px);
}

.surah-info-main h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    transition: color 0.3s ease;
}

.surah-info-main p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.surah-card:hover .surah-info-main h3,
.surah-card:hover .surah-info-main p,
.surah-card:hover .surah-arabic {
    color: #ffffff;
}

.surah-arabic {
    font-size: 20px;
    font-weight: 500;
    color: #202124;
    transition: all 0.3s ease;
}

/* Reading Page Styles */
.reading-page-wrapper {
    background-color: #ffffff;
    min-height: 100vh;
    padding-bottom: 120px;
    /* Space for audio bar */
}

.reading-header {
    background: #f8f9fa;
    padding: 60px 8% 40px 8%;
    border-bottom: 1px solid #e8eaed;
    text-align: center;
    position: relative;
}

.back-to-quran {
    position: absolute;
    top: 30px;
    left: 8%;
    text-decoration: none;
    color: #5f6368;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.back-to-quran:hover {
    color: #004e4b;
}

.reading-header h1 {
    font-family: 'Amiri', serif;
    margin: 0 0 10px 0;
}

.reading-header h2 {
    font-size: 24px;
    color: #004e4b;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.reading-header p {
    color: #5f6368;
    margin: 0;
}

.ayah-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 150px 20px;
    /* Added spacing for audio player */
}

.ayah-row {
    padding: 40px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ayah-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5f6368;
    font-size: 14px;
}

.ayah-actions {
    display: flex;
    gap: 20px;
}

.ayah-actions i {
    cursor: pointer;
    transition: color 0.2s;
}

.ayah-actions i:hover {
    color: #004e4b;
}

.ayah-arabic-text {
    font-size: 36px;
    line-height: 2;
    text-align: right;
    font-family: 'Amiri', serif;
    color: #202124;
    direction: rtl;
    margin-bottom: 20px;
}

.ayah-translation-text {
    font-size: 18px;
    line-height: 1.6;
    color: #5f6368;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 30px;
}

/* Multilingual Typography */
.translation-urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 24px;
    line-height: 2.4;
    direction: rtl;
    text-align: right;
}

.urdu-font {
    font-family: 'Noto Nastaliq Urdu', serif !important;
}

/* Audio Player Bar */
.audio-player-bar {
    position: fixed;
    bottom: -100px;
    /* Hidden by default, shown via JS or just set to 0 */
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 2000;
    transition: bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0 0 15px 0;
}

.audio-player-bar.active {
    bottom: 0;
}

.audio-progress-container {
    width: 100%;
    height: 4px;
    background: #f1f3f4;
    position: relative;
    cursor: pointer;
}

#audio-seek {
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 16px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
}

#audio-seek::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: #e8eaed;
}

#audio-seek::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #004e4b;
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 0 5px rgba(44, 174, 186, 0.5);
    transition: transform 0.2s;
}

#audio-seek:hover::-webkit-slider-thumb {
    transform: scale(1.3);
}

.audio-controls-wrapper {
    max-width: 1200px;
    margin: 10px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.audio-time-left,
.audio-time-right {
    font-size: 13px;
    color: #5f6368;
    width: 50px;
}

.audio-time-right {
    text-align: right;
}

.audio-main-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.audio-btn {
    font-size: 18px;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s;
}

.audio-btn:hover {
    color: #004e4b;
}

.audio-play-btn {
    width: 48px;
    height: 48px;
    background: #004e4b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(44, 174, 186, 0.3);
}

.audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(44, 174, 186, 0.4);
}

/* Loading/buffering state */
.audio-play-btn.loading {
    opacity: 0.85;
    cursor: wait;
    transform: none !important;
}

.audio-play-btn.loading i {
    font-size: 16px;
    color: #ffffff;
}

.audio-play-btn i {
    margin-left: 2px;
    /* Offset to center triangle */
}

/* Specific button styles */
#audio-close-btn {
    margin-left: 10px;
    opacity: 0.5;
}

#audio-close-btn:hover {
    opacity: 1;
    color: #ea4335;
}

@media (max-width: 768px) {
    .audio-main-controls {
        gap: 15px;
    }

    .audio-btn.hidden-mobile {
        display: none;
    }
}




/* Quran.com Replicated Header Styles */
.ContextMenu_container__J5yFs {
    position: sticky;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 999;
    border-bottom: 1px solid #f1f3f4;
    font-family: 'Roboto', sans-serif;
}

.ContextMenu_sectionsContainer__bTsuH {
    max-width: 1300px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.ContextMenu_section__Pw64Y {
    display: flex;
    align-items: center;
}

/* Left: Surah Name */
.ContextMenu_surahName__ys4GC {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #202124;
}

.ContextMenu_row__13MaZ {
    position: relative;
}

.ContextMenu_chapterInteractiveSpan__DZuet {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;

}

.ContextMenu_chevronIconContainer__F5L8e {
    color: #5f6368;
    display: flex;
}

/* Center: Page/Juz Info */
.ContextMenu_pageInfoContainer__ATxPA {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ContextMenu_primaryInfo__ADx_B {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #202124;
}

.ContextMenu_secondaryInfo__WiCGw {
    font-size: 14px;
    color: #5f6368;
    margin: 0;
}

.ContextMenu_bookmarkButton__a1MvH {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 0;
    display: flex;
}

.ContextMenu_bookmarkButton__a1MvH svg {
    width: 18px;
    height: 18px;
}

/* Right: Reading Mode Toggle */
.ContextMenu_readingPreferenceContainer__qbaa1 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ReadingModeToggle_container__LZPIN {
    display: flex;
    background: #f1f3f4;
    padding: 4px;
    border-radius: 12px;
}

.ReadingModeToggle_pill__joWAj {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 400;
    color: #5f6368;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.ReadingModeToggle_pillSelected__XwBIR {
    background: #ffffff;
    color: #202124;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ContextMenu_settingsButton__SVG {
    background: none;
    border: none;
    color: #004e4b;
    cursor: pointer;
    padding: 8px;
    display: flex;
    transition: transform 0.3s ease;
}

/* Bottom Progress Bar */
.ProgressBar_container__ULhce {
    width: 100%;
    height: 3px;
    position: absolute;
    bottom: -1px;
    left: 0;
}

.ProgressBar_track__Y9Ro8 {
    width: 100%;
    height: 100%;
    background: transparent;
}

.ProgressBar_indicator__rckgb {
    height: 100%;
    background-color: #004e4b;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(44, 174, 186, 0.4);
    transition: width 0.1s ease-out;
}

/* Surah Side Drawer (Sidebar) */
.surah-side-drawer {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.surah-side-drawer.open {
    left: 0;
}

.surah-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.surah-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f3f4;
}

.drawer-tabs {
    display: flex;
    padding: 0 24px;
    border-bottom: 1px solid #f1f3f4;
    background: #ffffff;
}

.drawer-tab-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.drawer-tab-btn.active {
    color: #01875f;
}

.drawer-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: #01875f;
    border-radius: 3px 3px 0 0;
}

.drawer-header h3 {
    margin: 0;
    font-size: 20px;
    color: #202124;
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.drawer-search-wrapper {
    padding: 16px 24px;
}

.drawer-search-input-group {
    position: relative;
    background: #f1f3f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.drawer-search-input-group i {
    color: #5f6368;
    margin-right: 12px;
}

.drawer-search-input-group input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #202124;
}

.drawer-surah-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 24px;
}

.drawer-surah-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.drawer-surah-card:hover {
    background: #f8f9fa;
    border-color: #e8eaed;
}

.drawer-surah-card.active {
    background: #e6f7f8;
    border-color: #004e4b;
}

.drawer-surah-num {
    font-size: 12px;
    font-weight: 500;
    color: #5f6368;
    width: 25px;
}

.drawer-surah-info {
    flex: 1;
    margin-left: 12px;
}

.drawer-surah-name-en {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.drawer-surah-name-ar {
    font-family: 'Amiri', serif;
    font-size: 16px;
    color: #004e4b;
}

/* Tab Content Flex Layout - Required for inner scroll to work */
#translation-tab-content,
#reciter-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* Reciter Item Enhancements */
.reciter-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6f7f0, #c8ede0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #01875f;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 12px;
    transition: all 0.2s;
}

.translation-item:hover .reciter-icon {
    background: linear-gradient(135deg, #01875f, #004e4b);
    color: #ffffff;
}

.translation-item.active .reciter-icon {
    background: linear-gradient(135deg, #01875f, #004e4b);
    color: #ffffff;
}

/* Reciter item layout */
.translation-item.reciter-item {
    align-items: center;
}

/* Translation Drawer Specifics (Positioned on the Right) */
.translation-drawer {
    left: auto !important;
    right: -350px;
    background: #fdfdfd;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
}

.translation-drawer.open {
    right: 0;
}

/* Premium Audio Progress Bar Styling */
.AudioProgressBar_container {
    width: 100%;
    height: 12px;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.AudioProgressBar_track {
    width: 100%;
    height: 6px;
    background-color: #f1f3f4;
    border-radius: 3px;
    position: relative;
}

.AudioProgressBar_indicator {
    height: 100%;
    background-color: #004e4b;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px rgba(44, 174, 186, 0.5);
    transition: width 0.1s linear;
}

.AudioProgressBar_container:hover .AudioProgressBar_track {
    background-color: #e8eaed;
    height: 8px;
    margin-top: -1px;
}

.AudioProgressBar_container:hover .AudioProgressBar_indicator {
    box-shadow: 0 0 15px rgba(44, 174, 186, 0.7);
}

@font-face {
    font-family: 'SurahNames';
    src: url('https://cdn.jsdelivr.net/gh/quran/quran.com-frontend-next@master/public/fonts/quran/surah-names/v1/sura_names.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.quran-surah-font {
    font-family: 'SurahNames' !important;
    font-size: 40px;
    color: #004e4b;
    line-height: 1;
    display: inline-block;
}

.title-calligraphy {
    font-size: 80px;
    margin: 20px 0;
    color: #202124;
}

.drawer-calligraphy {
    font-size: 32px;
}

.language-group-header {
    background: #f1f3f4;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #5f6368;
    margin-top: 10px;
    border-radius: 10px;
}

.translation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background 0.2s;
}

.translation-item:hover {
    background: #f8f9fa;
}

.translation-item.active {
    background: #e6f7f8;
    border-radius: 10px;
}

.translation-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    text-align: left;
    align-items: flex-start;
    min-width: 0;
    /* prevents overflow pushing other elements */
}

.translation-name {
    font-size: 15px;
    font-weight: 500;
    color: #202124;
}

.translation-author {
    font-size: 12px;
    color: #9aa0a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.translation-check {
    color: #004e4b;
    font-size: 16px;
    display: none;
}

.translation-item.active .translation-check {
    display: block;

}

.about-page-wrapper {
    background-color: #fafbfc;
    overflow: hidden;
    position: relative;
    padding-bottom: 60px;
}

/* Stunning Hero Section */
.about-hero-premium {
    position: relative;
    padding: 120px 8% 100px 8%;
    background: linear-gradient(135deg, #01875f 0%, #005f42 100%);
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 20px 40px rgba(1, 135, 95, 0.15);
}

/* Floating glowing orbs in background */
.about-hero-premium::before,
.about-hero-premium::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: floatOrb 10s ease-in-out infinite;
}

.about-hero-premium::before {
    width: 300px;
    height: 300px;
    background: rgba(46, 213, 115, 0.4);
    top: -50px;
    left: -50px;
}

.about-hero-premium::after {
    width: 400px;
    height: 400px;
    background: rgba(255, 211, 42, 0.2);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 40px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease backwards;
}

.about-hero-premium h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
    animation: zoomIn 0.8s ease 0.2s backwards;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-hero-premium p {
    font-size: 20px;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Glassmorphism Mission/Vision Cards */
.about-mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: -60px 8% 60px 8%;
    position: relative;
    z-index: 2;
}

.mv-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #01875f, #2ed573);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(1, 135, 95, 0.15);
}

.mv-card:hover::before {
    transform: scaleX(1);
}

.mv-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e6f6f0, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 1), 0 10px 20px rgba(1, 135, 95, 0.1);
    font-size: 32px;
    color: #01875f;
    transition: transform 0.5s ease;
}

.mv-card:hover .mv-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    color: #2ed573;
}

.mv-card h3 {
    font-size: 26px;
    color: #202124;
    margin-bottom: 15px;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
    font-weight: 600;
}

.mv-card p {
    color: #5f6368;
    line-height: 1.7;
    font-size: 16px;
}

/* Modern Values Section */
.premium-values-section {
    padding: 40px 8%;
    text-align: center;
}

.section-head {
    margin-bottom: 50px;
}

.section-head h2 {
    font-size: 36px;
    color: #202124;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-head h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #01875f;
    border-radius: 2px;
}

.premium-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.val-item {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.val-item:hover {
    box-shadow: 0 20px 40px rgba(1, 135, 95, 0.08);
    transform: translateY(-5px);
    border-color: #e6f6f0;
}

.val-item .val-icon {
    font-size: 40px;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(135deg, #01875f, #2ed573);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.val-item:hover .val-icon {
    transform: scale(1.2);
}

.val-item h4 {
    font-size: 20px;
    color: #202124;
    margin-bottom: 12px;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
    font-weight: 500;
}

.val-item p {
    font-size: 15px;
    color: #5f6368;
    line-height: 1.6;
}

/* Animations Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================================================= */
/* PREMIUM CONTACT PAGE REDESIGN
/* ========================================================================= */

.contact-page-wrapper {
    background-color: #fafbfc;
    overflow: hidden;
    position: relative;
    padding-bottom: 80px;
}

.contact-hero-premium {
    position: relative;
    padding: 100px 8% 120px 8%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    /* Sleek dark hero */
    text-align: center;
    color: #ffffff;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-hero-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(1, 135, 95, 0.25) 0%, transparent 50%);
    animation: rotateGradient 25s linear infinite;
    z-index: 0;
}

@keyframes rotateGradient {
    100% {
        transform: rotate(360deg);
    }
}

.contact-hero-content {
    position: relative;
    z-index: 1;
}

.contact-hero-content h1 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
    animation: fadeInDown 0.8s ease backwards;
}

.contact-hero-content p {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin: -60px 8% 0 8%;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Info Cards */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease backwards;
}

.contact-info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 20px 40px rgba(1, 135, 95, 0.1);
    border-color: #e6f6f0;
}

.ci-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e6f6f0, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #01875f;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 1), 0 5px 15px rgba(1, 135, 95, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-info-card:hover .ci-icon {
    transform: scale(1.1) rotate(10deg);
}

.ci-details h4 {
    font-size: 15px;
    color: #5f6368;
    margin: 0 0 5px 0;
    font-family: 'Google Sans Display', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-name a {
    text-decoration: none;
    /* Underline khatam karne ke liye */
    cursor: pointer;
    /* Mouse ko hath (hand) mein badalne ke liye */
}

.dev-name a:hover {
    text-decoration: none;
    /* Hover par bhi underline nahi aayegi */
}

.ci-details p,
.ci-details a {
    font-size: 18px;
    color: #202124;
    font-weight: 500;
    margin: 0;
    text-decoration: none;
    font-family: 'Google Sans Display', sans-serif;
}

.ci-details a {
    color: #01875f;
    transition: color 0.2s;
}

.ci-details a:hover {
    color: #005f42;
    text-decoration: underline;
}

.contact-social-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: center;
    animation: fadeInUp 0.8s ease backwards;
}

.contact-social-card h4 {
    font-size: 18px;
    color: #01875f;
    margin-top: 0;
    /* Removed top margin to bring it closer to subtitle */
    margin-bottom: 25px;
    font-family: 'Google Sans Display', sans-serif;
    font-weight: 600;
}

.social-subtitle {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 2px;
    /* Set to 2px for tight grouping */
    margin-top: 0;
}

.social-icons-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sco-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.sco-icon.fb {
    background: #1877F2;
}

.sco-icon.tk {
    background: #12191d;
}

.sco-icon.yt {
    background: #ff0000;
}

.sco-icon.ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sco-icon.li {
    background: #01875f;
}

.sco-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Contact Form */
.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.contact-form-card h2 {
    font-size: 28px;
    color: #202124;
    margin-bottom: 30px;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #5f6368;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    font-size: 16px;
    color: #202124;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #01875f;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(1, 135, 95, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    background: linear-gradient(135deg, #01875f, #005f42);
    color: #fff;
    border: none;
    padding: 16px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Google Sans Display', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(1, 135, 95, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(1, 135, 95, 0.3);
}

/* ========================================================================= */
/* PREMIUM LEGAL PAGES (PRIVACY & TERMS)
/* ========================================================================= */

.legal-page-wrapper {
    background-color: #fafbfc;
    padding: 60px 8% 100px 8%;
    position: relative;
    overflow: hidden;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-header h1 {
    font-size: 42px;
    color: #202124;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
    margin-bottom: 15px;
    animation: fadeInDown 0.6s ease;
}

.legal-header p {
    color: #01875f;
    font-weight: 600;
    font-size: 16px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.legal-content-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8eaed;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.3s backwards;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .legal-content-card {
        padding: 40px 20px;
    }
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 22px;
    color: #202124;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section h2::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: linear-gradient(to bottom, #01875f, #2ed573);
    border-radius: 3px;
}

.legal-section p {
    font-size: 16px;
    color: #5f6368;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #5f6368;
}

.legal-section ul li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 16px;
}

.legal-section strong {
    color: #202124;
    font-weight: 600;
}

/* Background aesthetic for legal pages */
.legal-page-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(1, 135, 95, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* ========================================================================= */
/* PREMIUM FOOTER SECTION
/* ========================================================================= */
.premium-footer {
    background: linear-gradient(180deg, #0f172a 0%, #06111f 100%);
    color: #cbd5e1;
    padding: 80px 8% 0 8%;
    font-family: 'Google Sans Display', 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #01875f;
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(1, 135, 95, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    justify-content: space-between;
}

.footer-brand {
    flex: 1.5;
    min-width: 280px;
}

.footer-brand img {
    height: 60px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-brand h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 350px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    /* Remove underline/line under icon */
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: #01875f;
    border-color: #01875f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(1, 135, 95, 0.3);
}

.footer-links-group {
    flex: 1;
    min-width: 200px;
}

.footer-links-group h4 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-links-group h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: #01875f;
    border-radius: 2px;
}

.footer-links-group a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-group a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    color: #01875f;
}

.footer-links-group a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-links-group a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    position: relative;
    z-index: 1;
}

/* Media Queries */
@media (max-width: 992px) {
    .screenshots-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Mobile Header Layout (User Approved) */
    .header-content-wrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
    }

    .app-info-left {
        display: contents;
        /* Children join the header-content-wrapper flex flow */
    }

    .app-logo-content {
        order: 1;
        flex-shrink: 0;
    }

    .app-title-group {
        order: 2;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .meta-container {
        order: 3;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }

    .btn-group {
        order: 4;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .main-app-logo {
        width: 72px;
        height: 72px;
        border-radius: 14px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .app-title {
        font-size: 22px;
        margin: 0;
        font-weight: 500;
        line-height: 1.25;
        color: #202124;
    }

    .dev-name {
        font-size: 14px;
        margin: 1px 0;
    }

    .in-app-text {
        font-size: 12px;
        color: #5f6368;
        margin: 0;
    }

    #feat-desc {
        order: 5;
        width: 100%;
        margin-top: 15px !important;
    }

    .app-meta-stats {
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    .meta-item {
        align-items: center;
        flex: 1;
    }

    .meta-vertical-line {
        height: 24px;
        background-color: #e8eaed;
        margin: 0 10px;
    }

    .mobile-full-width {
        width: 100%;
        box-sizing: border-box;
    }

    .screenshots-right img {
        height: 250px;
        /* Smaller screenshots on mobile */
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 15px;
    }

    .app-card {
        max-width: 100%;
        /* Fill available grid cell */
    }
}