/* =========================================
   KAPUWO.LK - FIXED SEARCH & LAYOUT
========================================= */
:root {
    --brand-red: #E61E25;
    --brand-dark: #1a1a1a;
    --text-gray: #666;
    --white: #ffffff;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', 'Noto Sans Sinhala', sans-serif; }

body { background-color: var(--white); color: var(--brand-dark); overflow-x: hidden; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* 1. NAVBAR */
.navbar {
    position: fixed; top: 15px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 1280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    z-index: 1000;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 70px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--brand-dark); font-weight: 600; font-size: 15px; text-transform: uppercase; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-red); }
.nav-actions-right { display: flex; align-items: center; gap: 20px; }
.lang-switcher { font-weight: 700; font-size: 14px; }
.lang-link { color: #999; } .lang-link.active { color: var(--brand-red); } .sep { margin: 0 5px; color: #ddd;}
/* --- NAVBAR RIGHT SIDE FIX --- */

.nav-actions-right { 
    display: flex; 
    align-items: center; 
    gap: 30px; /* භාෂා සහ බොත්තම් අතර පරතරය */
}

/* භාෂා තීරුව */
.lang-switcher { 
    display: flex;
    align-items: center;
    font-weight: 700; 
    font-size: 13px; 
    color: #888;
}
.lang-link { color: #888; transition: 0.3s; } 
.lang-link:hover, .lang-link.active { color: var(--brand-red); } 
.sep { margin: 0 8px; color: #ddd; font-size: 10px; }

/* බොත්තම් සමූහය (Login & Register) */
.nav-btns { 
    display: flex; 
    align-items: center; 
    gap: 15px; /* ඇතුල්වන්න සහ ලියාපදිංචිය අතර පරතරය */
}

/* ඇතුල්වන්න බොත්තම (Text Style) */
.btn-text { 
    background: none; 
    border: none; 
    font-weight: 700; 
    cursor: pointer; 
    color: var(--brand-dark); 
    font-size: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s;
}
.btn-text:hover { 
    background: #f5f5f5; 
    color: var(--brand-red); 
}

/* ලියාපදිංචිය බොත්තම (Red Button Style) */
.btn-primary { 
    background: var(--brand-red); 
    color: white; 
    border: none; 
    padding: 10px 25px; 
    border-radius: 30px; 
    font-weight: 700; 
    font-size: 14px;
    cursor: pointer; 
    box-shadow: 0 5px 15px rgba(230, 30, 37, 0.2);
    transition: 0.3s;
    white-space: nowrap; /* අකුරු කැඩීම වැළැක්වීමට */
}
.btn-primary:hover { 
    background: black; 
    transform: translateY(-2px);
}
.mobile-toggle { display: none; }

/* 2. HERO SECTION */
.hero {
    position: relative; height: 95vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding-top: 80px;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1591604466107-ec97de577aff?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    z-index: -2;
}
.hero-overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.7) 100%);
}
/* Fade Bottom Effect */
.hero::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 200px;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 100%); z-index: -1; pointer-events: none;
}

.hero-content { position: relative; z-index: 5; width: 100%; }
.hero-content h1 { font-size: 60px; line-height: 1.1; font-weight: 800; margin-bottom: 15px; color: var(--brand-dark); }
.highlight { color: var(--brand-red); }
.hero-content p { 
    font-size: 20px; color: #000; margin-bottom: 40px; font-weight: 600;
    background: rgba(255,255,255,0.5); padding: 8px 25px; border-radius: 30px; display: inline-block; backdrop-filter: blur(5px);
}

/* --- NEW SEARCH BAR (FIXED) --- */
.search-container {
    background: var(--white);
    padding: 8px; /* පිටතින් කුඩා ඉඩක් */
    border-radius: 100px; /* කැප්සියුල හැඩය */
    display: inline-block;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    max-width: 95%;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0; /* අතර මැද හිඩැස් නැත */
}

.input-group {
    padding: 10px 20px;
    border-right: 1px solid #eee; /* මැද ඉරි */
    text-align: left;
    min-width: 150px;
}
.input-group:last-of-type { border-right: none; }

.input-group label {
    display: block; font-size: 11px; font-weight: 800; color: #888; text-transform: uppercase; margin-bottom: 4px;
}
.input-group select {
    border: none; background: transparent; font-size: 14px; font-weight: 700; color: #333; outline: none; cursor: pointer; width: 100%;
}

/* Search Button - ඇතුළට ගෙන ඇත */
.btn-search-main {
    background: var(--brand-red); color: white; border: none;
    padding: 15px 30px; /* බොත්තමේ ප්‍රමාණය */
    border-radius: 50px; /* රවුම් හැඩය */
    font-size: 16px; font-weight: 700; cursor: pointer; margin-left: 10px;
    display: flex; align-items: center; gap: 10px;
    transition: 0.3s;
}
.btn-search-main:hover { background: black; }

/* 3. PROPOSALS SECTION */
.latest-proposals { padding: 80px 0; background: #fff; overflow: hidden; }
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 50px; text-align: center; }

.carousel-container { display: flex; align-items: center; justify-content: center; position: relative; width: 100vw; margin-left: calc(-50vw + 50%); }
.carousel-wrapper {
    width: 100%; max-width: 1200px; overflow: hidden; padding: 40px 20px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.carousel-track { display: flex; gap: 30px; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }

/* Profile Card */
.profile-card {
    min-width: 300px; background: white; border-radius: 30px; overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); transition: 0.4s; position: relative;
}
.profile-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(230, 30, 37, 0.15); }
.profile-img { width: 100%; height: 250px; object-fit: cover; }
.profile-info { padding: 25px; text-align: center; }
.profile-info h3 { font-size: 20px; margin-bottom: 5px; font-weight: 700; }
.profile-info p { color: #777; font-size: 14px; margin-bottom: 15px; }
.profile-tag { background: #fff0f0; color: var(--brand-red); padding: 5px 15px; border-radius: 20px; font-size: 11px; font-weight: 800; }

.carousel-btn {
    position: absolute; background: white; border: none; width: 50px; height: 50px; border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); cursor: pointer; font-size: 18px; z-index: 10;
}
.prev-btn { left: 10%; } .next-btn { right: 10%; }
.main-footer { padding: 40px 0; text-align: center; color: #777; border-top: 1px solid #eee; }

/* Mobile */
@media (max-width: 900px) {
    .nav-links, .nav-actions-right { display: none; } .mobile-toggle { display: block; }
    .hero-content h1 { font-size: 40px; }
    .search-container { border-radius: 30px; padding: 20px; width: 90%; }
    .search-form { flex-direction: column; gap: 15px; }
    .input-group { border-right: none; border-bottom: 1px solid #eee; width: 100%; padding: 10px 0; }
    .btn-search-main { width: 100%; justify-content: center; margin-left: 0; }
}

/* =========================================
   PACKAGES PAGE STYLES (4 TIERS FINAL)
========================================= */

/* Page Header */
.page-header {
    padding-top: 150px; 
    padding-bottom: 30px;
    background: #fff;
}
.page-header h1 { font-size: 42px; font-weight: 800; margin-bottom: 10px; color: var(--brand-dark); }
.page-header p { font-size: 16px; color: var(--text-gray); }

/* Pricing Grid - 4 Columns Responsive Layout */
.pricing-section { background: var(--bg-gray); padding-bottom: 100px; }

.pricing-grid { 
    display: grid;
    /* තිරයේ ඉඩ ඇති තරමට පැකේජ පෙන්වයි, අවම පළල 260px */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 20px;
    align-items: stretch; 
}

/* Base Card Styling */
.pricing-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

/* 1. Free Tier */
.free-tier { border-top: 5px solid #ccc; }
.features .disabled { color: #ccc; text-decoration: line-through; opacity: 0.7; }
.features .disabled i { color: #ccc; }

/* 2. Silver Tier */
.silver { border-top: 5px solid #C0C0C0; }

/* 3. Gold Tier (Popular) */
.pricing-card.popular {
    transform: scale(1.03); 
    border: 2px solid #FFD700; 
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
    z-index: 2;
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-10px); }

.badge-pop {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #FFD700; color: #000; padding: 4px 15px;
    border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase;
}

/* 4. Platinum Tier */
.pricing-card.platinum { 
    border-top: 5px solid #1a1a1a; 
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

/* Content Styles */
.card-header h3 { font-size: 24px; margin-bottom: 5px; color: var(--brand-dark); font-weight: 800; }
.card-header p { color: #888; font-size: 13px; margin-bottom: 15px; }

.price h2 { font-size: 32px; font-weight: 800; color: var(--brand-red); margin: 0; }
.price span { font-size: 13px; color: #888; }

/* Total Price Detail Box */
.price-detail {
    background: #fff5f5; color: var(--brand-dark); font-size: 12px; font-weight: 700;
    padding: 6px 10px; border-radius: 8px; display: inline-block; margin-top: 8px; margin-bottom: 15px;
}

.features { margin: 15px 0; padding: 0; text-align: left; list-style: none; flex-grow: 1; }
.features li { margin-bottom: 10px; color: var(--brand-dark); font-weight: 500; font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
.features i { color: var(--brand-red); min-width: 18px; margin-top: 3px; }

/* Buttons */
.btn-plan {
    width: 100%; padding: 12px; border-radius: 50px; border: 2px solid #eee;
    background: transparent; font-weight: 700; cursor: pointer; transition: 0.3s;
    font-size: 15px; color: var(--brand-dark); margin-top: auto;
}
.btn-plan:hover { border-color: var(--brand-dark); background: var(--brand-dark); color: white; }

.btn-outline { border-color: #ccc; color: #777; }
.btn-pop { background: var(--brand-red); color: white; border: none; box-shadow: 0 10px 20px rgba(230, 30, 37, 0.3); }
.btn-pop:hover { background: black; color: white; border: none; }
.btn-dark { background: #1a1a1a; color: white; border: none; }
.btn-dark:hover { background: var(--brand-red); }

.package-note { text-align: center; margin-top: 40px; color: #888; font-size: 13px; font-style: italic; }

/* Mobile Adjustment */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); } /* ටැබ් වලදී 2 බැගින් */
}
@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; } /* ජංගම දුරකථන වලදී 1 බැගින් */
    .pricing-card.popular { transform: scale(1); }
}

/* =========================================
   SUCCESS STORIES PAGE STYLES
========================================= */

.stories-section {
    padding: 50px 0 100px 0;
    background: var(--bg-gray);
}

/* Story Row (The Container for each story) */
.story-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px; /* කතා දෙකක් අතර පරතරය */
    background: var(--white);
    padding: 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.story-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Zig-Zag Effect (Magic CSS) */
/* ඉරට්ටේ සංඛ්‍යා (2, 4, 6...) ඇති කතා වල පැත්ත මාරු කිරීම */
.story-row:nth-child(even) {
    flex-direction: row-reverse; /* පින්තූරය දකුණු පැත්තට යැවීම */
}

/* Image Styling */
.story-image {
    flex: 1;
    height: 400px; /* රූපයේ උස */
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.story-row:hover .story-image img {
    transform: scale(1.05); /* Mouse එක ගෙන ගිය විට Zoom වීම */
}

/* Content Styling */
.story-content {
    flex: 1;
    padding: 40px;
}

.story-date {
    display: inline-block;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.story-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.location {
    color: var(--brand-red);
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Quote Box Styling */
.quote-box {
    background: #fff5f5; /* ලා රතු පසුබිම */
    padding: 25px;
    border-radius: 20px;
    position: relative;
    border-left: 4px solid var(--brand-red);
}

.quote-box i {
    font-size: 24px;
    color: var(--brand-red);
    opacity: 0.3;
    margin-bottom: 10px;
    display: block;
}

.quote-box p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .story-row {
        flex-direction: column !important; /* Mobile වලදී සෑම විටම එක පෙළට */
        gap: 0;
        max-width: 500px;
        margin: 0 auto 50px auto;
    }

    .story-image {
        width: 100%;
        height: 300px;
    }

    .story-content {
        padding: 30px;
        text-align: center;
    }
    
    .story-content h2 { font-size: 28px; }
}

/* =========================================
   ABOUT US PAGE STYLES
========================================= */

/* Utility Classes for Alignment */
.align-center { align-items: center; }
.shadow-img { box-shadow: var(--shadow-soft); }

/* About Header */
.about-header {
    padding-bottom: 30px;
}

/* 1. Intro Section */
.about-intro {
    background: white;
    padding: 80px 0;
}

.sub-title {
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.about-intro h2 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--brand-dark);
}

.about-intro p {
    color: #666;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 2. Values Section (Grid) */
.values-section {
    background: var(--bg-gray);
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 30px; /* Wavy/Rounded Corners */
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-soft); /* Border වෙනුවට Shadow */
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: #fff0f0;
    color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin: 0 auto 25px auto;
    transition: 0.3s;
}

.value-card:hover .icon-box {
    background: var(--brand-red);
    color: white;
    transform: scale(1.1);
}

.value-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--brand-dark);
    font-weight: 700;
}
.value-card p {
    color: #777;
    font-size: 15px;
    line-height: 1.6;
}

/* 3. Founder Message Section */
.founder-msg {
    background: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* පසුබිමට මෘදු රතු පැහැති රවුමක් එකතු කිරීම (Optional Design Element) */
.founder-msg::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 500px; height: 500px;
    background: var(--brand-red);
    opacity: 0.03;
    border-radius: 50%;
    z-index: 0;
}

.quote-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-size: 50px;
    color: var(--brand-red);
    opacity: 0.2;
    margin-bottom: 30px;
}

.quote-wrapper h3 {
    font-size: 26px;
    font-weight: 600;
    color: var(--brand-dark);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 50px;
}

.founder-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* නිර්මාතෘ ඡායාරූපය */
.founder-img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* රවුම් හැඩය */
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.founder-info h4 {
    font-size: 20px;
    margin: 0 0 5px 0;
    color: var(--brand-dark);
    font-weight: 800;
}

.founder-info span {
    font-size: 14px;
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .reverse-mobile { flex-direction: column-reverse; gap: 40px; }
    .about-intro { text-align: center; }
    .quote-wrapper h3 { font-size: 20px; }
    .founder-img { width: 80px; height: 80px; }
}

/* =========================================
   LOGIN PAGE STYLES
========================================= */

.login-section {
    padding: 120px 0 80px 0; /* Navbar එකට යටින් ඉඩ */
    background: var(--bg-gray);
    min-height: 100vh; /* තිරයේ උසට සරිලන ලෙස */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Login Box (White Container) */
.login-box {
    background: var(--white);
    border-radius: 40px; /* Rounded Corners */
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 600px;
}

/* Left Side: Image (Updated with your image) */
.login-image {
    flex: 1;
    /* ඔබ ලබාදුන් image_2.png ඡායාරූපය මෙහි භාවිතා වේ */
    background: url('image_2.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.login-overlay {
    background: rgba(0, 0, 0, 0.4); /* අඳුරු පසුබිම */
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    width: 100%;
}

.login-overlay h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

/* Right Side: Form Container */
.login-form-container {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 5px;
}

.form-header p {
    color: #888;
    margin-bottom: 30px;
}

/* Form Inputs */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group-auth label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.input-field {
    position: relative;
}

.input-field i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-field input {
    width: 100%;
    padding: 15px 15px 15px 50px; /* Icon එකට ඉඩ */
    border: 2px solid #f0f0f0;
    border-radius: 50px;
    background: #f9f9f9;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.input-field input:focus {
    border-color: var(--brand-red);
    background: white;
}

/* Checkbox & Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.forgot-password {
    color: var(--brand-red);
    font-weight: 600;
}

/* Buttons */
.btn-login-full {
    width: 100%;
    padding: 15px;
    background: var(--brand-red);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(230, 30, 37, 0.3);
}

.btn-login-full:hover {
    background: black;
    transform: translateY(-3px);
}

.divider-text {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin: 10px 0;
}

/* Social Buttons */
.btn-google {
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px solid #eee;
    border-radius: 50px;
    font-weight: 600;
    color: var(--brand-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    margin-bottom: 10px; /* බොත්තම් දෙක අතර පරතරය */
}
.btn-google i { color: #DB4437; /* Google Red Color */ }
.btn-google:hover { border-color: #ccc; background: #f9f9f9; }

/* New Facebook Button */
.btn-facebook {
    width: 100%;
    padding: 12px;
    background: #1877F2; /* Facebook Blue Color */
    border: none;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}
.btn-facebook i { color: white; }
.btn-facebook:hover { background: #166fe5; }


.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.register-link a {
    color: var(--brand-red);
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .login-box {
        flex-direction: column;
        width: 90%;
        min-height: auto;
    }
    .login-image {
        display: none; /* Mobile වලදී පින්තූරය සඟවමු */
    }
    .login-form-container {
        padding: 40px 30px;
    }
}

/* =========================================
   REGISTRATION PAGE STYLES (WIZARD)
========================================= */

/* 1. Main Section (Background & Spacing) */
.registration-section {
    padding-top: 120px; /* Navbar එකට යටින් ඉඩ */
    padding-bottom: 80px;
    background: var(--bg-gray);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* 2. Wizard Container (White Box) */
.wizard-container {
    background: white;
    width: 100%;
    max-width: 800px; /* උපරිම පළල */
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    padding: 40px;
    position: relative;
    margin: 0 20px;
}

.wizard-header { text-align: center; margin-bottom: 30px; }
.wizard-header h2 { font-size: 28px; font-weight: 800; color: var(--brand-dark); }
.wizard-header p { color: #888; font-size: 14px; }

/* 3. Progress Bar */
.progress-bar-container {
    position: relative;
    margin-bottom: 40px;
    padding: 0 10px;
}

.progress-line-bg {
    position: absolute; top: 15px; left: 0; width: 100%; height: 4px;
    background: #f0f0f0; border-radius: 10px; z-index: 1;
}

.progress-line-fill {
    height: 100%; background: var(--brand-red); width: 0%;
    border-radius: 10px; transition: 0.3s;
}

.steps-wrapper {
    display: flex; justify-content: space-between; position: relative; z-index: 2;
}

.progress-step {
    width: 35px; height: 35px;
    background: white; border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #aaa; font-size: 14px;
    transition: 0.3s;
}

.progress-step.active {
    border-color: var(--brand-red);
    background: var(--brand-red);
    color: white;
    box-shadow: 0 5px 15px rgba(230, 30, 37, 0.3);
}

/* 4. Auth Tabs (Step 1) */
.auth-tabs {
    display: flex; gap: 10px; margin-bottom: 25px;
    background: #f9f9f9; padding: 5px; border-radius: 50px;
}

.tab-btn {
    flex: 1; padding: 12px; border: none; background: transparent;
    border-radius: 50px; font-weight: 600; color: #777; cursor: pointer;
    transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px;
}

.tab-btn.active {
    background: white; color: var(--brand-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* 5. Inputs & Forms */
.wizard-form { margin-top: 20px; }
.step { display: none; animation: fadeIn 0.4s; }
.step h3 { margin-bottom: 10px; color: var(--brand-dark); }
.step-desc { color: #777; margin-bottom: 20px; font-size: 14px; }

.input-group-reg { margin-bottom: 20px; }
.input-group-reg label { display: block; font-size: 13px; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px; }

.input-wrapper { position: relative; }
.input-group-reg input, .input-group-reg select {
    width: 100%; padding: 12px 15px; border: 2px solid #eee;
    border-radius: 12px; font-size: 15px; outline: none; transition: 0.3s;
    background: #fff;
}
.input-group-reg input:focus, .input-group-reg select:focus {
    border-color: var(--brand-red);
}

.readonly-input { background: #f2f2f2 !important; color: #666; cursor: not-allowed; }

.btn-verify-mini {
    position: absolute; right: 5px; top: 5px;
    background: var(--brand-dark); color: white; border: none;
    padding: 8px 15px; border-radius: 8px; font-size: 12px; cursor: pointer;
}

/* 6. Navigation Buttons */
.wizard-footer {
    display: flex; justify-content: space-between; margin-top: 40px; border-top: 1px solid #eee; padding-top: 20px;
}

.btn-prev {
    background: white; border: 2px solid #ddd; color: #666;
    padding: 12px 30px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-prev:hover { border-color: var(--brand-dark); color: var(--brand-dark); }

.btn-next {
    background: var(--brand-red); color: white; border: none;
    padding: 12px 40px; border-radius: 50px; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 20px rgba(230, 30, 37, 0.2); transition: 0.3s;
}
.btn-next:hover { background: black; transform: translateY(-2px); }

/* Animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 600px) {
    .wizard-container { padding: 25px 20px; margin: 0 10px; }
    .progress-step { width: 25px; height: 25px; font-size: 10px; }
    .auth-tabs { flex-direction: column; border-radius: 20px; }
    .wizard-footer { flex-direction: column-reverse; gap: 10px; }
    .btn-next, .btn-prev { width: 100%; }
}

/* --- Social Login Buttons (New) --- */
.social-login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    margin-bottom: 15px;
    color: white;
}

.google-btn {
    background-color: #DB4437; /* Google Red */
    box-shadow: 0 4px 15px rgba(219, 68, 55, 0.3);
}
.google-btn:hover { background-color: #c53929; transform: translateY(-2px); }

.fb-btn {
    background-color: #1877F2; /* Facebook Blue */
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}
.fb-btn:hover { background-color: #1466c9; transform: translateY(-2px); }

/* Separator Line */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    margin: 20px 0;
}
.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}
.separator::before { margin-right: 10px; }
.separator::after { margin-left: 10px; }

/* --- Account Exists Modal (Popup) Styles --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-box {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    transform: scale(0.9);
    animation: popIn 0.3s forwards;
}

.modal-icon { font-size: 50px; color: #e63946; margin-bottom: 20px; }
.modal-box h3 { margin: 0 0 10px 0; color: #333; font-size: 22px; }
.modal-box p { color: #666; margin-bottom: 30px; line-height: 1.5; }

.btn-modal-login {
    display: block; width: 100%; padding: 12px;
    background: #e63946; color: white;
    text-decoration: none; border-radius: 50px;
    font-weight: 700; margin-bottom: 10px; transition: 0.3s;
    box-sizing: border-box;
}
.btn-modal-login:hover { background: black; }

.btn-modal-close {
    background: transparent; border: none;
    color: #888; cursor: pointer; font-size: 13px; text-decoration: underline;
}

@keyframes popIn { to { transform: scale(1); } }

/* OTP Modal Specific */
#modalOtpCode {
    border: 2px solid #ddd;
    padding: 15px;
    font-weight: bold;
    color: var(--brand-dark);
}
#modalOtpCode:focus {
    border-color: var(--brand-red);
}

.username-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.username-chip {
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #f9f9f9;
    transition: 0.3s;
}

.username-chip.available:hover {
    border-color: var(--brand-red);
    background: #fff5f5;
}

.username-chip.selected {
    background: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
}

.username-chip.taken {
    opacity: 0.5;
    cursor: not-allowed;
    background: #eee;
    color: #999;
}

.username-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.username-chip {
    padding: 8px 15px;
    border-radius: 20px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}
.username-chip:hover { background: #e0e0e0; }
.username-chip.selected {
    background: #e63946; /* Brand Red */
    color: white;
    border-color: #e63946;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.username-chip.taken {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Error Messages Styles */
.error-msg {
    color: #e74c3c; /* රතු පැහැය */
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    display: none; /* මුලින් සැඟවී ඇත */
}

/* වැරදි ඇති විට කොටුව රතු වීම */
.input-error {
    border-color: #e74c3c !important;
    background-color: #fceae9 !important;
}

/* Add Sibling Button */
.btn-add-sibling {
    width: 100%;
    padding: 10px;
    background-color: #34495e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    margin-bottom: 15px;
}
.btn-add-sibling:hover {
    background-color: #2c3e50;
}

/* Sibling List Display */
.sibling-list-container {
    margin-top: 15px;
}
.sibling-card {
    background: white;
    padding: 10px;
    border-left: 4px solid var(--brand-red); /* ඔබේ Brand Color එක */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sibling-info {
    font-size: 13px;
    color: #333;
}
.sibling-info strong {
    color: #000;
    font-size: 14px;
}
.btn-remove-sib {
    background: #ffebeb;
    color: #e74c3c;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.btn-remove-sib:hover {
    background: #e74c3c;
    color: white;
}

/* Interest Section Styles */
.interest-section {
    margin-bottom: 25px;
}
.interest-section h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
}

/* Grid Layout */
.interest-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* The Selectable Item (Chip) */
.interest-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.interest-item i {
    font-size: 16px;
    color: #777;
    transition: 0.3s;
}

.interest-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Selected State (Active) */
.interest-item.selected {
    background: #ff4757; /* Your Brand Red */
    color: white;
    border-color: #ff4757;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

.interest-item.selected i {
    color: white;
}

/* Custom Multi-Select Dropdown */
.custom-dropdown {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dropdown-content {
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.dropdown-content.show { display: block; }
.check-box-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}
.check-box-container input { position: absolute; opacity: 0; cursor: pointer; }
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
}
.check-box-container input:checked ~ .checkmark { background-color: var(--brand-red); }
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px; top: 2px;
    width: 4px; height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.check-box-container input:checked ~ .checkmark:after { display: block; }

/* Special 'Any' checkbox */
.check-box-container.special { font-weight: bold; color: #555; }
.divider { height: 1px; background: #eee; margin: 5px 0 10px 0; }

/* Range Slider */
.range-slider-container { position: relative; height: 20px; margin-top: 10px; }
.slider-track {
    width: 100%; height: 5px; background: #ddd; position: absolute; top: 50%; transform: translateY(-50%); border-radius: 5px;
}
.range-slider-container input[type="range"] {
    position: absolute; width: 100%; pointer-events: none; appearance: none; background: none;
}
.range-slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto; appearance: none; width: 18px; height: 18px; background: var(--brand-red); border-radius: 50%; cursor: pointer;
}
.range-values { margin-top: 15px; font-weight: bold; color: var(--brand-red); text-align: center; }


/* Dropdown විවෘත වූ විට අනිත් ඒවාට උඩින් පෙන්වීමට */
.custom-dropdown {
    position: relative; /* මෙය අනිවාර්යයි */
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute; /* මෙය මගින් මෙනුව පාවෙන ලෙස පෙන්වයි */
    top: 100%; /* බොත්තම පහළින් */
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 2px;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* සෙවනැල්ලක් */
    z-index: 999; /* ඉතා වැදගත්: මෙය අනිත් සියල්ලටම වඩා උඩින් පෙන්වයි */
}

.dropdown-content.show {
    display: block;
}

/* Age Slider නිවැරදි කිරීම */
.range-slider-container {
    position: relative;
    height: 40px; /* උස වැඩි කළා */
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    position: absolute;
    border-radius: 5px;
    z-index: 1;
}

.range-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none; /* Slider එක Track එකට බාධා නොකරයි */
    appearance: none;
    background: none;
    z-index: 2; /* Track එකට උඩින් */
    margin: 0;
}

/* Chrome/Safari/Edge සඳහා Thumb (රවුම) */
.range-slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto; /* Click කිරීමට ඉඩ දෙයි */
    appearance: none;
    width: 22px;
    height: 22px;
    background: #ff4757; /* ඔබේ Brand Color එක */
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    margin-top: -8px; /* මැදට ගැනීමට */
}

/* Firefox සඳහා Thumb */
.range-slider-container input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 22px;
    height: 22px;
    background: #ff4757;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Photo Guidelines */
.photo-guide-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.guide-column {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}
.guide-column.allowed { background: #f0fdf4; border-color: #bbf7d0; }
.guide-column.rejected { background: #fef2f2; border-color: #fecaca; }

.guide-column h5 { margin: 0 0 10px 0; font-size: 14px; }
.allowed h5 { color: #166534; }
.rejected h5 { color: #991b1b; }

.guide-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}
.g-item { display: flex; flex-direction: column; align-items: center; }
.g-item span { font-size: 10px; margin-top: 5px; color: #555; }

.icon-box {
    width: 40px; height: 40px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.allowed .icon-box { color: #16a085; border: 1px solid #bbf7d0; }
.rejected .icon-box { color: #e74c3c; border: 1px solid #fecaca; }

/* Custom File Upload Button */
.custom-file-upload {
    display: inline-block;
    padding: 12px 24px;
    cursor: pointer;
    background: #3498db;
    color: white;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
    width: 100%;
}
.custom-file-upload:hover { background: #2980b9; }

/* Privacy Radio Styling */
.privacy-options { display: flex; flex-direction: column; gap: 10px; }
.radio-container {
    display: flex; align-items: center; position: relative; padding-left: 35px; cursor: pointer;
}
.radio-container input { position: absolute; opacity: 0; cursor: pointer; }
.radio-mark {
    position: absolute; top: 5px; left: 0; height: 20px; width: 20px;
    background-color: #eee; border-radius: 50%;
}
.radio-container input:checked ~ .radio-mark { background-color: var(--brand-red); }
.radio-mark:after {
    content: ""; position: absolute; display: none;
    top: 6px; left: 6px; width: 8px; height: 8px;
    border-radius: 50%; background: white;
}
.radio-container input:checked ~ .radio-mark:after { display: block; }
.radio-text { font-size: 14px; line-height: 1.4; }

/* Success Modal Styles */
.success-modal-overlay {
    display: none; /* මුලින් සැඟවී ඇත */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* අඳුරු පසුබිම */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.success-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    animation: popupFadeIn 0.5s ease;
}

.success-icon {
    width: 80px; height: 80px;
    background: #e9f7ef;
    border-radius: 50%;
    color: #2ecc71;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 3px solid #2ecc71;
}

.success-box h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.success-box p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Loading Bar Animation */
.loading-bar-container {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.loading-bar {
    height: 100%;
    width: 0;
    background: #ff4757;
    border-radius: 10px;
    animation: loadBar 3s linear forwards;
}

/* Animations */
@keyframes popupFadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes loadBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* App Download Area - Adjusted for Cleaner Look */
.hero-app-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; 
    margin-top: 70px; /* Search bar එකෙන් ගොඩක් පහළට ගෙන ඒම */
    margin-bottom: 30px;
    opacity: 0.9; /* තරමක් සිනිඳු පෙනුමක් ලබා දීම */
}

/* Red Pill Button - Smaller & Sleeker */
.store-icons-pill {
    display: flex;
    align-items: center;
    background-color: #d32f2f;
    padding: 10px 25px; /* කලින්ට වඩා කුඩා කිරීම */
    border-radius: 40px;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.store-icons-pill a {
    color: #ffffff;
    font-size: 22px; /* අයිකන් වල ප්‍රමාණය සාමාන්‍ය කිරීම */
    text-decoration: none;
    transition: transform 0.2s ease;
}

.store-icons-pill a:hover {
    transform: scale(1.1);
}

.store-icons-pill .divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Text next to the button - Softer font */
.hero-app-download .app-text {
    font-size: 14px; /* අකුරු කුඩා කිරීම */
    color: #ffffff;
    line-height: 1.5;
    font-weight: 400; /* අකුරු වල තදබව (boldness) අඩු කිරීම */
    text-align: left;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .hero-app-download {
        flex-direction: column;
        margin-top: 40px;
    }
    .hero-app-download .app-text {
        text-align: center;
        font-size: 13px;
    }
}


/* 1. Search Bar එක විශාල කිරීම */
/* (සටහන: මෙහි .search-container යන නම වෙනුවට ඔබේ Search Bar එකේ ප්‍රධාන Class නම යොදන්න. උදා: .search-box, .hero-search වැනි) */
.search-container {
    transform: scale(1.15); /* මුළු Search Bar එකම 15% කින් විශාල කරයි */
    transform-origin: top center; /* විශාල වීමේදී මැදින් පහළට විශාල වීමට */
    margin-bottom: 30px; /* Search bar එකට යටින් ඉඩක් තැබීම */
    z-index: 10; /* Search bar එක අනිත් දේවල් වලට වඩා උඩින් පෙනීමට */
    position: relative;
}

/* 2. App Download Area - තවත් පහළට කිරීම */
.hero-app-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; 
    margin-top: 120px; /* කලින් 70px තිබුණු එක 120px දක්වා වැඩි කරමින් පහළට ගෙන යාම */
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 5;
}

/* Red Pill Button - Smaller & Sleeker */
.store-icons-pill {
    display: flex;
    align-items: center;
    background-color: #d32f2f;
    padding: 10px 25px; 
    border-radius: 40px;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.store-icons-pill a {
    color: #ffffff;
    font-size: 22px; 
    text-decoration: none;
    transition: transform 0.2s ease;
}

.store-icons-pill a:hover {
    transform: scale(1.1);
}

.store-icons-pill .divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Text next to the button */
.hero-app-download .app-text {
    font-size: 14px; 
    color: #ffffff;
    line-height: 1.5;
    font-weight: 400; 
    text-align: left;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .search-container {
        transform: scale(1.05); /* Phone එකේදී ගොඩක් ලොකු නොවීමට */
    }
    .hero-app-download {
        flex-direction: column;
        margin-top: 60px;
    }
    .hero-app-download .app-text {
        text-align: center;
        font-size: 13px;
    }
}

/* Mobile View Fixes for Hero Section */
@media (max-width: 768px) {
    /* ප්‍රධාන වාක්‍යය (Heading) Menu එකෙන් පහළට ගැනීම */
    .hero-content { /* සටහන: ඔබගේ HTML එකේ අදාළ class නම මෙතැනට දෙන්න (උදා: .hero-content, .main-title) */
        padding-top: 100px; /* Menu එකට යටින් ඉඩක් ලබා දීම (අවශ්‍ය නම් 120px ලෙස වෙනස් කර බලන්න) */
        margin-top: 20px;
    }

    /* Mobile එකේදී අකුරු වල ප්‍රමාණය සහ පරතරය ලස්සනට පේන්න සෑදීම */
    .hero- h1 {
        font-size: 32px; /* අකුරු ටිකක් කුඩා කිරීම */
        line-height: 1.4;
    }
    
    /* "ශ්‍රී ලංකාවේ වැඩිම පිරිසක්..." කියන උප-වාක්‍යය (Sub-heading) */
    .hero- p {
        font-size: 16px;
        margin-top: 15px;
    }
}

/* Mobile View Final Fixes */
@media (max-width: 768px) {
    /* 1. ප්‍රධාන වාක්‍යය Menu එකෙන් සම්පූර්ණයෙන්ම පහළට තල්ලු කිරීම */
    /* (සටහන: ඔබේ HTML එකේ තියෙන class නම අනුව මෙහි .hero-content යන්න වෙනස් කරන්න) */
    .hero-content, .hero-text {
        padding-top: 160px !important; /* කලින් 100px තිබුණු එක 160px දක්වා වැඩි කළා */
        display: block;
    }

    /* 2. ප්‍රධාන වාක්‍යයේ අකුරු තවත් විශාල කිරීම */
    .hero-content h1, .hero-text h1 {
        font-size: 42px !important; /* අකුරු ගොඩක් ලොකු කළා */
        line-height: 1.2 !important;
    }
    
    /* උප-වාක්‍යය (ශ්‍රී ලංකාවේ වැඩිම...) විශාල කිරීම */
    .hero-content p, .hero-text p {
        font-size: 18px !important;
        margin-top: 15px !important;
    }

    /* 3. පහළින් ඇති App Download විස්තරය පැහැදිලිව පෙනීමට කළු පැහැ කිරීම */
    .hero-app-download .app-text {
        color: #333333 !important; /* තද අළු/කළු පැහැයක් ලබා දීම */
        text-shadow: none !important; /* සෙවණැල්ල අයින් කිරීම */
        font-weight: 700 !important;
        font-size: 14px !important;
        margin-top: 10px;
    }
}

/* --- නවීකරණය කළ Mobile Menu Styles (Smooth Animation) --- */
@media (max-width: 768px) {
    
    /* 1. Menu එකේ ආරම්භක අවස්ථාව (හැංගිලා තියෙන විට) */
    .nav-links {
        position: absolute;
        top: 100%; /* Navbar එකට හරියටම යටින් */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* ටිකක් තද සෙවණැල්ලක් */
        
        /* Animation සඳහා වැදගත්ම කොටස */
        max-height: 0; /* උස 0 කිරීමෙන් හංගමු */
        overflow: hidden; /* උස 0 වූ විට ඇතුළේ දේවල් නොපෙනීමට */
        transition: all 0.4s ease-in-out; /* ඉතාමත් ස්මූත් ලෙස වෙනස් වීමට */
        
        display: block; /* flex වෙනුවට block භාවිතා කිරීම */
        padding: 0;
    }

    /* 2. Button එක එබුවම (active වූ විට) Menu එක ලිස්සලා ඒම */
    .nav-links.active {
        max-height: 500px; /* Menu එකට ප්‍රමාණවත් තරම් උසක් ලබා දීම */
        padding: 20px 0; /* විවෘත වූ විට පමණක් padding එකතු වීම */
    }

    /* Menu Items ලස්සන කිරීම */
    .nav-links li {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
        border-bottom: 1px solid #f0f0f0; /* සෑම ලින්ක් එකකටම යටින් තුනී ඉරක් */
    }

    /* අන්තිම ඉර ඉවත් කිරීම */
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: block;
        padding: 15px 20px; /* Click කරන්න ලේසි වෙන්න ලොකු ඉඩක් */
        color: #333;
        font-size: 17px;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.3s, background-color 0.3s;
    }
    
    /* Touch කළාම හෝ Mouse එක ගෙනිච්චම පාට වෙනස් වීම */
    .nav-links li a:hover, 
    .nav-links li a:active {
        color: #d32f2f; /* Kapuwo Theme Red Color */
        background-color: #fff5f7; /* ළා රෝස පැහැති පසුබිමක් */
    }
    
    /* දැනට දකුණු පැත්තේ ඇති බොත්තම් Mobile එකේදී සැඟවීම */
    .nav-actions-right {
        display: none;
    }
}

/* ජංගම දුරකථන සඳහා පමණක් ඇති දේවල් Desktop එකේදී සැඟවීම */
.mobile-only {
    display: none;
}

/* --- අලුත්ම ලස්සන Mobile Menu Styles --- */
@media (max-width: 768px) {
    
    .mobile-only {
        display: block; /* Mobile එකේදී පමණක් පෙන්වීම */
    }

    /* Floating Menu Card එක */
    .nav-links {
        position: absolute;
        top: 80px; /* Navbar එකට ටිකක් යටින් පටන් ගැනීම */
        left: 5%; /* තිරයේ දෙපැත්තෙන් ඉඩක් තැබීම */
        width: 90%; /* සම්පූර්ණ පළල වෙනුවට 90% ක් කිරීම */
        background-color: #ffffff;
        border-radius: 15px; /* වටේ ලස්සනට රවුම් කිරීම */
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* ලස්සන සෙවණැල්ලක් */
        
        max-height: 0; 
        overflow: hidden; 
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* වඩාත් ස්මූත් ඇනිමේෂන් එකක් */
        
        display: block; 
        padding: 0;
    }

    .nav-links.active {
        max-height: 450px; 
        padding: 15px 0; 
    }

    /* Menu Items */
    .nav-links li {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
        border-bottom: 1px solid #f4f4f4; /* ඉතාමත් ළා පැහැති ඉරක් */
    }

    .nav-links li:last-child, 
    .nav-links li:nth-last-child(2) {
        border-bottom: none; /* අන්තිම බොත්තම් දෙකේ ඉර ඉවත් කිරීම */
    }

    .nav-links li a {
        display: block;
        padding: 12px 20px; /* ලින්ක් එකේ මහත අඩු කිරීම */
        color: #444;
        font-size: 15px; /* අකුරු පොඩි කර පිළිවෙල කිරීම */
        font-weight: 500;
        text-decoration: none;
        transition: 0.3s;
    }
    
    .nav-links li a:hover, 
    .nav-links li a:active {
        color: #d32f2f;
        background-color: #fafafa;
    }

    /* Mobile Login / Register Buttons */
    .mobile-login {
        color: #d32f2f !important;
        font-weight: 600 !important;
        margin-top: 10px;
    }

    .mobile-btn-primary {
        background-color: #d32f2f !important;
        color: #ffffff !important;
        border-radius: 25px;
        margin: 5px 20px 10px 20px; /* බොත්තම වටා ඉඩක් තැබීම */
        padding: 10px 15px !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
    }

    /* Desktop එකේ දකුණු පස ඇති Buttons සැඟවීම */
    .nav-actions-right {
        display: none;
    }
} 

/* --- 1. Web (Desktop) එකේදී පමණක් ප්‍රධාන වාක්‍යය උඩට ගැනීම --- */
@media (min-width: 769px) {
    .hero-content {
        padding-top: 100px !important; /* Menu එකට යටින් ඇති ඉඩ අඩු කිරීම */
        margin-top: -40px !important; /* වාක්‍යය තවත් ඉහළට ඇදීම */
    }
}

/* --- 2. App Download විස්තරය පැහැදිලි කිරීම සහ Light Animation එක --- */
.hero-app-download .app-text {
    color: #ffffff !important; /* අකුරු සුදු පාට කිරීම */
    background-color: rgba(211, 121, 47, 0.9); /* රතු පැහැති පසුබිමක් දැමීම (කියවීමේ පහසුවට) */
    padding: 10px 25px;
    border-radius: 30px; /* ලස්සන රවුම් හැඩයක් */
    font-weight: 600 !important;
    font-size: 14px !important;
    text-shadow: none !important;
    
    /* Animation එක ක්‍රියාත්මක කිරීම (තත්පර 1.5 කින් නිවී පත්තු වීම) */
    animation: glowingLight 1.5s infinite alternate !important; 
}

/* Light එක නිවී පත්තු වන Animation කේතය (Keyframes) */
@keyframes glowingLight {
    0% {
        box-shadow: 0 0 5px rgba(211, 47, 47, 0.4); /* අඩු එළියක් */
        transform: scale(0.98); /* ඉතා කුඩා වීම */
    }
    100% {
        box-shadow: 0 0 25px rgba(211, 47, 47, 0.9), 0 0 15px rgba(255, 255, 255, 0.4); /* වැඩි එළියක් (Glow) */
        transform: scale(1.02); /* මඳක් විශාල වීම */
    }
}

/* --- Web View (Desktop) එකේදී Hero සහ යෝජනා කොටස් එකට සම්බන්ධ කිරීම (Seamless Blending) --- */
@media (min-width: 769px) {
    
    /* 1. මංගල යෝජනා කොටස තවත් ඉහළට ගෙන පින්තූරය මතටම ගැනීම */
    .latest-proposals {
        margin-top: -150px !important; /* කලින් -60px තිබුණු එක -150px කර තවත් උඩට ඇද්දා */
        background-color: transparent !important; /* වෙනම සුදු පසුබිමක් පෙනීම නැති කර පින්තූරය හා මුසු කිරීම */
        position: relative;
        z-index: 10; /* යෝජනා කොටස පින්තූරයට උඩින් පෙනීමට */
        padding-top: 0 !important; /* උඩින් ඇති අනවශ්‍ය ඉඩ මකා දැමීම */
    }

    /* 2. Hero කොටසේ යටින් ඇති ඉඩ වැඩි කර යෝජනා ටිකට ඉඩ හදාදීම */
    .hero {
        padding-bottom: 120px !important; 
    }
}

/* --- Brand Colored (Red Theme) Profile Card Styles --- */

.profile-card {
    width: 320px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 15px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #f2f2f2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(211, 47, 47, 0.15); /* Hover වන විට ළා රතු සෙවණැල්ලක් */
    border-color: #ffcdd2; /* Hover වන විට ළා රතු බෝඩරයක් */
}

/* පින්තූරය සහ බොඳවීම */
.card-img-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* වලාකුළක් වැනි බොඳවීම (Cloud Fade Effect) */
.img-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,1) 100%);
}

/* Premium Ribbon - (Brand Red Gradient) */
.gold-ribbon {
    position: absolute;
    top: 20px;
    left: -35px;
    /* රන්වන් පැහැය වෙනුවට සන්නාමයේ රතු පැහැති Gradient එකක් */
    background: linear-gradient(135deg, #ff5f6d 0%, #d32f2f 100%);
    color: white;
    padding: 6px 40px;
    font-size: 13px;
    font-weight: 700;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 3px 10px rgba(211, 47, 47, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* පහළ විස්තර කොටස */
.card-details {
    padding: 0 20px 20px 20px;
    background: #ffffff;
    margin-top: -15px;
    position: relative;
    z-index: 2;
    text-align: left;
}

/* නම සහ අයිකන් එක */
.user-name {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name i {
    color: #d32f2f; /* නම ඉදිරියෙන් ඇති අයිකනය රතු පැහැයට */
    font-size: 20px;
}

/* විස්තර පේළි */
.info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #555555;
    margin-bottom: 12px;
    font-weight: 600;
}

.info-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row i {
    color: #d32f2f; /* වයස, උස, රැකියාව අයිකන් රතු පැහැයට */
    font-size: 15px;
    opacity: 0.9;
}

/* Time & NIC Row */
.badge-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.badge-time, .badge-nic {
    font-size: 12px;
    color: #666;
    background: #fdfdfd;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.badge-time i {
    color: #d32f2f; /* වෙලාව අයිකනය රතු පැහැයට */
}

.badge-nic i {
    color: #d32f2f; /* NIC හරි ලකුණ (Checkmark) නිල් පැහැයෙන් රතු පැහැයට */
    font-size: 14px;
}

/* "ගිණුම බලන්න" බොත්තම (Brand Colors) */
.view-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #d32f2f; /* අකුරු රතු පාට */
    border: 1.5px solid #d32f2f; /* බෝඩරය රතු පාට */
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #fff0f3; /* Hover වන විට ඉතා ළා රතු/රෝස පසුබිමක් */
    border-color: #d32f2f;
}

/* --- Carousel Auto-Slide & Packages Update --- */

/* 1. ඊතල සැඟවීම */
.carousel-btn {
    display: none !important;
}

/* 2. කොටුවක හිරවූ පෙනුම නැති කිරීමට දෙපැත්ත බොඳ කිරීම (Seamless fade) */
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    /* දෙපසින් මෘදු ලෙස කාඩ් මතුවීමට සහ මැකී යාමට */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 1s ease-in-out; /* ඉතාමත් සුමටව මාරු වීමට */
}

/* 3. Packages සඳහා Ribbons (සන්නාමයේ හැඩයට) */
/* Free අයට Ribbon එකක් පෙන්වන්නේ නැත */

.ribbon-silver {
    background: linear-gradient(135deg, #e0e0e0 0%, #9e9e9e 100%);
    color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.ribbon-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.3);
}

.ribbon-platinum {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* --- About Us Section Styles (Red Kapuwo Theme) --- */

.about-section {
    padding: 80px 0;
    background-color: transparent; /* පසුබිම් වර්ණය ඉවත් කිරීමෙන් වෙනම කොටසක් සේ පෙනීම නැති වේ */
    position: relative;
    z-index: 5;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px; /* පින්තූරය සහ පෙළ අතර පරතරය */
}

/* --- වම් පස (පින්තූරය සහ Video කාඩ්පත) --- */
.about-image-col {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.about-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

/* ප්‍රධාන පින්තූරය රවුම් කිරීම */
.about-main-img {
    width: 100%;
    height: 480px; /* පළලට සමාන උසක් */
    object-fit: cover;
    border-radius: 50%; /* පූර්ණ රවුම් හැඩය */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* මෘදු සෙවණැල්ලක් */
    border: 15px solid #ffffff; /* ඝනකම් සුදු පැහැති රාමුවක් */
}

/* පාවෙන Video කාඩ්පත (Glassmorphism Effect) */
.floating-video-card {
    position: absolute;
    bottom: 40px;
    right: -30px; /* පින්තූරයෙන් මඳක් පිටතට */
    background: rgba(255, 255, 255, 0.9); /* පාරදෘශ්‍ය සුදු පසුබිම */
    backdrop-filter: blur(10px); /* වීදුරු වැනි බොඳවීම */
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.7);
    width: 220px;
    z-index: 5;
}

.video-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Play Button එක (රතු පැහැයෙන්) */
.play-btn-wrapper {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
}

.play-btn {
    width: 60px;
    height: 60px;
    background-color: #d32f2f; /* Kapuwo Red */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
    transition: transform 0.3s;
    padding-left: 4px; /* අයිකනය මධ්‍යගත කිරීමට */
}

.play-btn:hover {
    transform: scale(1.1); /* මූසිකය ගෙන ගිය විට විශාල වීම */
}

.watch-video-link {
    display: block;
    font-size: 13px;
    color: #555;
    text-decoration: underline;
    font-weight: 600;
}

/* --- දකුණු පස (පෙළ සහ බොත්තම) --- */
.about-text-col {
    flex: 1;
}

.about-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* මාතෘකාව සහ ලාංඡනය */
/* මාතෘකාව සහ ලාංඡනය */
.about-title {
    font-size: 42px;
    font-weight: 800;
    color: #222;
    margin-bottom: 25px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 15px; /* පෙළ සහ ලාංඡනය අතර පරතරය තරමක් වැඩි කළා */
}

/* මාතෘකාව තුළ ඇති ලාංඡනය */
/* මාතෘකාව තුළ ඇති ලාංඡනය විශාල කිරීම */
.about-logo {
    height: 80px; /* ලාංඡනය ගොඩක් විශාල කර ඇත (අවශ්‍ය නම් 90px දමා බලන්න) */
    width: auto;
    object-fit: contain;
}
/* --- ජංගම දුරකථන සඳහා (Responsive Design) --- */
@media (max-width: 992px) {
    .about-logo {
        height: 155px; /* ජංගම දුරකථන වලදීත් ලාංඡනය මඳක් විශාල කළා */
    }
}

.about-description {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 500;
}

/* "වැඩි විස්තර" බොත්තම (Outline Style) */
.btn-outline-brand {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #d32f2f; /* රතු පැහැති බෝඩරය */
    color: #d32f2f; /* රතු පැහැති අකුරු */
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background-color: #d32f2f; /* මූසිකය ගෙන ගිය විට රතු පසුබිම */
    color: white; /* සුදු පැහැති අකුරු */
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

/* --- ජංගම දුරකථන සහ කුඩා තිර සඳහා (Responsive Design) --- */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .about-image-col {
        justify-content: center;
    }

    .floating-video-card {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -40px;
    }

    /* ජංගම දුරකථනයේ මාතෘකාව සැකසීම */
    .about-title {
        justify-content: center;
        align-items: center;
        font-size: 34px;
        display: flex;
        flex-wrap: wrap; /* ඉඩ මදි වුවහොත් පහළට යාමට */
        gap: 15px;
    }
    
    /* ජංගම දුරකථනයේදී ලාංඡනය විශාල කිරීම */
    .about-logo {
        height: 75px !important; /* ලාංඡනය ගොඩක් විශාල කළා */
    }
}

/* ඉතා කුඩා තිර සඳහා (Mobile Phones) */
@media (max-width: 480px) {
    .about-title {
        font-size: 28px;
    }
    .about-logo {
        height: 65px !important; /* Phone එකට ගැළපෙන පරිදි උපරිම විශාල කළා */
    }
}

/* --- ජංගම දුරකථන තිරයේ Overlap වීම (එක උඩ එක වැටීම) ස්ථිරවම නිවැරදි කිරීම --- */
@media (max-width: 768px) {
    
    /* 1. Hero කොටසේ උස Auto කර යටින් ඇති ඉඩ මඳක් අඩු කිරීම */
    .hero {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 30px !important; /* කලින් 80px තිබුණු ඉඩ 30px දක්වා අඩු කළා */
    }

    /* 2. App Download කොටස සහ යටින් ඇති ඉඩ අඩු කිරීම */
    .hero-app-download {
        position: relative !important;
        bottom: auto !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important; /* කලින් 60px තිබුණු ඉඩ 10px දක්වා අඩු කළා */
    }

    /* 3. නවතම මංගල යෝජනා මාතෘකාව ඉහළට ගැනීම */
    .latest-proposals {
        margin-top: 10px !important; /* ලොකු ඉඩ ඉවත් කර මාතෘකාව ඉහළට ගත්තා */
        padding-top: 10px !important;
        position: relative !important;
        z-index: 5 !important;
    }
}

/* --- Premium Footer Styles (Dark Theme with Kapuwo Red) --- */

.main-footer {
    background-color: #121212; /* ඉතා තද කළු/අළු පසුබිම */
    color: #aaaaaa;
    padding: 60px 0 20px 0;
    font-family: 'Outfit', 'Noto Sans Sinhala', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ඉහළ පේළිය */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* යටින් ඇති තුනී ඉර */
    padding-bottom: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-contact-info {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.info-block {
    display: flex;
    flex-direction: column;
}

.info-title {
    color: #d32f2f; /* Kapuwo Red අකුරු (මාතෘකා) */
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-block p {
    color: #dddddd;
    font-size: 14px;
    margin: 0;
}

/* App Download කොටස */
.footer-app-download {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-icons {
    display: flex;
    gap: 12px;
}

.app-icon {
    width: 45px;
    height: 45px;
    background-color: #d32f2f; /* රතු පැහැති රවුම */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-icon:hover {
    background-color: #ffffff;
    color: #d32f2f;
    transform: translateY(-3px);
}

/* මැද පේළිය (Logo සහ Social) */
.footer-middle {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ලාංඡනය අඳුරු පසුබිමේ පෙනීමට */
.footer-logo-bg {
    background: #ffffff;
    padding: 10px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-slogan {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 25px;
}

/* Social Media අයිකන් */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    font-size: 15px;
}

.social-icons a:hover {
    background: #d32f2f;
    transform: translateY(-3px);
}

/* ලින්ක් පේළිය */
.footer-links {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.primary-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.primary-links a {
    color: #dddddd;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.primary-links a:hover {
    color: #d32f2f;
}

.secondary-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.secondary-links a {
    color: #777777;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.secondary-links a:hover {
    color: #ffffff;
}

/* අවසාන Copyright පේළිය */
.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #666666;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    
    .footer-contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-app-download {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .primary-links {
        gap: 15px;
        flex-direction: column;
    }
}

/* --- භාෂාව මාරු කිරීමේදී අකුරු සහ Search Bar එක පැටලීම (Overlap) නිවැරදි කිරීම --- */

.hero-content {
    display: flex !important;
    flex-direction: column !important; /* සියලුම දේ අනිවාර්යයෙන්ම එකක් යට එකක් තැබීම */
    align-items: center !important;
    text-align: center !important;
    width: 100%;
}

.hero-subtitle {
    display: block !important;
    width: 100% !important;
    margin-bottom: 35px !important; /* Search bar එකට උඩින් අනිවාර්යයෙන් ඉඩ තැබීම */
    line-height: 1.6;
}

/* Search bar එක අනිවාර්යයෙන්ම නව පේළියකට ගැනීම */
.search-form {
    width: 100%;
    max-width: 900px; /* Search bar එකට උපරිම පළලක් දීම */
    margin: 0 auto 20px auto !important;
    clear: both;
}
/* --- AURORA DARK THEME VARIABLES --- */
/* --- KAPUWO BRAND VARIABLES --- */
/* --- MODERN BRAND VARIABLES --- */
