:root {
    --primary-blue: #0468D7;
    --deep-blue: #0553B1;
    --dark-blue: #023E8A;
    --success-green: #198754;
    --danger-red: #dc3545;
    --light-bg: #F8FAFB;
    --text-primary: #1a1a1a;
    --text-secondary: #5f6368;

    /* Improved Fluid Typography */
    --fs-hero-title: clamp(1.75rem, 5vw, 3.5rem);
    --fs-strategy-title: clamp(1.5rem, 4vw, 2.5rem);
    --fs-body-large: clamp(1rem, 2vw, 1.25rem);
    --fs-body: clamp(0.9rem, 1.5vw, 1.1rem);
    /* Responsive Spacing */
    --spacing-section: clamp(40px, 8vw, 100px);
    --container-padding: clamp(15px, 3vw, 32px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: transparent;
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    transition: all 0.3s ease;
}

.navbar .container {
    max-width: 100% !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar.scrolled {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: clamp(1.1rem, 3vw, 1.1rem);
    color: white !important;
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 12px);
    transition: color 0.3s ease;
    flex-shrink: 1;
    min-width: 0;
    max-width: calc(100vw - 100px);
}

.navbar-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

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

.navbar-brand img {
    height: clamp(28px, 4vw, 40px);  /* Responsive logo size */
    width: clamp(28px, 4vw, 40px);
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    filter: none;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 8px 20px !important;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary) !important;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: clamp(3px, 1vw, 8px) clamp(5px, 1.5vw, 10px);
    flex-shrink: 0;
    margin-left: 4px;
}
.navbar-toggler-icon {
    width: clamp(16px, 3vw, 24px);
    height: clamp(16px, 3vw, 24px);
    background-size: 100%;
}
.navbar.scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}
.navbar-toggler {
    width: clamp(28px, 5vw, 40px);
    height: clamp(28px, 5vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-nav-primary {
    background: white;
    color: var(--primary-blue) !important;
    border: 2px solid white;
    padding: 8px 24px;
    border-radius: 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 12px;
}

.btn-nav-primary:hover,
.btn-nav-primary:focus,
.btn-nav-primary:active {
    background: white !important;
    box-shadow: 0 0 0 3px rgba(4, 104, 215, 0.35);
}


.navbar.scrolled .btn-nav-primary {
  background: var(--primary-blue) !important;
  color: white !important;
  border-color: var(--primary-blue) !important;
}


.navbar.scrolled .btn-nav-primary:hover {
  background: var(--primary-blue) !important;
  color: white !important;
  border-color: var(--primary-blue) !important;
}

/* Hero Section */

.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--deep-blue) 50%, var(--dark-blue) 100%);
    padding: clamp(80px, 12vh, 120px) 0 clamp(60px, 8vh, 120px);
    position: relative;
    overflow: hidden;
    min-height: clamp(600px, 80vh, 900px);
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}
.hero-section .container {
    position: relative;
    z-index: 2;
}


.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
    padding-right: clamp(15px, 3vw, 20px);
    margin: 0;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

/* .hero-title {
    font-size: var(--fs-hero-title);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
} */

.hero-title {
    font-size: var(--fs-hero-title);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: clamp(16px, 3vw, 24px);
    letter-spacing: -0.5px;
    max-width: 100%;
}


/* Strategy Sections */
.strategy-section {
    padding: var(--spacing-section) 0;
    position: relative;
}

.strategy-title {
    font-size: var(--fs-strategy-title);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: clamp(16px, 3vw, 24px);
    line-height: 1.2;
}

.strategy-description {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: clamp(20px, 3vw, 28px);
    max-width: 540px;
}


.section-label {
    display: inline-block;
    background: rgba(4, 104, 215, 0.1);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
}


.strategy-meta {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
}

.meta-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.strategy-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-deploy {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-deploy:hover, .btn-deploy:focus, .btn-deploy:active {
    background: var(--primary-blue) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 104, 215, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 10px 28px;
    border-radius: 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover, .btn-outline:focus, .btn-outline:active {
    background: var(--primary-blue) !important;
    color: white !important;
    border: 2px solid var(--primary-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 104, 215, 0.3);
}

.btn-verified {
    background: var(--success-green);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 24px;
    font-weight: 600;
}

.btn-verified:hover, .btn-verified:focus, .btn-verified:active {
    background: var(--success-green) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.3);
}

/* Performance Display - Compact */
.performance-display {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.performance-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.performance-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
}

.metric-value.positive {
    color: var(--success-green);
}

.metric-value.negative {
    color: var(--danger-red);
}

.metric-value.neutral {
    color: var(--text-secondary);
}

.daily-performance {
    border-top: 2px solid #e9ecef;
    padding-top: 28px;
}

.daily-performance-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.performance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 6px;
}

.performance-list::-webkit-scrollbar {
    width: 6px;
}

.performance-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.performance-list::-webkit-scrollbar-track {
    background: transparent;
}

.performance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.performance-date {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.performance-value {
    font-weight: 700;
    font-size: 1rem;
}

.performance-value.positive {
    color: var(--success-green);
}

.performance-value.negative {
    color: var(--danger-red);
}

.performance-value.neutral {
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--deep-blue) 50%, var(--dark-blue) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button, .cta-button:hover{
    background: white;
    color: var(--primary-blue);
    padding: 16px 48px;
    border-radius: 32px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background: white !important;
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

 .cta-button:focus, .cta-button:active {
    background: white !important;
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    text-decoration: none;
 }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #F1F5F9;
    color: var(--text-primary);
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Performance Tabs */
.performance-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.performance-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.performance-tab:hover {
    color: var(--primary-blue);
}

.performance-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

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

@media (max-width: 576px) {
    .performance-tabs {
        gap: 4px;
    }

    .performance-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Container and Navbar Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
}

.navbar > .container {
    max-width: 100% !important;
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Strategy section containers */
.strategy-section .container,
.hero-section .container,
.cta-section .container,
.empty-state .container,
footer .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: clamp(100px, 15vh, 140px);
    }

    .performance-metrics {
        gap: clamp(24px, 4vw, 32px);
    }
}

/* Standard Mobile (< 576px) */
@media (max-width: 575.98px) {
    .navbar>.container {
        padding-left: 8px;
        padding-right: 8px;
        gap: 6px;
    }

    .navbar-toggler {
        padding: 4px 6px;
        width: 32px;
        height: 32px;
        margin-left: 4px;
    }
    
    .navbar-toggler-icon {
        width: 18px;
        height: 18px;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .navbar-brand img {
        height: 28px;
        width: 28px;
    }
}


/* ============= STANDARD MOBILE ============= */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 85px 0 45px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: 0.925rem;
    }
    
    .hero-cta-mobile {
        padding: 11px 28px;
        font-size: 0.95rem;
    }
    
    .hero-featured-card {
        margin-top: 18px;
    }
    
    .hero-featured-header {
        padding: 10px 14px;
    }
    
    .hero-featured-header .btn {
        font-size: 0.68rem;
        padding: 4px 10px;
    }
    
    .hero-featured-body {
        padding: 12px 14px 14px;
    }
    
    .hero-featured-name {
        font-size: 1rem;
    }
    
    .hero-featured-meta {
        font-size: 0.8rem;
    }
    
    .hero-featured-actions .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 1.45rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-cta-mobile {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .hero-featured-card {
        margin-top: 16px;
        border-radius: 12px;
    }
    
    .hero-featured-header {
        padding: 9px 12px;
        font-size: 0.7rem;
    }
    
    .hero-featured-header .btn {
        font-size: 0.65rem;
        padding: 4px 9px;
    }
    
    .hero-featured-body {
        padding: 11px 12px 13px;
    }
    
    .hero-featured-name {
        font-size: 0.925rem;
    }
    
    .hero-featured-meta {
        font-size: 0.75rem;
    }
    
    .hero-featured-actions .btn {
        padding: 9px 16px;
        font-size: 0.875rem;
    }
}


@media (max-width: 400px) {
    .navbar-toggler {
        padding: 3px 4px;
        width: 26px;
        height: 26px;
    }
    
    .navbar-toggler-icon {
        width: 15px;
        height: 15px;
    }
    
    .navbar-brand {
        font-size: 0.8rem;
        gap: 5px;
    }
    
    .navbar-brand img {
        height: 24px;
        width: 24px;
    }
}


/* Small Mobile (320px - 375px) */
@media (max-width: 375.98px) {
    .hero-section {
        padding: 85px 0 35px;
    }
    
    .hero-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .hero-cta-mobile {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .hero-featured-card {
        margin-top: 16px;
        max-width: 98%;
    }
    
    .hero-featured-header {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 10px;
        font-size: 0.65rem;
    }
    
    .hero-featured-header .btn {
        font-size: 0.62rem;
        padding: 3px 8px;
    }
    
    .hero-featured-body {
        padding: 8px 10px 10px;
    }
    
    .hero-featured-name {
        font-size: 0.875rem;
    }
    
    .hero-featured-meta {
        font-size: 0.7rem;
    }
    
    .hero-featured-actions .btn {
        padding: 8px 16px;
        font-size: 0.825rem;
    }
}

@media (max-width: 350px) {
    .hero-featured-header {
        font-size: 0.65rem;
    }
    
    .hero-featured-name {
        font-size: 0.875rem;
    }
    
    .hero-featured-meta {
        font-size: 0.7rem;
    }
}

@media (max-width: 350px) {
    .navbar>.container {
        padding-left: 6px;
        padding-right: 6px;
        gap: 4px;
    }

    .navbar-toggler {
        padding: 2px 3px;
        width: 22px;
        height: 22px;
        margin-left: 2px;
        border-width: 1px;
    }
    
    .navbar-toggler-icon {
        width: 13px;
        height: 13px;
    }
    
    .navbar-brand {
        font-size: 0.7rem;
        gap: 3px;
    }
    
    .navbar-brand img {
        height: 20px;
        width: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: calc(100px + 36px);
    }

    .performance-metrics {
        gap: 32px;
    }

    .navbar-brand span {
        white-space: nowrap;
        text-overflow: ellipsis;  /* ADD THESE 3 LINES */
    }
}

/* Offcanvas Menu Styling */
@media (max-width: 991.98px) {
    .offcanvas {
        background: linear-gradient(135deg,
            var(--primary-blue) 0%,
            var(--deep-blue) 50%,
            var(--dark-blue) 100%);
        color: white;

        width: 100vw !important;
        max-width: 100vw !important;

        z-index: 2000 !important;
    }

    .offcanvas-backdrop {
        z-index: 1999 !important;
        background-color: rgba(0, 0, 0, 0.7) !important;
    }
    .offcanvas .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.55;           /* softer */
        transform: scale(0.9);  /* subtle */
    }

    .offcanvas .btn-close:hover {
        opacity: 0.9;
    }

    .offcanvas .list-group-item {
        background: transparent !important;
        color: white !important;
        border-color: rgba(255, 255, 255, 0.25);
    }
    .offcanvas .list-group-item:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        color: white !important;
    }

    .offcanvas .list-group-item:active,
    .offcanvas .list-group-item:focus {
        background: rgba(255, 255, 255, 0.22) !important;
        color: white !important;
    }

}

/* Navbar must stay below offcanvas */
.navbar {
    z-index: 1100;
}

/* Fix for offcanvas body shift */
body {
    overflow-x: hidden;
}

/* Ensure no horizontal overflow */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}


/* Hero content alignment for new layout */
.hero-content {
    text-align: left;
}

@media (max-width: 991.98px) {
    .hero-form-card {
        margin-top: 40px;
    }
    
    .hero-content {
        text-align: center;
    }
}

.hero-cta-mobile {
    background: white;
    color: var(--primary-blue);
    padding: clamp(12px, 2vw, 14px) clamp(32px, 5vw, 40px);
    border-radius: 28px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: clamp(20px, 3vw, 24px);
    margin-bottom: 0;
    text-decoration: none;
}

.hero-cta-mobile:hover,
.hero-cta-mobile:focus,
.hero-cta-mobile:active {
    background: white !important;
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Improve form inputs */
.hero-form-card .form-control {
    padding: 10px 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.hero-form-card .form-control:hover {
    border-color: #d1d5db;
}

.hero-form-card .form-control::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.hero-form-card .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(4, 104, 215, 0.1);
    outline: none;
    background: white;
}

/* Improve form card */
.hero-form-card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    position: relative;
    margin-left: auto;
    max-width: min(380px, 90vw);
    width: 100%;
    padding: clamp(16px, 3vw, 22px);
}



.hero-form-card::before {
    display: none;
}


.form-title {
    font-weight: 650;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.5px;

    font-size: 1.4rem;    /* Reduced from 1.5rem */
    margin-bottom: 10px;  /* Reduced from 12px */
}

.hero-form-card .mb-3 {
    margin-bottom: 8px;   /* Reduced from 10px */
}

.btn-form-submit {
    background: var(--primary-blue);
    color: white;
    padding: 10px 18px;
    border-radius: 13px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    transition: all 0.3s ease;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.btn-form-submit:hover,
.btn-form-submit:focus,
.btn-form-submit:active {
    background: var(--deep-blue) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(4, 104, 215, 0.35);
}

/* Improve hero subtitle spacing */
/* .hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    line-height: 1.75;
    margin: 0 0 0 0;
    max-width: 520px;
} */

.hero-subtitle {
    font-size: var(--fs-body-large);
    opacity: 0.95;
    line-height: 1.65;
    margin: 0 0 clamp(20px, 3vw, 28px) 0;
    max-width: min(500px, 100%);
}

@media (max-width: 991.98px) {
    .hero-subtitle {
        margin-bottom: 0;
    }
}


/* Better form labels */
.hero-form-card .form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.form-footer {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding-top: 6px;
}

.form-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.form-footer a:hover {
    color: var(--deep-blue);
    text-decoration: underline;
}

/* Add subtle animation to form card */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-form-card {
    animation: none;
}

/* Mobile responsive improvements */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-title {
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        margin: 0 auto 20px;
        max-width: 100%;
    }
    
    .hero-cta-mobile {
        margin-top: 20px;
        margin-bottom: 24px;
    }
    
    .hero-featured-card {
        margin: 24px auto 0;
        max-width: 520px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: clamp(1.65rem, 6.5vw, 2.25rem);
        margin-bottom: 14px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .hero-cta-mobile {
        padding: 12px 32px;
        font-size: 1rem;
        margin-top: 16px;
        margin-bottom: 20px;
    }
    
    .hero-featured-card {
        margin-top: 20px;
        max-width: 100%;
        border-radius: 14px;
    }
    
    .hero-featured-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .hero-featured-header .btn {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    .hero-featured-body {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 16px 16px;
    }
    
    .hero-featured-info {
        text-align: left;
        width: 100%;
    }
    
    .hero-featured-name {
        font-size: 1.05rem;
    }
    
    .hero-featured-meta {
        font-size: 0.825rem;
    }
    
    .hero-featured-actions {
        width: 100%;
    }
    
    .hero-featured-actions .btn {
        width: 100%;
        padding: 11px 20px;
        font-size: 0.95rem;
        display: block;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 400px;
    }
}

@media (min-width: 992px) {
    .hero-section .row {
        align-items: center;
    }
    
    .hero-form-card {
        position: sticky;
        top: 100px;
    }
}

/* Add input validation states */
/* .hero-form-card .form-control:invalid:not(:placeholder-shown) {
    border-color: #fca5a5;
}

.hero-form-card .form-control:valid:not(:placeholder-shown) {
    border-color: #86efac;
} */

/* .hero-content { */
    /* margin-top: -60px;   move up */
    /* margin-left: -30px;  move left */

/* } */

@media (max-width: 991.98px) {
    .hero-content {
        margin-top: 0;
        margin-left: 0;
    }
}

/* Hero Featured Card */
.hero-featured-card {
    margin-top: 20px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0;
    overflow: hidden;
}


.hero-featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.8px;
    padding: 14px 20px;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.hero-featured-header i {
    margin-right: 6px;
}

/* .hero-featured-header .btn {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
} */

.hero-featured-header .btn {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 14px;
    font-weight: 600;
    background: white;
    color: var(--primary-blue);
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}



.hero-featured-header .btn:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* .hero-featured-header-view {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.8px;
    padding: 12px 18px;
} */



.hero-featured-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    margin-bottom: 12px;
}


.hero-featured-info {
    flex: 1;
    min-width: 0; /* Important for text truncation */
}

.hero-featured-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
}

.hero-featured-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.hero-featured-meta strong {
    color: white;
    font-weight: 700;
}

.hero-featured-actions {
    flex-shrink: 0;
}

.hero-featured-actions .btn {
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: white;
    color: var(--primary-blue);
    border: none;
    transition: all 0.3s ease;
}

.hero-featured-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-featured-card {
  margin-top: 24px;
}

/* @media (min-width: 992px) {
  .hero-featured-card {
    margin-top: 50px;
  }
} */


/* Mobile adjustments for featured card */
@media (max-width: 991.98px) {
    .hero-featured-card {
        margin-top: 24px;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    .hero-featured-header {
        padding: 10px 16px;
    }
    
    .hero-featured-body {
        padding: 14px 16px;
    }
    
    .hero-featured-name {
        font-size: 1.05rem;
    }
    
    .hero-featured-meta {
        font-size: 0.8rem;
        /* padding-left: 10px; */
        padding-right: 10px;
    }
    
    .hero-featured-actions .btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero-featured-card {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-featured-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }
    
    .hero-featured-actions {
        width: 100%;
    }
    
    .hero-featured-actions .btn {
        width: 100%;
        text-align: center;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .hero-featured-card {
        border-radius: 12px;
        margin-top: 24px;
    }
    
    .hero-featured-header {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    .hero-featured-body {
        padding: 10px 12px;
    }
    
    .hero-featured-name {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .hero-featured-meta {
        font-size: 0.75rem;
        padding-right: 10px;

    }
    
    .hero-tag {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .navbar-toggler {
        padding: 3px 5px;
        width: 28px;
        height: 28px;
    }
    
    .navbar-toggler-icon {
        width: 16px;
        height: 16px;
    }
    
    .navbar-brand {
        font-size: 0.85rem;
        gap: 5px;
    }
    
    .navbar-brand img {
        height: 26px;
        width: 26px;
    }
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


@media (max-width: 1199.98px) {
    .hero-section {
        padding: 120px 0 80px;
    }
}

.container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

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


/* ========================================
   UNIVERSAL RESPONSIVE FIXES
   ======================================== */

/* Prevent horizontal scroll on all devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Smooth font scaling */
html {
    font-size: clamp(14px, 1.2vw, 16px);
}

/* Make all images and media responsive */
img, video, svg, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Ensure all rows don't overflow */
.row {
    margin-left: 0;
    margin-right: 0;
}

.row > * {
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
}

/* Make buttons responsive */
.btn {
    white-space: nowrap;
    padding: clamp(8px, 1.5vw, 14px) clamp(16px, 3vw, 32px);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
}

/* Responsive spacing utilities */
@media (max-width: 575.98px) {
    .g-5 {
        --bs-gutter-y: 2rem !important;
        --bs-gutter-x: 1rem !important;
    }
}

/* Fix performance metrics on small screens */
@media (max-width: 480px) {
    .performance-metrics {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .metric-item {
        min-width: 120px;
    }
}


@media (max-width: 375px) {
    .navbar-toggler {
        padding: 2px 4px;
        width: 24px;
        height: 24px;
        margin-left: 3px;
    }
    
    .navbar-toggler-icon {
        width: 14px;
        height: 14px;
    }
    
    .navbar-brand {
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .navbar-brand img {
        height: 22px;
        width: 22px;
    }
}

@media (max-width: 299px) {
    .navbar>.container {
        padding-left: 5px;
        padding-right: 5px;
        gap: 3px;
    }

    .navbar-toggler {
        padding: 2px 2px;
        width: 20px;
        height: 20px;
        margin-left: 2px;
        border-width: 1px;
    }
    
    .navbar-toggler-icon {
        width: 12px;
        height: 12px;
    }
    
    .navbar-brand {
        font-size: 0.65rem;
        gap: 3px;
        max-width: calc(100vw - 65px);
    }
    
    .navbar-brand img {
        height: 18px;
        width: 18px;
    }
    
    .navbar {
        padding: 10px 0;
    }
}

/* Extremely Small (< 280px) */
@media (max-width: 279px) {
    .navbar-toggler {
        padding: 1px 2px !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    .navbar-toggler-icon {
        width: 11px!important;
        height: 11px !important;
    }
    
    .navbar-brand {
        font-size: 0.6rem !important;
        gap: 2px !important;
    }
    
    .navbar-brand span {
        max-width: 140px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .navbar-brand img {
        height: 16px !important;
        width: 16px !important;
    }
}