/* =============================================
   Modern CSS Reset & Base Styles
   Updated: 2024 - Using modern CSS features
   ============================================= */

:root {
    /* Color System */
    --teal: #00474a;
    --teal-light: #006164;
    --teal-dark: #003639;
    --gold: #c9b16c;
    --gold-light: #dac686;
    --gold-dark: #a89250;
    --gold-bright: #e8d9a0;
    --white: #ffffff;
    --black: #0a0a0a;

    /* Typography Scale */
    --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-logo: 'Cinzel', var(--font-heading);

    /* Spacing Scale (8px base) */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 5px 20px rgba(201, 177, 108, 0.4);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 1500;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--teal);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button, input, select, textarea {
    font: inherit;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

section {
    padding-block: var(--space-2xl);
    position: relative;
    scroll-margin-top: 25px;
}

/* Button Component */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    color: var(--teal);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 177, 108, 0.5);
}

.btn:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-light) 100%);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-slow);
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Particle Container - PS3 Wave Animation (Hero Section) */
#particles-js {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent;
    pointer-events: none;
}

#particles-js canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background: rgba(0, 71, 74, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(201, 177, 108, 0.3);
}

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

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

/* Style the inline SVG */
.header-logo-svg {
    /* Set size via CSS */
    width: 60px;
    height: 60px;
    margin-right: 10px;
    /* Set the fill color */
    fill: var(--gold);
    /* Removed positioning tweak */
}

.logo-text {
    font-family: 'Playfair Display', serif;
}

.logo-text h1 {
    font-family: 'Cinzel', serif; /* Apply Cinzel font */
    font-size: 26px; /* Slightly increased size */
    color: var(--gold);
    margin: 0;
    letter-spacing: 1px;
    font-weight: 700; /* Cinzel has weights up to 900, 700 should be fine */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 22px; /* Revert to original size or slightly larger if needed */
    }
}

.logo-text p {
    font-size: 12px;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--gold);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--gold);
    cursor: pointer;
}

/* Hero Section */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 71, 74, 0.9), rgba(0, 61, 64, 0.95)), url('https://images.unsplash.com/photo-1601121141461-9d6647bca1ed?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--gold);
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -60px;
    width: 50px;
    height: 1px;
    background: var(--gold);
}

.hero-title {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(201, 177, 108, 0.3);
    z-index: -1;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 600px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.element-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: float 20s infinite linear;
}

.element-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: 10%;
    animation: float 15s infinite linear reverse;
}

.element-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 25%;
    animation: float 18s infinite linear;
}

.decorators-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decorator {
    position: absolute;
    color: var(--gold);
    opacity: 0;
    animation: twinkle-random var(--duration, 5s) var(--delay, 0s) infinite ease-in-out;
}

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

@keyframes twinkle-random {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: var(--max-opacity, 0.4);
        transform: scale(1.1) rotate(10deg);
    }
}

/* About Section */
#about {
    background: linear-gradient(to bottom, var(--teal), var(--teal-light));
    position: relative;
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.about-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.about-slideshow .slide.active {
    opacity: 1;
}

.about-image img:not(.slide) {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    z-index: 1;
}

.about-content {
    flex: 1;
}

.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gold);
}

.section-title span {
    color: var(--gold);
}

.about-text {
    margin-bottom: 30px;
    line-height: 1.8;
}

.expertise-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.expertise-item {
    display: flex;
    align-items: center;
}

.expertise-item-full {
    grid-column: 1 / -1;
}

.expertise-icon {
    margin-right: 15px;
    font-size: 24px;
    color: var(--gold);
}

.bis-logo {
    height: 20px;
    width: auto;
    margin-right: 15px;
    filter: brightness(0) saturate(100%) invert(76%) sepia(30%) saturate(491%) hue-rotate(6deg) brightness(91%) contrast(87%);
}

.mandala-decoration {
    position: absolute;
    width: 600px;
    height: 600px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48cGF0aCBkPSJNMTAwLDEwIG0tOTAsMCBhOTAsOTAgMCAxLDAgMTgwLDAgYTkwLDkwIDAgMSwwIC0xODAsMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYzliMTZjIiBzdHJva2Utd2lkdGg9IjAuMiIgb3BhY2l0eT0iMC4xIi8+PHBhdGggZD0iTTEwMCwxMCBtLTg1LDAgYTg1LDg1IDAgMSwwIDE3MCwwIGE4NSw4NSAwIDEsMCAtMTcwLDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2M5YjE2YyIgc3Ryb2tlLXdpZHRoPSIwLjIiIG9wYWNpdHk9IjAuMSIvPjxwYXRoIGQ9Ik0xMDAsMTAgbS04MCwwIGE4MCw4MCAwIDEsMCAxNjAsMCBhODAsODAgMCAxLDAgLTE2MCwwIiBmaWxsPSJub25lIiBzdHJva2U9IiNjOWIxNmMiIHN0cm9rZS13aWR0aD0iMC4yIiBvcGFjaXR5PSIwLjEiLz48cGF0aCBkPSJNMTAwLDEwIG0tNzUsMCBhNzUsNzUgMCAxLDAgMTUwLDAgYTc1LDc1IDAgMSwwIC0xNTAsMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYzliMTZjIiBzdHJva2Utd2lkdGg9IjAuMiIgb3BhY2l0eT0iMC4xIi8+PHBhdGggZD0iTTEwMCwxMCBtLTcwLDAgYTcwLDcwIDAgMSwwIDE0MCwwIGE3MCw3MCAwIDEsMCAtMTQwLDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2M5YjE2YyIgc3Ryb2tlLXdpZHRoPSIwLjIiIG9wYWNpdHk9IjAuMSIvPjwvc3ZnPg==');
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
    right: -300px;
    top: -100px;
    animation: slow-rotate 120s infinite linear;
}

@keyframes slow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Savings Scheme Section */
#savings {
    background: linear-gradient(to bottom, var(--teal-light), var(--teal));
    position: relative;
    overflow: hidden;
}

.savings-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.savings-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.1;
}

.savings-dec {
    position: absolute;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.savings-dec-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 10%;
}

.savings-dec-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 15%;
}

.savings-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--white);
}

.savings-title span {
    color: var(--gold);
}

.savings-subtitle {
    font-size: 18px;
    color: var(--gold-light);
    margin-bottom: 40px;
}

.savings-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.savings-feature {
    background: rgba(0, 71, 74, 0.3);
    padding: 30px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 177, 108, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.savings-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(201, 177, 108, 0.4);
}

.feature-icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--white);
}

.feature-text {
    font-size: 14px;
    line-height: 1.6;
}

.savings-cta {
    padding-top: 30px;
}

.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    animation: shine 5s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Contact Section */
#contact {
    background: linear-gradient(to bottom, var(--teal), #003639);
    position: relative;
    overflow: hidden;
}

.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-heading {
    text-align: center;
    width: 100%;
    margin-bottom: 60px;
}

.branch {
    flex: 1;
    min-width: 300px;
    background: rgba(0, 71, 74, 0.5);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 177, 108, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.branch:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(201, 177, 108, 0.4);
}

.branch-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.branch-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.branch-info {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-icon {
    flex: 0 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 177, 108, 0.2);
    border-radius: 50%;
    color: var(--gold);
    font-size: 16px;
    margin-right: 15px;
}

.branch .btn {
    width: 100%;
    text-align: center;
}

.map-link {
    display: inline-flex;
    align-items: center;
    color: var(--gold-light);
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.map-link i {
    margin-right: 10px;
}

.map-link:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.contact-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNNDAsNDAgTDYwLDQwIEw2MCw2MCBMNDAsNjAgWiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYzliMTZjIiBzdHJva2Utd2lkdGg9IjAuNSIgb3BhY2l0eT0iMC4xIi8+PHBhdGggZD0iTTM1LDM1IEw2NSw1MCBMNTAsNjUgTDM1LDM1IFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2M5YjE2YyIgc3Ryb2tlLXdpZHRoPSIwLjUiIG9wYWNpdHk9IjAuMSIvPjxwYXRoIGQ9Ik0zMCwzMCBMNzAsMzAgTDcwLDcwIEwzMCw3MCBaIiBmaWxsPSJub25lIiBzdHJva2U9IiNjOWIxNmMiIHN0cm9rZS13aWR0aD0iMC41IiBvcGFjaXR5PSIwLjEiLz48L3N2Zz4=');
    background-size: contain;
    opacity: 0.1;
    transform: rotate(45deg);
}

/* Footer Section */
footer {
    background: var(--teal-light);
    padding: 3rem 0;
    border-top: 3px solid var(--gold);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    flex: 1 1 40%;
    min-width: 300px;
}

footer .logo-text {
    text-align: center;
}

footer .logo-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: var(--gold);
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

footer .logo-text p {
    font-size: 12px;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.footer-text {
    flex: 2 1 35%;
    min-width: 250px;
    font-size: 14px;
    text-align: center;
    align-self: center;
}

.footer-text span {
    color: var(--gold);
}

.social-links {
    display: flex;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 177, 108, 0.1);
    color: var(--gold);
    margin-left: 10px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    color: var(--teal);
    transform: translateY(-5px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal);
    overflow-y: auto;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(201, 177, 108, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(201, 177, 108, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(201, 177, 108, 0.2);
}

.modal-header h2 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.75rem;
    margin: 0;
}

.modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 1rem;
    background: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
}

.modal-tab {
    flex: 1;
    padding: 1rem 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.modal-tab:hover {
    color: var(--white);
    background: rgba(201, 177, 108, 0.1);
}

.modal-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(201, 177, 108, 0.1);
}

.modal-body {
    padding: 1.5rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.scheme-highlight {
    background: linear-gradient(135deg, rgba(201, 177, 108, 0.2) 0%, rgba(201, 177, 108, 0.1) 100%);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.scheme-highlight.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(201, 177, 108, 0.1) 100%);
}

.scheme-highlight.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(169, 169, 169, 0.1) 100%);
    border-color: #c0c0c0;
}

.highlight-text {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 600;
}

.scheme-highlight.silver .highlight-text {
    color: #e0e0e0;
}

.highlight-sub {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

.scheme-intro {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.scheme-example {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.scheme-example h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.example-table {
    font-size: 0.85rem;
}

.example-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.example-row.header {
    color: var(--gold);
    font-weight: 600;
    border-bottom-color: rgba(201, 177, 108, 0.3);
}

.example-row.dots {
    border-bottom: none;
    padding: 0.25rem 0;
}

.vdots {
    display: block;
    text-align: left;
}

.vdots::before {
    content: '⋮';
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
}

.example-row.total {
    color: var(--gold);
    font-weight: 600;
    border-bottom: none;
    border-top: 2px solid rgba(201, 177, 108, 0.3);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.example-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.scheme-terms {
    margin-bottom: 1.5rem;
}

.scheme-terms h4 {
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.scheme-terms ul {
    list-style: none;
    padding: 0;
}

.scheme-terms li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.scheme-terms li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.75rem;
}

.flexi-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.flexi-feature {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    align-items: flex-start;
}

.flexi-feature i {
    color: var(--gold);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.flexi-feature h5 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.flexi-feature p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

.scheme-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(201, 177, 108, 0.2);
    text-align: center;
}

.modal-footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .image-decoration,
    .about-image {
        display: none;
    }

    .hero-title {
        font-size: 48px;
    }
    
    .about-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .savings-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .mobile-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--teal);
        padding: 20px 0;
        border-top: 1px solid rgba(201, 177, 108, 0.3);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    .savings-features {
        grid-template-columns: 1fr;
    }

    /* Modal responsive */
    .modal {
        padding: 1rem 0.5rem;
    }

    .modal-header {
        padding: 1.5rem 1rem 1rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-tabs {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .modal-tabs::-webkit-scrollbar {
        display: none;
    }

    .modal-tab {
        flex: 0 0 auto;
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .modal-body {
        padding: 1rem;
        max-height: 55vh;
    }

    .flexi-features {
        grid-template-columns: 1fr;
    }

    .highlight-text {
        font-size: 1.25rem;
    }

    .modal-footer {
        padding: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .footer-logo,
    .footer-text,
    .social-links {
        flex-basis: 100%;
        text-align: center;
        flex-grow: 0;
        flex-shrink: 1;
        min-width: unset;
        align-self: auto;
    }
    
    footer .logo-text h1 {
        white-space: normal;
        font-size: 22px;
    }
    
    .social-links {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .branch {
        padding: 30px;
    }
}
