/*
Theme Name: Iyi Finans
Theme URI: https://www.iyifinans.com/
Author: Gemini
Author URI: https://gemini.google.com/
Description: Iyi Finans WordPress theme, based on the React prototype.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, custom-menu, featured-images, theme-options
Text Domain: iyifinans
*/

/* CSS Reset - Override WordPress defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default link decorations */
a {
    text-decoration: none !important;
    color: inherit;
}

a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    outline: none;
}

/* Remove button defaults */
button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: none !important;
}

button:focus {
    outline: none;
}

/* Remove input defaults */
input,
textarea,
select {
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
}

/* CSS Custom Properties for Theme Colors */
:root {
    --primary: #00339F;
    --secondary: #00DB2E;
    --accent: #FABE24;
    --light: #CFD9F0;
    --medium: #B5C3E0;
    --text-dark: #1A2A4C;
    --text-light: #F0F4FF;
    --page-bg: #F7F9FC;
}

/* Base Styles - Ensure compatibility with WordPress */
body {
    font-family: 'Montserrat', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6;
    color: var(--text-dark);
}

/* WordPress Reset Overrides */
.site {
    text-decoration: none !important;
}

/* Custom Color Classes - Override Tailwind when needed */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-medium {
    background-color: var(--medium) !important;
}

.bg-text-dark {
    background-color: var(--text-dark) !important;
}

.bg-text-light {
    background-color: var(--text-light) !important;
}

.bg-page-bg {
    background-color: var(--page-bg) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

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

.text-medium {
    color: var(--medium) !important;
}

.text-text-dark {
    color: var(--text-dark) !important;
}

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

/* Border colors */
.border-primary {
    border-color: var(--primary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

.border-light {
    border-color: var(--light) !important;
}

.border-medium {
    border-color: var(--medium) !important;
}

/* Hover states */
.hover\:bg-light:hover {
    background-color: var(--light) !important;
}

.hover\:bg-medium:hover {
    background-color: var(--medium) !important;
}

.hover\:bg-primary:hover {
    background-color: var(--primary) !important;
}

.hover\:text-primary:hover {
    color: var(--primary) !important;
}

.hover\:text-white:hover {
    color: white !important;
}

.hover\:text-secondary:hover {
    color: var(--secondary) !important;
}

.hover\:opacity-90:hover {
    opacity: 0.9 !important;
}




/* Custom Button System - Bootstrap Style with Theme Colors */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Primary Button - Solid primary color */
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #002a85;
    color: white;
    border-color: #002a85;
}

/* Primary Gradient Button - Like sidebar */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: var(--primary);
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    border-color: var(--secondary);
}

/* Secondary Button - Solid secondary color */
.btn-secondary {
    background: var(--secondary) !important;
    color: white;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: #02b3b0;
    color: white;
    border-color: #02b3b0;
}

/* Success Button - Using secondary color */
.btn-success {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-success:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Warning Button - Using accent color */
.btn-warning {
    background: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

.btn-warning:hover {
    background: #e6a61a;
    color: var(--text-dark);
    border-color: #e6a61a;
}

/* Light Button */
.btn-light {
    background: var(--light);
    color: var(--text-dark);
    border-color: var(--light);
}

.btn-light:hover {
    background: var(--medium);
    color: var(--text-dark);
    border-color: var(--medium);
}

/* Dark Button */
.btn-dark {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
}

.btn-dark:hover {
    background: #0f1829;
    color: white;
    border-color: #0f1829;
}

/* Outline Variants - These have borders */
.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.btn-outline-secondary:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Size Variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    border-radius: 1rem;
}

/* Full Width Button */
.btn-block {
    display: flex;
    width: 100%;
}

/* Icon Button Spacing */
.btn i {
    margin-right: 0.5rem;
}

.btn i:last-child {
    margin-left: 0.5rem;
}

.btn i:only-child {}

/* Special Gradient Button */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    color: white;
    border-color: var(--primary);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 50%, var(--primary) 100%);
    color: white;
    border-color: var(--secondary);
}

/* WordPress specific overrides */
.wp-block-button .wp-block-button__link {
    background-color: var(--primary) !important;
    color: white !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.wp-block-button .wp-block-button__link:hover {
    background-color: var(--secondary) !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* Navigation overrides */
nav a,
.menu a,
header a {
    text-decoration: none !important;
}

nav a:hover,
.menu a:hover,
header a:hover {
    text-decoration: none !important;
}

/* Custom utility for font family */
.font-montserrat {
    font-family: 'Montserrat', sans-serif !important;
}

/* Text opacity variants - matching prototype exactly */
.text-text-dark\/80 {
    color: rgba(26, 42, 76, 0.8) !important;
}

.text-text-dark\/70 {
    color: rgba(26, 42, 76, 0.7) !important;
}

.text-text-dark\/60 {
    color: rgba(26, 42, 76, 0.6) !important;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white\/60 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Background opacity variants */
.bg-primary\/10 {
    background-color: rgba(0, 51, 159, 0.1) !important;
}

.bg-secondary\/10 {
    background-color: rgba(3, 207, 203, 0.1) !important;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.bg-white\/80 {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

.bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.bg-page-bg\/80 {
    background-color: rgba(247, 249, 252, 0.8) !important;
}

/* Border opacity variants */
.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.border-white\/50 {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Gradient backgrounds */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops)) !important;
}

.from-secondary {
    --tw-gradient-from: var(--secondary) !important;
    --tw-gradient-to: rgba(3, 207, 203, 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-primary {
    --tw-gradient-to: var(--primary) !important;
}

.from-primary {
    --tw-gradient-from: var(--primary) !important;
    --tw-gradient-to: rgba(0, 51, 159, 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-secondary {
    --tw-gradient-to: var(--secondary) !important;
}

/* Remove WordPress theme.css defaults that cause underlines */
#site-navigation a,
.main-navigation a,
.site-header a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Ensure clean button appearance matching prototype */
.inline-block,
.block {
    text-decoration: none !important;
}

/* Font family */
.font-montserrat {
    font-family: 'Montserrat', sans-serif !important;
}

/* Custom utility classes that may not be covered by Tailwind CDN */
.rotate-180 {
    transform: rotate(180deg);
}

.max-h-96 {
    max-height: 24rem;
}

/* Ensure smooth transitions for FAQ items */
.faq-content {
    transition: max-height 0.3s ease-in-out;
}

/* Additional responsive utilities if needed */
/* lg:hidden handled by Tailwind CDN */

/* Ensure proper layering for overlays and sidebars */
.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Accessibility improvements */
.screen-reader-text {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* WordPress specific fixes */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    margin-top: 8px;
}

/* Loading animation for buttons */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Smooth entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced focus states for accessibility */
*:focus {
    outline: 2px solid #03CFCB;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #03CFCB;
    outline-offset: 2px;
}

/* Better form styling */
input[type="checkbox"]:checked {
    background-color: #03CFCB;
    border-color: #03CFCB;
}

/* Enhanced hover effects */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Text opacity variants */
.text-text-dark\/80 {
    color: rgba(26, 42, 76, 0.8) !important;
}

.text-text-dark\/70 {
    color: rgba(26, 42, 76, 0.7) !important;
}

.text-text-dark\/60 {
    color: rgba(26, 42, 76, 0.6) !important;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white\/60 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Border colors */
.border-primary {
    border-color: var(--primary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

.border-light {
    border-color: var(--light) !important;
}

.border-medium {
    border-color: var(--medium) !important;
}

/* Background opacity variants */
.bg-primary\/10 {
    background-color: rgba(0, 51, 159, 0.1) !important;
}

.bg-secondary\/10 {
    background-color: rgba(3, 207, 203, 0.1) !important;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.bg-white\/80 {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

.bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.bg-blue-800\/50 {
    background-color: rgba(30, 64, 175, 0.5) !important;
}

/* Border opacity variants */
.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.border-white\/50 {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Gradient backgrounds */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops)) !important;
}

.from-secondary {
    --tw-gradient-from: var(--secondary) !important;
    --tw-gradient-to: rgba(3, 207, 203, 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-primary {
    --tw-gradient-to: var(--primary) !important;
}

.from-primary {
    --tw-gradient-from: var(--primary) !important;
    --tw-gradient-to: rgba(0, 51, 159, 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-secondary {
    --tw-gradient-to: var(--secondary) !important;
}

.from-secondary\/10 {
    --tw-gradient-from: rgba(3, 207, 203, 0.1) !important;
    --tw-gradient-to: rgba(3, 207, 203, 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-primary\/10 {
    --tw-gradient-to: rgba(0, 51, 159, 0.1) !important;
}

.via-white\/80 {
    --tw-gradient-to: rgba(255, 255, 255, 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), rgba(255, 255, 255, 0.8), var(--tw-gradient-to) !important;
}

.to-transparent {
    --tw-gradient-to: transparent !important;
}

/* Hover states */
.hover\:bg-light:hover {
    background-color: var(--light) !important;
}

.hover\:bg-medium:hover {
    background-color: var(--medium) !important;
}

.hover\:bg-primary:hover {
    background-color: var(--primary) !important;
}

.hover\:text-primary:hover {
    color: var(--primary) !important;
}

.hover\:text-white:hover {
    color: white !important;
}

.hover\:border-white\/20:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Focus states */
.focus\:ring-secondary\/80:focus {
    --tw-ring-color: rgba(3, 207, 203, 0.8) !important;
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
}

.focus\:ring-offset-primary:focus {
    --tw-ring-offset-color: var(--primary) !important;
}

/* Font family */
.font-montserrat {
    font-family: 'Montserrat', sans-serif !important;
}

/* Custom utility classes that may not be covered by Tailwind CDN */
.rotate-180 {
    transform: rotate(180deg);
}

.max-h-96 {
    max-height: 24rem;
}

/* Ensure smooth transitions for FAQ items */
.faq-content {
    transition: max-height 0.3s ease-in-out;
}

/* Additional responsive utilities if needed */
/* lg:hidden handled by Tailwind CDN */

/* Ensure proper layering for overlays and sidebars */
.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Accessibility improvements */
.screen-reader-text {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* WordPress specific fixes */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    margin-top: 8px;
}

/* Loading animation for buttons */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Smooth entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced focus states for accessibility */
*:focus {
    outline: 2px solid #03CFCB;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #03CFCB;
    outline-offset: 2px;
}

/* Better form styling */
input[type="checkbox"]:checked {
    background-color: #03CFCB;
    border-color: #03CFCB;
}

/* Enhanced hover effects */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Custom utility classes that may not be covered by Tailwind CDN */
.rotate-180 {
    transform: rotate(180deg);
}

.max-h-96 {
    max-height: 24rem;
}

/* Ensure smooth transitions for FAQ items */
.faq-content {
    transition: max-height 0.3s ease-in-out;
}

/* Additional responsive utilities if needed */
/* lg:hidden handled by Tailwind CDN */

/* Ensure proper layering for overlays and sidebars */
.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Accessibility improvements */
.screen-reader-text {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* WordPress specific fixes */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    margin-top: 8px;
}

/* Loading animation for buttons */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Smooth entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced focus states for accessibility */
*:focus {
    outline: 2px solid #03CFCB;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 0px solid #03CFCB;
    outline-offset: 2px;
}

/* Better form styling */
input[type="checkbox"]:checked {
    background-color: #03CFCB;
    border-color: #03CFCB;
}

/* Enhanced hover effects */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* ===== Product Tabs Styles ===== */
.product-tab {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--light);
    color: var(--text-dark);
    border: none;
    outline: none;
    border-radius: 0;
    flex: 1;
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.product-tab:hover {
    background-color: var(--medium) !important;
    color: var(--text-dark) !important;
}

.product-tab.tab-active {
    background-color: var(--secondary) !important;
    color: white !important;
    border-bottom-color: var(--secondary) !important;
}

.product-tab i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Duplicate product tabs section removed */


/* ===== Mobile & General Fixes ===== */

/* Line clamp support for text truncation */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile carousel fixes */
@media (max-width: 767px) {

    /* Ensure mobile footer is visible */
    .mobile-footer {
        display: flex !important;
    }
}

/* Ensure mobile elements are hidden on desktop */
@media (min-width: 1024px) {
    .mobile-footer {
        display: none !important;
    }
}

/* ===== Mobile Sidebar Fix ===== */
@media (max-width: 1023px) {

    /* Force sidebar menu text to be visible on mobile */
    #left-sidebar span {
        opacity: 1 !important;
        width: auto !important;
    }

    /* Ensure sidebar is full width when open on mobile */
    #left-sidebar {
        width: 16rem !important;
        /* w-64 equivalent */
    }

    /* Hide campaign area on mobile sidebar */
    #left-sidebar .sidebar-campaign {
        display: none !important;
    }
}

/* ===== Mobile Footer & Spacing Fixes ===== */

/* Add bottom padding to body on mobile to prevent footer overlap */
@media (max-width: 1024px) {
    body {
        padding-bottom: 80px;
        /* Height of mobile footer */
    }
}

/* Mobile footer should be above sidebar */
.mobile-footer {
    z-index: 50 !important;
    /* Higher than sidebar z-index */
    height: 80px;
    /* Define footer height for consistent spacing */
}

/* Reduce section spacing on mobile for better UX */
@media (max-width: 768px) {
    .space-y-24>*+* {
        margin-top: 3rem !important;
        /* 12 spacing instead of 24 */
    }

    /* Specific section padding adjustments */
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Calculator section padding on mobile */
    .bg-primary.p-8 {
        padding: 1.5rem !important;
    }
}

/* Sidebar z-index should be lower than mobile footer */
#left-sidebar {
    z-index: 40 !important;
}

/* ===== Hamburger Menu Button Fix ===== */
/* Prevent button reset styles from affecting hamburger menu */
#flyout-menu-open {
    background: transparent !important;
    border: none !important;
    padding: 0.25rem !important;
    font-size: 1.5rem !important;
    color: #1A2A4C !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    line-height: 1 !important;
    /* Don't force display to override lg:hidden */
}

@media (max-width: 1023px) {
    #flyout-menu-open {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    #flyout-menu-open {
        display: none !important;
    }
}

#flyout-menu-open:hover {
    color: #00339F !important;
}

#flyout-menu-open i {
    display: block !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
}

/* ===== Flyout Menu Custom Styles ===== */
/* Overlay */
.flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    /* Higher than mobile footer (50) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* When overlay is active (not hidden) */
.flyout-overlay:not(.opacity-0):not(.pointer-events-none) {
    opacity: 1;
    pointer-events: auto;
}

/* Backdrop */
.flyout-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    /* Darker overlay */
}

/* Panel */
.flyout-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 320px;
    background: white;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    transform: translateX(100%);
    /* Initially hidden */
    display: flex;
    flex-direction: column;
}

/* When panel is active (not translated) */
.flyout-panel:not(.translate-x-full) {
    transform: translateX(0);
}

/* Header */
.flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--light);
    height: 80px;
}

/* Logo */
.flyout-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flyout-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.flyout-logo-image {
    width: 150px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.flyout-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Close Button */
.flyout-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.25rem;
}

.flyout-close-btn:hover {
    color: var(--primary);
}

/* Navigation */
.flyout-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.flyout-nav>div {
    margin-bottom: 0.5rem;
}

.flyout-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.flyout-nav a:hover {
    background-color: var(--light);
}

/* Footer */
.flyout-footer {
    padding: 1rem;
    border-top: 1px solid var(--light);
}

/* Phone Button */
.flyout-phone-btn {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background-color: var(--light);
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease;
}

.flyout-phone-btn:hover {
    background-color: var(--medium);
}

.flyout-phone-btn i {
    margin-right: 0.5rem;
}

/* Social Links */
.flyout-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

.flyout-social-link {
    color: rgba(26, 42, 76, 0.7);
    font-size: 1.25rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.flyout-social-link:hover {
    color: var(--primary);
}

/* Show only on mobile */
@media (min-width: 1024px) {
    .flyout-overlay {
        display: none !important;
    }
}

/* ===== Contact Modal Styles ===== */ 
#contact-modal {
	backdrop-filter: blur(4px);
} 

#contact-modal:not(.opacity-0):not(.pointer-events-none) {
	opacity: 1;
	pointer-events: auto;
} 

#contact-modal:not(.opacity-0) .bg-white:not(.scale-95) {
	transform: scale(1); 
} 

#contact-modal .bg-white {
	transform: scale(0.95); 
	transition: transform 0.3s ease; 
} 


/* Modal responsive adjustments */
@media (max-width: 480px) {
    #contact-modal .bg-white {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
}

/* ========== BRANCHES PAGE STYLES ========== */
/* Branch card hover effects */
.branch-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

/* Branch location icon styles */
.branch-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    transition: transform 0.3s ease;
}

.branch-card:hover .branch-icon {
    transform: scale(1.1);
}

/* Map button hover effect */
.map-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.map-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.map-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.map-button:hover::before {
    left: 100%;
}

/* Branch grid responsive */
.branches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 1023px) {
    .branches-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Branch contact info */
.branch-phone {
    transition: color 0.3s ease;
}

.branch-phone:hover {
    color: var(--color-primary);
}

/* City/District styling */
.branch-city {
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: 0.025em;
}

.branch-district {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: capitalize;
}

/* Additional info section */
.branch-info-section {
    background: linear-gradient(135deg,
            rgba(255, 102, 0, 0.1) 0%,
            rgba(255, 165, 0, 0.1) 100%);
    border: 1px solid rgba(255, 102, 0, 0.2);
}

/* ===== Sidebar Tooltip System ===== */
/* Tooltip Styles - Only visible on desktop (lg and above) */
@media (min-width: 1024px) {
    .tooltip {
        position: fixed;
        background: rgba(15, 23, 42, 0.95);
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        z-index: 9999;
        pointer-events: none;
        opacity: 0;
        transform: translateY(-5px);
        transition: all 0.2s ease;
        white-space: nowrap;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }

    .tooltip.show {
        opacity: 1;
        transform: translateY(0);
    }

    .tooltip::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -5px;
        transform: translateY(-50%);
        border: 5px solid transparent;
        border-right-color: rgba(15, 23, 42, 0.95);
    }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 30px;
  margin-bottom: 40px;
}

.post-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #222;
}

.meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

.featured-image img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.blog-detail h1 {
  display: block;
  font-size: 2em;
  margin-top: 0.67em;
  margin-bottom: 0.67em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

.blog-detail h2 {
  display: block;
  font-size: 1.5em;
  margin-top: 0.83em;
  margin-bottom: 0.83em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

.blog-detail h3 {
  display: block;
  font-size: 1.17em;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

.blog-detail h4 {
  display: block;
  font-size: 1em;
  margin-top: 1.33em;
  margin-bottom: 1.33em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}
.blog-detail p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.blog-detail ul {
  display: block;
  list-style-type: disc;
  margin-top: 1em;
  margin-bottom: 1 em;
  margin-left: 0;
  margin-right: 0;
  padding-left: 40px;
}

.blog-detail ol {
  display: block;
  list-style-type: decimal;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
  padding-left: 40px;
}

.blog-detail li {
  display: list-item;
}

.blog-detail table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.blog-detail th,
.blog-detail td {
  border: 1px solid #ddd;
  padding: 10px 15px;
  text-align: left;
}

.blog-detail th {
  background-color: #f5f5f5;
  color: #000;
  font-weight: 600;
}

.page-title { font-size: 28px; margin: 0 0 16px; }

.cards-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.card-img { width: 100%; height: 190px; object-fit: cover; display: block; }
.card-body { padding: 14px; }
.card .meta { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.card-title { font-size: 18px; margin: 0; }
.card-excerpt { font-size: 14px; color: #4b5563; margin-top: 6px; }

