:root {
    --bg-main: #f2f7fd;
    --text-main: #2b3a55;
    --text-heading: #1e52a8;
    --btn-primary-bg: #1e52a8;
    --btn-primary-text: #ffffff;
    --btn-outline-border: #1e52a8;
    --btn-outline-text: #1e52a8;
    --card-bg: #ffffff;
    --card-border: #e3ebf6;
    --border-color: #d1dcf0;
    --header-bg: #f2f7fd;
    --feature-bg: #ffffff;
    --category-bg: #ffffff;
    --footer-bg: #f2f7fd;
    --footer-text: var(--accent-color);
    --shadow-color: rgba(30, 82, 168, 0.1);
    --accent-color: #1e52a8;
}

[data-theme="dark"] {
    --bg-main: #0c0a00;
    --text-main: #e0d5c1;
    --text-heading: #d4af37;
    --btn-primary-bg: #d4af37;
    --btn-primary-text: #000000;
    --btn-outline-border: #d4af37;
    --btn-outline-text: #d4af37;
    --card-bg: #151101;
    --card-border: #362c0b;
    --border-color: #362c0b;
    --header-bg: #0c0a00;
    --feature-bg: #151101;
    --category-bg: #151101;
    --footer-bg: #0c0a00;
    --footer-text: #a89a7a;
    --shadow-color: rgba(212, 175, 55, 0.05);
    --accent-color: #d4af37;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    color: var(--text-heading);
    font-family: 'Playfair Display', serif;
}

.body-font {
    font-family: 'Inter', sans-serif;
}

/* Custom Buttons */
.btn-custom-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-bg);
    border-radius: 50px;
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-custom-primary:hover {
    background-color: transparent;
    color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    text-decoration: none;
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--btn-outline-text);
    border: 1px solid var(--btn-outline-border);
    border-radius: 50px;
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-custom-outline:hover {
    background-color: var(--btn-outline-border);
    color: var(--bg-main);
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: var(--header-bg);
    transition: background-color 0.3s ease;
    padding: 2px 0;
    position: relative;
    z-index: 100;
}

html[data-theme="light"] .navbar {
    background-color: transparent;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-color) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--accent-color);
    opacity: 0.9;
}

.navbar-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin: 0;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .navbar-logo-img {
        height: 50px;
        max-width: 55vw;
        margin: 0;
    }
}

.navbar-logo-key {
    display: block;
    width: 80%; /* Slightly smaller than the text width to look balanced */
    height: auto;
    aspect-ratio: 1078 / 360;
    margin-bottom: 6px;
    background-color: var(--accent-color);
    -webkit-mask: url('../images/IMG_8616.PNG') no-repeat center / contain;
    mask: url('../images/IMG_8616.PNG') no-repeat center / contain;
}

.navbar-logo-text {
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin: 0;
    color: #0b2554 !important;
    transition: color 0.3s ease;
}

html[data-theme="dark"] .navbar-logo-text {
    color: #ffffff !important;
}

.navbar-logo-line {
    display: block;
    width: 100%; /* Match the text width exactly */
    height: auto;
    aspect-ratio: 930 / 63;
    margin-top: 6px;
    background-color: var(--accent-color);
    -webkit-mask: url('../images/IMG_8614.PNG') no-repeat center / contain;
    mask: url('../images/IMG_8614.PNG') no-repeat center / contain;
}

.nav-link {
    color: var(--nav-text, #000) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

@media (min-width: 992px) {
    .nav-link {
        font-size: 0.85rem;
        margin: 0 6px;
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1350px) {
    .nav-link {
        font-size: 0.75rem;
        margin: 0 3px;
    }
}

html[data-theme="dark"] .nav-link {
    --nav-text: #ffffff;
}
html[data-theme="light"] .nav-link,
:root .nav-link {
    --nav-text: #000000;
}

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

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 20px;
}

.nav-item.active .nav-link {
    color: var(--accent-color) !important;
}

/* Navbar Actions (Glassmorphism) */
.nav-actions-glass {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 82, 168, 0.15);
    border-radius: 50px;
    padding: 4px 6px;
    gap: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

html[data-theme="dark"] .nav-actions-glass {
    background: rgba(21, 17, 1, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-glass-btn {
    background: transparent;
    border: none;
    color: var(--text-heading);
    border-radius: 50px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    height: 38px;
    cursor: pointer;
}

.nav-glass-btn:hover {
    background: rgba(30, 82, 168, 0.1);
    color: var(--accent-color);
}

html[data-theme="dark"] .nav-glass-btn:hover {
    background: rgba(212, 175, 55, 0.15);
}

.nav-glass-btn i {
    font-size: 1.15rem;
    color: var(--text-heading);
    transition: color 0.3s ease;
}
.nav-glass-btn:hover i {
    color: var(--accent-color);
}

.glass-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    opacity: 0.6;
    margin: 0 4px;
}
html[data-theme="dark"] .glass-divider {
    background-color: rgba(212, 175, 55, 0.3);
}

/* Dropdown Menu Styling */
.nav-actions-glass .dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 8px;
    margin-top: 15px !important;
    min-width: 150px;
}

html[data-theme="dark"] .nav-actions-glass .dropdown-menu {
    background-color: var(--category-bg);
}

.nav-actions-glass .dropdown-item {
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    padding: 8px 16px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-actions-glass .dropdown-item:hover,
.nav-actions-glass .dropdown-item:focus {
    background-color: rgba(30, 82, 168, 0.1);
    color: var(--accent-color);
}

html[data-theme="dark"] .nav-actions-glass .dropdown-item:hover,
html[data-theme="dark"] .nav-actions-glass .dropdown-item:focus {
    background-color: rgba(212, 175, 55, 0.15);
}

/* Hide default bootstrap caret for sleek look */
.nav-glass-btn.dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}
html[dir="rtl"] .nav-glass-btn.dropdown-toggle::after {
    margin-left: 0;
    margin-right: 0.255em;
}

/* Toggler specifics */
.navbar-toggler.nav-glass-btn {
    padding: 6px 12px;
}
.navbar-toggler.nav-glass-btn i {
    font-size: 1.4rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 130px !important;
    position: relative;
    overflow: visible;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.hero-subtitle::before {
    content: "──→";
    margin-right: 10px;
    color: var(--accent-color);
    letter-spacing: -1.5px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.25;
    color: var(--text-main);
}

.hero-title .text-accent {
    color: var(--accent-color);
}

.hero-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    color: var(--text-main);
    line-height: 1.6;
}

.hero-image-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

@media (min-width: 992px) {
    .hero-image-container {
        position: static;
        min-height: auto;
    }
    
    .hero-image {
        position: absolute;
        top: 25%;
        transform: translateY(-50%);
        max-width: 100%;
        max-height: 430px;
        object-fit: contain;
        width: auto;
        z-index: -1; /* MUST be -1 to go beautifully behind navbar and banner */
    }

    html[dir="ltr"] .hero-image {
        right: 5%;
        left: auto;
    }

    html[dir="rtl"] .hero-image {
        left: 5%;
        right: auto;
    }
}

@media (max-width: 991px) {
    .hero-image {
        max-width: 100%;
        max-height: 430px;
        height: auto;
        object-fit: contain;
        margin-top: -20px;
    }
}

.hero-image {
    transition: opacity 0.3s ease;
}

html[data-theme="light"] .hero-image-dark {
    display: none;
}
html[data-theme="light"] .hero-image-light {
    display: block;
}

html[data-theme="dark"] .hero-image-light {
    display: none;
}
html[data-theme="dark"] .hero-image-dark {
    display: block;
    max-height: 420px;
    max-width: 100%;
}

html[dir="ltr"][data-theme="dark"] .hero-image-dark {
    right: 5%;
}

html[dir="rtl"][data-theme="dark"] .hero-image-dark {
    left: 5%;
}

/* Features Banner */
.features-banner {
    background-color: var(--feature-bg);
    border-radius: 15px;
    padding: 20px 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 10px;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    width: 50px;
    height: 50px;
    background-color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h5 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: bold;
}

.feature-text p {
    margin: 0;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    opacity: 0.8;
}

/* Section Headings */
.section-heading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.section-divider {
    width: 130px;
    height: auto;
    transform: scaleY(1.2); /* Make it look slightly bolder/thicker */
    transform-origin: center;
}

/* Category Cards */
.category-card {
    background-color: var(--category-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.category-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-title i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 1.2rem;
}

.category-img-placeholder {
    width: 100%;
    height: 160px;
    background-color: var(--bg-main);
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 0.9rem;
    flex-grow: 1;
    overflow: hidden;
}

.category-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-explore {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    font-weight: 500;
}

.category-explore i {
    color: var(--btn-primary-text);
    background: var(--accent-color);
    border-radius: 50%;
    padding: 3px;
    margin-left: 5px;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Info Sections (Why Choose Us) */
.info-section-wrapper {
    position: relative;
    margin-top: 100px;
}

@media (min-width: 992px) {
    .info-col-left {
        flex: 0 0 65% !important;
        max-width: 65% !important;
    }
    .info-col-right {
        flex: 0 0 35% !important;
        max-width: 35% !important;
    }
}

.info-box-left, .info-box-right {
    background-color: var(--feature-bg);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 10px;
    z-index: 1;
}

html[data-theme="light"] .info-box-left,
html[data-theme="light"] .info-box-right {
    background-color: var(--card-bg);
}

.info-inner-border {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.info-box-left h3, .info-box-right h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.info-list li {
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.info-list li i {
    color: var(--text-heading);
    background: transparent;
    border: 1px solid var(--text-heading);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

html[dir="rtl"] .info-list li i {
    margin-right: 0;
    margin-left: 15px;
}

.info-box-right {
    background-color: var(--feature-bg);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 10px;
    z-index: 1;
}

html[data-theme="light"] .info-box-right {
    background-color: var(--card-bg);
}

.right-text-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Wax Seal Icon */
.seal-icon-new {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #4a80db, #1e52a8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.3), 
        0 5px 15px rgba(0,0,0,0.2),
        0 0 0 4px #1e52a8;
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.2);
}

html[dir="rtl"] .seal-icon-new {
    right: auto;
    left: 30px;
}

html[data-theme="dark"] .seal-icon-new {
    background: radial-gradient(circle at 30% 30%, #c43a3a, #8a1c1c);
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.5), 
        0 5px 15px rgba(0,0,0,0.4),
        0 0 0 4px #8a1c1c; 
    border: 2px solid rgba(255,255,255,0.1);
}

/* Overlapping Phone Mockup */
.left-phone-mockup {
    position: absolute;
    top: -30px;
    width: 230px;
    z-index: 9999;
    pointer-events: none;
}

html[dir="ltr"] .left-phone-mockup {
    right: 15px;
    left: auto;
    top: -40px;
}

html[dir="rtl"] .left-phone-mockup {
    left: 15px;
    right: auto;
    top: -40px;
}

/* LTR and RTL Hand Image Toggling */
html[dir="ltr"] .left-phone-mockup .hand-rtl {
    display: none !important;
}

html[dir="rtl"] .left-phone-mockup .hand-ltr {
    display: none !important;
}

.left-content-wrap {
    max-width: 58%;
}

html[dir="rtl"] .left-content-wrap {
    margin-right: 0;
    margin-left: auto;
}

.center-phone-mockup {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    z-index: 10;
    pointer-events: none;
}

html[dir="rtl"] .center-phone-mockup {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.center-phone-mockup img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
}

.rtl-flip {
    display: inline-block;
}
html[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
}

/* Footer Base / Light Mode */
.footer {
    background-color: #f2f7fd;
    border-top: 1px solid #d6e3f5;
    padding: 18px 0 8px;
    margin-top: 20px !important;
    font-family: 'Inter', sans-serif;
    color: #4a5e82;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    cursor: pointer;
}

.footer-logo-key {
    display: block;
    width: 44px;
    height: auto;
    aspect-ratio: 1078 / 360;
    margin-bottom: 4px;
    background-color: #1e52a8;
    -webkit-mask: url('../images/IMG_8616.PNG') no-repeat center / contain;
    mask: url('../images/IMG_8616.PNG') no-repeat center / contain;
    transition: background-color 0.3s ease;
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.5px;
    margin: 0;
    color: #1e52a8 !important;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.footer-logo-line {
    display: block;
    width: 140px;
    height: auto;
    aspect-ratio: 930 / 63;
    margin-top: 4px;
    background-color: #1e52a8;
    -webkit-mask: url('../images/IMG_8614.PNG') no-repeat center / contain;
    mask: url('../images/IMG_8614.PNG') no-repeat center / contain;
    transition: background-color 0.3s ease;
}

.footer-desc {
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
    transition: color 0.3s ease;
}

.footer h5, .footer-heading {
    color: #1e52a8 !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    transition: color 0.3s ease;
}

.footer-col-border {
    border-left: 1px solid #dce6f5;
}

html[dir="rtl"] .footer-col-border {
    border-left: none;
    border-right: 1px solid #dce6f5;
}

@media (max-width: 991px) {
    .footer-col-border,
    html[dir="rtl"] .footer-col-border {
        border-left: none;
        border-right: none;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1e52a8;
    text-decoration: none;
}

.footer-support {
    color: #1e52a8;
    font-weight: 500;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    transition: color 0.3s ease;
    margin-bottom: 14px;
}

.footer-support i {
    color: #1e52a8;
    font-size: 1.1rem;
}

.footer-support:hover {
    color: #0b2554;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #e5effd;
    color: #1e52a8;
    border-radius: 50%;
    margin-right: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #c7dcfb;
    font-size: 0.85rem;
}

.social-icons a:hover {
    background-color: #1e52a8;
    color: #ffffff;
    border-color: #1e52a8;
    transform: translateY(-2px);
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 14px;
    width: 160px;
    background-color: #000000;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.store-badge:hover {
    border-color: #666666;
    background-color: #1a1a1a;
    color: #ffffff;
}

.store-badge .badge-icon {
    font-size: 1.5rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.store-badge .badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

html[dir="rtl"] .store-badge .badge-text {
    text-align: right;
}

.store-badge .badge-sub {
    font-size: 0.58rem;
    text-transform: uppercase;
    color: #a0a0a0;
    line-height: 1.1;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.store-badge .badge-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.footer-bottom {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #dce6f5;
    text-align: center;
    color: #5a739c;
    font-family: 'Playfair Display', serif;
    font-size: 0.88rem;
    transition: color 0.3s ease;
}

/* Dark Mode Footer Overrides */
html[data-theme="dark"] .footer {
    background-color: #090806 !important;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    color: #b8aa93;
}

html[data-theme="dark"] .footer-logo-key {
    background-color: #d4af37;
}

html[data-theme="dark"] .footer-logo-text {
    color: #e6c88b !important;
}

html[data-theme="dark"] .footer-logo-line {
    background-color: #d4af37;
}

html[data-theme="dark"] .footer-desc {
    color: var(--accent-color);
}

html[data-theme="dark"] .footer h5,
html[data-theme="dark"] .footer-heading {
    color: var(--accent-color) !important;
}

html[data-theme="dark"] .footer-col-border {
    border-left: 1px solid rgba(212, 175, 55, 0.15);
}

html[dir="rtl"][data-theme="dark"] .footer-col-border {
    border-left: none;
    border-right: 1px solid rgba(212, 175, 55, 0.15);
}

html[data-theme="dark"] .footer-links a {
    color: var(--accent-color);
}

html[data-theme="dark"] .footer-links a:hover {
    color: #e6c88b;
}

html[data-theme="dark"] .footer-support {
    color: var(--accent-color);
}

html[data-theme="dark"] .footer-support i {
    color: #d4af37;
}

html[data-theme="dark"] .footer-support:hover {
    color: #e6c88b;
}

html[data-theme="dark"] .social-icons a {
    background-color: transparent;
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

html[data-theme="dark"] .social-icons a:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: #ffffff;
    border-color: #d4af37;
}

/* Removed store badge dark theme overrides since they are now dark by default */

html[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    .features-banner {
        margin-top: 30px;
    }
    .info-section-wrapper {
        margin-top: 60px;
    }
    .hero-image-container {
        min-height: auto;
        margin-top: 40px;
    }
    .category-img-placeholder {
        height: 130px;
    }
    
    /* Mobile Menu Glassmorphism Dropdown */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(30, 82, 168, 0.15);
        border-radius: 16px;
        padding: 20px;
        margin-top: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        position: absolute !important;
        top: 100%;
        left: 15px;
        right: 15px;
        z-index: 1000;
        transform-origin: top center;
    }
    
    html[data-theme="dark"] .navbar-collapse {
        background: rgba(21, 17, 1, 0.95);
        border: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 5px;
    }

    .navbar-collapse .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(30, 82, 168, 0.1);
    }
    
    html[data-theme="dark"] .navbar-collapse .nav-item {
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .navbar-collapse .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-collapse .nav-link {
        margin: 0 !important;
        padding: 12px 0 !important;
        font-size: 1.05rem;
    }
    
    .navbar-collapse .nav-link::after {
        display: none !important; /* Hide hover line on mobile */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-text {
        font-size: 1rem;
    }
    .features-banner .row > div {
        margin-bottom: 15px;
    }
    .category-card {
        margin-bottom: 20px;
    }
    .category-img-placeholder {
        height: 110px;
    }
    
    .center-phone-mockup {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: -40px auto -20px;
        width: 220px;
        order: 2;
    }
    .info-box-left { 
        margin-bottom: 20px;
    }
    .info-box-left h3, .info-box-right h3 {
        font-size: 1.6rem;
    }
    .seal-icon-new {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .section-heading {
        font-size: 1.8rem;
    }
}

/* Terms & Conditions Styles */
.terms-container {
    max-width: 900px;
    margin: 0 auto;
}

.term-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.term-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-color) !important;
}

.term-heading {
    color: var(--text-heading);
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.term-body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
}

.term-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.term-content.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.see-more-btn {
    color: var(--accent-color);
    font-size: 0.95rem;
    cursor: pointer;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.see-more-btn:hover {
    color: var(--text-heading);
}

.see-more-btn i {
    font-size: 0.8rem;
}

/* RTL Layout Fixes */
html[dir="rtl"] .feature-icon {
    margin-left: 15px;
    margin-right: 0;
}
html[dir="rtl"] .info-list li i {
    margin-left: 15px;
    margin-right: 0;
}
html[dir="rtl"] .footer-support i {
    margin-left: 10px;
    margin-right: 0;
}
html[dir="rtl"] .social-icons a {
    margin-left: 10px;
    margin-right: 0;
}
html[dir="rtl"] .app-badges .badge-placeholder {
    margin-left: 10px;
    margin-right: 0;
}

html[dir="rtl"] .key-image-contact {
    left: 40px !important;
    right: auto !important;
}

html[dir="ltr"] .key-image-contact {
    right: 40px !important;
    left: auto !important;
}

/* Privacy Policy Redesign Layout */
.privacy-hero-subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--accent-color);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.privacy-title-styled {
    font-size: 3.5rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .privacy-title-styled {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .privacy-title-styled {
        font-size: 1.15rem;
        white-space: nowrap !important;
    }
    .hero-title.text-wrap {
        font-size: 1.15rem;
        white-space: nowrap !important;
    }
}

.privacy-intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main);
    max-width: 620px;
    opacity: 0.9;
}

.effective-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--feature-bg);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--text-main);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.effective-date-badge i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Outer Section Grid Box */
.privacy-outer-box {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    position: relative;
}

/* Card Cell Grid Borders */
.privacy-card-cell {
    padding: 28px 32px;
    position: relative;
    transition: background-color 0.3s ease;
}

.privacy-card-cell:hover {
    background-color: rgba(212, 175, 55, 0.02);
}

/* Inner borders between cells */
.privacy-border-top {
    border-top: 1px solid var(--card-border);
}

.privacy-border-bottom {
    border-bottom: 1px solid var(--card-border);
}

@media (min-width: 768px) {
    html[dir="ltr"] .privacy-border-right-md {
        border-right: 1px solid var(--card-border);
    }
    html[dir="rtl"] .privacy-border-right-md {
        border-left: 1px solid var(--card-border);
    }
}

/* Circular Emblem Icon */
.privacy-emblem {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-color);
    background-color: var(--feature-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1), 0 2px 8px var(--shadow-color);
}

.privacy-emblem i {
    color: var(--accent-color);
    font-size: 1.35rem;
}

/* Content & Typography */
.privacy-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.privacy-section-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-main);
    opacity: 0.9;
}

/* Bullet Points */
.privacy-bullets {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 0;
}

html[dir="rtl"] .privacy-bullets {
    padding-right: 0;
}

.privacy-bullets li {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.9;
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

html[dir="rtl"] .privacy-bullets li {
    padding-left: 0;
    padding-right: 18px;
}

.privacy-bullets li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: -1px;
}

html[dir="rtl"] .privacy-bullets li::before {
    left: auto;
    right: 0;
}

/* Contact Bottom Card */
.privacy-contact-cell {
    background-color: rgba(30, 82, 168, 0.03);
    border-top: 1px solid var(--card-border);
}

html[data-theme="dark"] .privacy-contact-cell {
    background-color: rgba(212, 175, 55, 0.03);
}

.privacy-contact-email {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.privacy-contact-email:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Terms & Conditions Specific Styles */
.terms-clamp-2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.see-more-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background-color: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.see-more-card-btn:hover {
    background-color: var(--accent-color);
    color: var(--btn-primary-text, #ffffff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Section Focus Highlight Effect on Detail Page */
.section-target-highlight {
    animation: goldPulseHighlight 2.5s ease-in-out forwards;
}

@keyframes goldPulseHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
        border-color: var(--accent-color);
    }
    30% {
        box-shadow: 0 0 25px 8px rgba(212, 175, 55, 0.4);
        background-color: rgba(212, 175, 55, 0.08);
        border-color: var(--accent-color);
    }
    100% {
        box-shadow: none;
    }
}

/* Horizontal Scroll Categories */
.category-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 15px 10px; /* Added padding to prevent hover cutoff */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}
.category-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.category-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.category-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}
.category-scroll-card {
    height: 180px;
    flex: 0 0 auto;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.category-scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}
.category-scroll-img {
    width: auto;
    height: 100%;
    object-fit: cover;
    padding: 0;
    display: block;
    border-radius: 15px;
    transform: scale(1.08); /* Crops the baked-in black margins perfectly */
}
.category-scroll-title {
    display: none;
}

/* Mobile adjustments for Why Choose Us section */
@media (max-width: 991px) {
    .info-box-left { height: auto !important; min-height: 335px; overflow: visible !important; }
    .left-content-wrap h3 { font-size: 1.35rem !important; }
    .left-content-wrap .info-list { font-size: 0.85rem !important; }
    
    /* On tablet, make the image smaller and push it far to the edge */
    .left-content-wrap { max-width: 65% !important; padding-bottom: 20px !important; }
    html[dir='rtl'] .left-content-wrap { max-width: 65% !important; }
    
    .left-phone-mockup { width: 220px !important; top: auto !important; bottom: -30px !important; z-index: 5 !important; }
    html[dir='ltr'] .left-phone-mockup { right: -20px !important; }
    html[dir='rtl'] .left-phone-mockup { left: -20px !important; }
}

@media (max-width: 767px) {
    /* On mobile phones, make the image a sophisticated background watermark */
    .left-content-wrap { max-width: 100% !important; padding-bottom: 30px !important; text-align: center !important; }
    html[dir='rtl'] .left-content-wrap { max-width: 100% !important; }
    .left-content-wrap .section-divider { margin: 0 auto !important; }
    
    /* Center text inside the wrap for better mobile feel */
    .left-content-wrap .info-list { display: inline-block; text-align: left; margin: 0 auto; }
    html[dir='rtl'] .left-content-wrap .info-list { text-align: right; }
    
    .left-phone-mockup { 
        width: 180px !important; 
        top: 50% !important; 
        bottom: auto !important;
        opacity: 0.15 !important; 
        z-index: 1 !important; /* Behind text */
        pointer-events: none;
    }
    
    /* Center the watermark perfectly */
    html[dir='ltr'] .left-phone-mockup { right: 50% !important; transform: translate(50%, -50%) !important; }
    html[dir='rtl'] .left-phone-mockup { left: 50% !important; transform: translate(-50%, -50%) !important; }
}

/* Remove spaces between sections on mobile */
@media (max-width: 767px) {
    section.container, .hero-section, .info-section-wrapper {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    
    /* Remove the gap between the two boxes in Why Choose Us on mobile */
    .info-col-left {
        margin-bottom: 10px !important;
    }
    
    /* Browse Category heading wrapper */
    .section-heading-wrapper {
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }
    .category-scroll-wrapper {
        margin-top: 10px !important;
    }
}

/* Privacy Policy Layout & TOC */
.privacy-text-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.privacy-text-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.privacy-see-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    padding: 0;
    margin-top: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.privacy-see-more-btn:hover {
    color: var(--text-heading);
}

.privacy-toc-card {
    background-color: var(--feature-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px var(--shadow-color);
}
.privacy-toc-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-heading);
    margin-bottom: 20px;
}
.privacy-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 40px;
}
.privacy-toc-list li {
    margin-bottom: 12px;
    break-inside: avoid;
}
.privacy-toc-list a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.privacy-toc-list a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .privacy-toc-list {
        columns: 1;
    }
}

/* Logo Theme Switching */
.theme-logo-dark { display: none !important; }
.theme-logo-light { display: inline-block !important; }

html[data-theme="dark"] .theme-logo-dark { display: inline-block !important; }
html[data-theme="dark"] .theme-logo-light { display: none !important; }
