:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --accent: #38bdf8;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

html {
    width: 100%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    background: #ffffff !important;
    /* Forces solid white background */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 0 3%;
    /* Pushes the header items closer to the screen margins */
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 48px;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-left: 6px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-name span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--dark);
    z-index: 1001;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Hero */
.hero {
    padding: 60px 0 40px;
    background-color: #f0f9ff;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1.2px;
}

.hero h2 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: -0.8px;
}

.hero p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 650px;
    margin: 0 auto;
    padding: 0 20px;
    font-weight: 400;
    line-height: 1.6;
}

/* Services Hero Base */
.services-hero {
    padding: 100px 0 60px;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
}

.services-hero h1 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: clamp(2rem, 8vw, 3.5rem);
}

.services-hero h1 span {
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 0;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.service-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--secondary);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.btn-service {
    display: inline-block;
    padding: 12px 24px;
    background: var(--light);
    color: var(--primary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-service:hover {
    background: var(--primary);
    color: var(--white);
}

/* Main Content */
.main-content {
    padding: 60px 0 100px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 10px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header.centered h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.search-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 550px;
    justify-content: flex-end;
}

.btn-filter-toggle {
    background: var(--white);
    color: var(--dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.btn-filter-toggle:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-filter-toggle.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Collapsible Filter Section */
.filter-wrapper.collapsible {
    position: relative;
    /* Anchor for absolute panels */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    transform: translateY(-10px);
    z-index: 100;
    /* Ensure it stays above content */
}

.filter-wrapper.collapsible.show {
    max-height: 1000px;
    opacity: 1;
    margin-bottom: 30px;
    pointer-events: all;
    transform: translateY(0);
    overflow: visible;
    /* CRITICAL: Prevent clipping of absolute panels */
}

.filter-bar {
    background: #475569;
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: flex-start;
    /* Left-align the Sectors dropdown */
    align-items: center;
    color: white;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 550px;
    /* Match .search-group max-width */
    margin-left: auto;
    /* Align to the right side of the container */
    margin-right: 0;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-label {
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.filter-checkbox input {
    accent-color: #10b981;
}

.filter-controls {
    display: flex;
    gap: 12px;
}

.dropdown-trigger {
    background: white;
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 110px;
    justify-content: space-between;
}

.btn-more-filters {
    background: #ff6b00;
    /* Match reference image orange */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2);
}

.btn-more-filters:hover {
    background: #e66000;
    transform: translateY(-2px);
}

/* More Filters Specific Panel */
.more-filters-panel {
    padding: 40px !important;
    max-width: 1200px;
    margin: 0 auto;
}

.panel-close-top {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.panel-close-top:hover {
    color: var(--dark);
}

.more-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 200px;
    gap: 40px;
    margin-bottom: 30px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

/* Range Slider */
.range-container {
    width: 100%;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #10b981;
    border-radius: 10px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #10b981;
    border-radius: 50%;
    cursor: pointer;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

/* Date Inputs */
.date-input-wrapper {
    position: relative;
}

.date-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #475569;
}

.calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    pointer-events: none;
}

/* Custom Select */
.custom-select select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Pill Groups */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.pill:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.pill.active {
    border-color: #ff6b00;
    color: #ff6b00;
    background: #fff7ed;
}

/* Action Buttons Fixed Right */
.action-buttons-fixed {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
    padding-top: 25px;
}

.btn-clear-outline {
    padding: 12px;
    border: 1px solid #94a3b8;
    border-radius: 50px;
    background: white;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
}

.btn-apply-orange {
    padding: 12px;
    border: none;
    border-radius: 50px;
    background: #ff6b00;
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* Bottom Row Toggles */
.more-filters-bottom-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.toggle-group-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider-round {
    background-color: #10b981;
}

input:checked+.slider-round:before {
    transform: translateX(22px);
}

/* Expanded Sector Panel */
.expanded-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 30px;
    z-index: 101;
    border-top: 4px solid var(--primary);
}

.expanded-panel.active {
    display: block;
    animation: panelSlide 0.3s ease-out;
}

@keyframes panelSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.panel-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.panel-search input {
    padding: 8px 35px 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 280px;
}

.panel-search svg {
    position: absolute;
    right: 45px;
    color: var(--primary);
    pointer-events: none;
}

.close-panel {
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.close-panel:hover {
    color: var(--dark);
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
}

/* Horizontal scrolling for all filter panels */
#sectorGrid,
#stateGrid,
#schemeGrid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: repeat(4, auto);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
    padding-right: 0;
    justify-content: flex-start;
    max-height: none;
    /* Override base vertical grid limit */
}

#sectorGrid .sector-item,
#stateGrid .sector-item,
#schemeGrid .sector-item {
    min-width: 200px;
}

/* Custom Scrollbar for all horizontal grids */
#sectorGrid::-webkit-scrollbar,
#stateGrid::-webkit-scrollbar,
#schemeGrid::-webkit-scrollbar {
    height: 6px;
}

#sectorGrid::-webkit-scrollbar-track,
#stateGrid::-webkit-scrollbar-track,
#schemeGrid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#sectorGrid::-webkit-scrollbar-thumb,
#stateGrid::-webkit-scrollbar-thumb,
#schemeGrid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#sectorGrid::-webkit-scrollbar-thumb:hover,
#stateGrid::-webkit-scrollbar-thumb:hover,
#schemeGrid::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.sector-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    border: 1px solid transparent;
}

.sector-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.sector-item.active {
    background: #fff7ed;
    color: #ff6b00;
    font-weight: 600;
    border-color: #ffedd5;
}

/* Add chevron to the right */
.sector-item::after {
    content: "⌄";
    margin-left: auto;
    font-size: 18px;
    line-height: 1;
    color: #10b981;
    /* Green from reference */
    font-weight: 900;
}

#sectorGrid .sector-item::after,
#stateGrid .sector-item::after,
#schemeGrid .sector-item::after {
    content: none;
}

.sector-item input {
    accent-color: #ff6b00;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.panel-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-clear {
    padding: 12px 35px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #f1f5f9;
    color: var(--dark);
}

.btn-search-apply {
    padding: 12px 60px;
    border-radius: 8px;
    border: none;
    background: #ff6b00;
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
    transition: all 0.2s;
}

.btn-search-apply:hover {
    background: #e66000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.5);
}

/* Main Content */
.main-content {
    padding: 40px 0 100px;
    background-color: var(--white);
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

.search-bar svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* Deal Card List View */
.deals-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.deal-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.deal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.1);
}

.deal-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.deal-badge {
    right: auto;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    margin-bottom: 15px;
    margin-right: 8px;
    /* Add space between multiple badges */
}

.deal-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.card-content {
    padding: 30px 40px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 30px;
    align-items: center;
}

.deal-main-info {
    display: flex;
    flex-direction: column;
}

.deal-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark);
}

/* Vertical Deal Info Grid */
.deal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    margin-bottom: 0;
}

.info-item {
    display: flex;
    font-size: 15px;
    line-height: 1.4;
}

.info-item .label {
    width: 120px;
    font-weight: 600;
    color: var(--dark);
}

.info-item .value {
    color: #4b5563;
    flex: 1;
}

/* Minimalist Toggle */
.details-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--dark);
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 20px;
    user-select: none;
    transition: color 0.3s;
}

.details-toggle-wrapper:hover {
    color: var(--primary);
}

.details-toggle-wrapper svg {
    transition: transform 0.3s ease;
}

.details-toggle-wrapper.active svg {
    transform: rotate(180deg);
}

/* Expandable Details */
.expandable-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: transparent;
}

.expandable-details.open {
    max-height: 1000px;
    margin-bottom: 30px;
}

.detail-list {
    list-style: none;
    padding-left: 0;
}

.detail-list li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: #374151;
}

.detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--dark);
    font-weight: bold;
}

.card-footer.centered {
    display: flex;
    justify-content: flex-end;
    padding-top: 0;
    border-top: none;
}

.btn-express {
    padding: 16px 32px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-express:hover {
    background: var(--primary-dark);
}

.btn-express.orange {
    background: linear-gradient(135deg, #ff6b00, #ff8800);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-express.orange:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.4);
}

.btn-express.orange:active {
    transform: translateY(0) scale(0.98);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary);
}

.modal-content h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.modal-content p {
    color: var(--secondary);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
    outline: none;
}

.full-width {
    width: 100%;
}

/* Subscribe Section */
.subscribe-section {
    position: relative;
    padding: 100px 0 160px;
    /* Increased bottom padding to prevent overlap with the Queries box */
    color: var(--white);
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.subscribe-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1;
}

.subscribe-section .container {
    position: relative;
    z-index: 2;
}

.subscribe-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 1024px) {
    .subscribe-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
}

.subscribe-content h2 {
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--white);
    display: block;
    line-height: 1.1;
}

.subscribe-content h3 {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.9;
}

.subscribe-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.8;
}

.cta-text {
    display: none;
    /* Removed in favor of blue-link */
}

.blue-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s;
}

.blue-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.subscribe-form-container {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subscribe-form .form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 700;
    display: block;
}

.subscribe-form input,
.subscribe-form select,
.subscribe-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    font-size: 15px;
    transition: all 0.3s;
}

.subscribe-form input:focus,
.subscribe-form select:focus,
.subscribe-form textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.subscribe-form option {
    background: var(--dark);
    color: var(--white);
}

.subscribe-form input::placeholder,
.subscribe-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-subscribe {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    background: #ff6b00;
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-subscribe:hover {
    background: #e66000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 107, 0, 0.4);
}

/* Value Added Services Section */
.value-added-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    position: relative;
}

.value-added-section .section-header {
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    justify-content: center;
}

.value-added-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.value-added-section .section-header p {
    font-size: 1.2rem;
    color: var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.services-grid.single-plan {
    grid-template-columns: 1fr;
    max-width: 750px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.service-card.featured {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: var(--white);
    border-color: var(--primary);
}

.service-card.featured:hover {
    transform: translateY(-10px);
}

.service-card.featured h3,
.service-card.featured .service-description,
.service-card.featured .service-features li {
    color: var(--white);
}

.service-card.featured .service-price {
    color: var(--white);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: #ff6b00;
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.service-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.service-card.featured .service-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.service-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--primary);
}

.service-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.service-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-features.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
    margin-bottom: 25px;
}

.service-features li {
    color: var(--dark);
    font-size: 0.95rem;
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.2rem;
}

.service-card.featured .service-features li {
    color: var(--white);
}

.service-card.featured .service-features li::before {
    color: #38bdf8;
}

.service-description {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-disclaimer {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(239, 68, 68, 0.1);
    color: #ff4444;
    /* Bright red for high visibility */
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.5;
}

.btn-payment {
    display: block;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    margin-top: auto;
}

.btn-payment:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.service-card.featured .btn-payment {
    background: var(--white);
    color: var(--primary);
}

.service-card.featured .btn-payment:hover {
    background: #f8fafc;
    color: var(--primary-dark);
}

.btn-payment.btn-current {
    background: #e2e8f0;
    color: var(--dark);
    cursor: default;
    box-shadow: none;
}

.btn-payment.btn-current:hover {
    background: #e2e8f0;
    transform: none;
    box-shadow: none;
}

/* Queries Section */
.queries-section {
    position: relative;
    padding-bottom: 60px;
    background-image: url('https://images.unsplash.com/photo-1449156001437-3a166a6cb7f3?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: -50px;
    z-index: 5;
}

.queries-card {
    background: var(--white);
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    transform: translateY(-50px);
}

.queries-text h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--dark);
}

.queries-text p {
    color: var(--secondary);
    line-height: 1.6;
    max-width: 700px;
}

.queries-action .btn-express {
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

/* Queries Section */
.queries-section {
    padding: 1px 0 80px 0;
    /* 1px top padding strictly prevents CSS margin collapsing of the inner -100px box */
    background: var(--white);
    position: relative;
    z-index: 10;
}

.queries-box {
    background: var(--white);
    padding: 60px 80px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* slightly stronger shadow for overlap visibility */
    margin-top: -100px;
    /* Pull the box up to overlap the section above */
    position: relative;
}

.queries-box h2 {
    font-size: 2rem;
    color: #0f172a;
    font-weight: 700;
}

.btn-write-us {
    background: #ff6b00;
    color: var(--white);
    padding: 14px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-write-us:hover {
    background: #e66000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.footer {
    background: #334155;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 25px;
    margin-top: 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 0;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-col {
    padding: 0 40px;
}

.branding-col {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
}

.contact-col {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 5px;
}

.branding-col .logo {
    color: var(--white);
    margin-bottom: 15px;
    display: block;
    font-size: 26px;
    line-height: 1;
}

.branding-col .logo span {
    color: #38bdf8;
}

.branding-col .copyright,
.branding-col .powered-by {
    margin-bottom: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    opacity: 0.5;
}

.admin-link {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
}

.contact-col .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-col svg {
    color: var(--white);
    opacity: 0.8;
}

.social-col {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 5px;
    padding-right: 0;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-icon:hover {
    background: #38bdf8;
    transform: translateY(-3px);
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: justify;
}

.footer-disclaimer p {
    font-size: 0.7rem;
    line-height: 1.5;
    margin-bottom: 8px;
    opacity: 0.35;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.toast {
    background: var(--white);
    color: var(--dark);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    border-left: 4px solid var(--primary);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    font-weight: 500;
    font-size: 14px;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.8s 0.4s forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .subscribe-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-brand,
    .footer-contact {
        border-right: none;
        padding-right: 0;
    }

    .footer-contact,
    .footer-subscribe {
        padding-left: 0;
    }

    .card-content {
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }

    .deal-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero {
        padding: 40px 20px 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }
}

/* Payment Page Styles */
.payment-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.payment-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.payment-card h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.payment-subtitle {
    color: var(--secondary);
    margin-bottom: 30px;
}

.payment-form .form-group {
    margin-bottom: 25px;
}

.payment-form label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.payment-form input,
.payment-form select,
.payment-form textarea {
    width: 100%;
    max-width: 100%; /* Prevent overflow from long options */
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
}

.payment-form input:focus,
.payment-form select:focus,
.payment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.payment-summary {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.payment-summary h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid var(--primary);
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.payment-methods {
    margin: 30px 0;
}

.payment-methods h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.method-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s;
    background: var(--white);
}

.btn-proceed-payment {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-proceed-payment:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.payment-help {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.payment-help h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.payment-help p {
    color: var(--secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.help-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.help-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: #f1f5f9;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #e2e8f0;
    transform: translateX(-5px);
}

@media (max-width: 992px) {
    .payment-container {
        grid-template-columns: 1fr;
    }

    .payment-help {
        position: static;
    }

    .method-options {
        grid-template-columns: 1fr;
    }
}

/* New Services Page Layout */
.services-list-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1000px;
    margin: 50px auto 0;
}

.wide-service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 40px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.wide-service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary), #60a5fa);
    border-radius: 0;
    transition: width 0.3s ease;
}

.wide-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

.wide-service-card:hover::before {
    width: 10px;
}

.wide-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.wide-service-card:hover .wide-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.wide-card-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.wide-card-content {
    flex-grow: 1;
}

.wide-card-content h3 {
    font-size: 24px;
    color: var(--dark);
    margin: 0 0 15px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.check-list li:last-child {
    margin-bottom: 0;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--primary);
    font-weight: 900;
    font-size: 1.2rem;
    background: rgba(37, 99, 235, 0.1);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 3px;
}

.service-disclaimer-light {
    background: #fef2f2;
    /* light red */
    color: #dc2626;
    /* red text */
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 20px;
    font-style: italic;
    line-height: 1.5;
}

/* =========================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================= */

@media (max-width: 992px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {

    /* Main Layout */
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 30px 0 60px !important;
    }

    /* Header & Navbar */
    .navbar .container {
        padding: 0 20px;
    }

    .nav-links {
        /* Mobile menu drawer logic */
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        padding: 40px;
        display: flex; /* Ensure it's not display: none */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        /* Hamburger icon */
    }

    .btn-primary {
        /* Reset any potential display: none from earlier versions or conflicts */
        display: inline-block;
    }


    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    /* Search & Filters */
    .more-filters-bottom-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-group-top {
        flex-direction: column;
        gap: 15px;
    }

    .toggle-group-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .panel-footer {
        flex-direction: column;
    }

    .btn-search-apply,
    .btn-clear {
        width: 100%;
    }

    /* Services Pages (Wide Cards) */
    .wide-service-card {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

    .wide-card-icon {
        width: 60px;
        height: 60px;
    }

    /* Subscribe Section */
    .subscribe-section {
        padding: 60px 0 140px;
        /* Reduced top padding, kept bottom padding for box overlap */
    }

    .subscribe-content h2 {
        font-size: 2rem;
    }

    .subscribe-content h3 {
        font-size: 1.3rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        /* Stack the 4-field form vertically */
        gap: 15px;
        margin-bottom: 20px;
    }

    /* Queries Box Overlay */
    .queries-box {
        flex-direction: column;
        padding: 30px;
        text-align: center;
        gap: 25px;
        margin-top: -80px;
        /* Pull up slightly less on mobile */
    }

    .queries-box h2 {
        font-size: 1.6rem;
    }

    .btn-write-us {
        width: 100%;
    }

    /* Footer Layout */
    .footer {
        padding: 40px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack footer elements vertically */
        gap: 30px;
    }

    .footer-col {
        padding: 0;
        text-align: center;
        align-items: center;
    }

    .branding-col,
    .contact-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 25px;
    }

    .social-col {
        justify-content: center;
    }

    /* Payments Page */
    .payment-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .payment-card {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .payment-form select {
        padding-right: 35px; /* Space for the arrow */
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .payment-help {
        margin-top: 20px;
    }

    .summary-row.total {
        font-size: 1.2rem;
    }

    /* Deals Grid & Card Content Fixes */
    .card-content {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 20px;
    }

    .deal-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-footer.centered {
        justify-content: center;
        width: 100%;
    }

    .btn-express.orange {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {

    /* Ultra Small Phones */
    .hero h1 {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }

    .subscribe-content h2 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .queries-box {
        border-radius: 16px;
    }

    .footer-col {
        padding: 0 10px;
    }

    .main-content {
        padding: 20px 0 40px !important;        
    }
}

/* OTP Modal Styles */
#otpModal .modal-content {
    max-width: 400px;
}

#otpInput:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

#verifyOtpBtn {
    height: 55px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

#resendOtpBtn:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

#otpError {
    background: #fef2f2;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #fee2e2;
}

@keyframes pulse-border {
    0% { border-color: #e2e8f0; }
    50% { border-color: var(--primary); }
    100% { border-color: #e2e8f0; }
}

#otpInput {
    transition: all 0.3s ease;
}

/* =============================================
   BLOGS PAGE — PUBLIC LISTING
   ============================================= */

.blogs-hero {
    padding: 80px 0 50px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.blogs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from { transform: translate(-10%, -10%); }
    to   { transform: translate(10%, 10%); }
}

.blogs-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
    position: relative;
}

.blogs-hero h1 span {
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blogs-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}

/* Blog Listing Grid */
.blogs-section {
    padding: 70px 0 100px;
    background: #f8fafc;
    min-height: 400px;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 32px 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.13);
    border-color: var(--primary);
}

.blog-card-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    width: fit-content;
}

.blog-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    margin: 0;
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--secondary);
    line-height: 1.65;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--secondary);
    font-weight: 500;
}

.blog-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.blog-card-date {
    font-size: 12px;
    color: #94a3b8;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    transition: gap 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.blog-read-more:hover {
    gap: 10px;
}

.blog-read-more svg {
    transition: transform 0.2s ease;
}

.blog-read-more:hover svg {
    transform: translateX(3px);
}

/* Empty State */
.blogs-empty, .blogs-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
}

.blogs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: none;
    background: transparent;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.blogs-empty svg {
    opacity: 0.3;
    margin-bottom: 20px;
}

.blogs-empty h3 {
    font-size: 1.4rem;
    color: #334155;
    margin-bottom: 8px;
}

.blogs-empty p {
    font-size: 0.95rem;
}

/* Loading Skeleton */
.blog-skeleton {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 32px 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.full { width: 100%; }
.skeleton-line.tall { height: 20px; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Blog Detail Modal */
.blog-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 3000;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.blog-modal.open {
    display: flex;
}

.blog-modal-content {
    background: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 780px;
    padding: 50px 52px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    animation: blogModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
}

@keyframes blogModalIn {
    from { opacity: 0; transform: scale(0.94) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.blog-modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.blog-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.blog-modal-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.blog-modal-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.blog-modal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.blog-modal-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
}

.blog-modal-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.blog-modal-date {
    font-size: 13px;
    color: #94a3b8;
    margin-left: auto;
}

/* Blog body typography */
.blog-modal-body {
    font-size: 1rem;
    color: #334155;
    line-height: 1.8;
}

.blog-modal-body h1,
.blog-modal-body h2,
.blog-modal-body h3 {
    color: var(--dark);
    margin: 28px 0 12px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-modal-body h1 { font-size: 1.7rem; }
.blog-modal-body h2 { font-size: 1.4rem; }
.blog-modal-body h3 { font-size: 1.15rem; }

.blog-modal-body p {
    margin-bottom: 18px;
}

.blog-modal-body ul,
.blog-modal-body ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.blog-modal-body li {
    margin-bottom: 8px;
}

.blog-modal-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-modal-body strong { color: var(--dark); }
.blog-modal-body em { color: #475569; }

.blog-modal-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(37,99,235,0.05);
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}

@media (max-width: 768px) {
    .blog-modal-content {
        padding: 36px 24px;
    }
    .blogs-grid {
        grid-template-columns: 1fr;
    }
}