/* 
   NOW Website - Motorsport Premium Redesign 
   Theme: Dark / F1 Style / High Contrast
*/

:root {
    /* Color Palette */
    --color-bg-dark: #101010;
    /* Pure Dark Background */
    --color-bg-panel: #18191f;
    /* Slightly lighter for cards/panels */
    --color-primary: #0088FF;
    /* Racing Blue */
    --color-primary-dark: #0055AA;
    --color-text-white: #FFFFFF;
    --color-text-gray: #c0c0c0;
    --color-border: #333333;

    /* Typography */
    --font-heading: 'Titillium Web', sans-serif;
    /* Technical/Sporty */
    --font-body: 'Rajdhani', sans-serif;
    /* Modern/Square */

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1400px;
    /* Wider container for impact */

    /* Effects */
    --skew-degree: -10deg;
    /* Common racing UI slant */
    --tech-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    font-size: 18px;
    /* Slightly larger base size */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2.2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Utility Classes */
.text-uppercase {
    text-transform: uppercase;
}

.text-primary {
    color: var(--color-primary);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.bg-panel {
    background-color: var(--color-bg-panel);
}

/* Buttons - Slanted Racing Style */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--color-text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    position: relative;
    border: 1px solid var(--color-text-white);
    cursor: pointer;
    transform: skew(var(--skew-degree));
    transition: all 0.3s ease;
}

.btn span {
    display: block;
    transform: skew(10deg);
    /* Counter-skew text */
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.4);
}

.btn-outline {
    border: 1px solid var(--color-text-white);
}

.btn-outline:hover {
    background: var(--color-text-white);
    color: var(--color-bg-dark);
}

/* Section Styling */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    border-left: 5px solid var(--color-primary);
    padding-left: 20px;
}

.section-title h2 {
    color: var(--color-text-white);
}

.section-title span {
    display: block;
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.section-title .section-desc {
    margin-top: 15px;
    margin-left: 0;
    padding: 0;
    color: var(--color-text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.4;
    text-transform: none;
    /* Ensure not forced uppercase */
    font-weight: 400;
}

/* Helper for "No Scroll" if needed */
.no-scroll {
    overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

/* Header - F1 Style */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(16, 16, 16, 0.85);
    /* Dark semi-transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: all 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust size */
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--color-text-white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
    transform: skew(-20deg);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Chi Siamo Box Style */
/* Chi Siamo Box Style */
.chi-siamo-box {
    background: transparent;
    /* Eliminated gray background */
    padding: 50px;
    border-left: 5px solid var(--color-primary);
    /* Accent line */
    /* Removed gradient */
    /* margin-right: -100px; Removed to fix overlap */

    /* Strong overlap to right */
    position: relative;
    z-index: 10;
    border-radius: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Ensure text is readable over video */
}

@media (max-width: 991px) {
    .chi-siamo-box {
        margin-right: 0;
        padding: 30px;
        order: 2;
        /* Ensure stack order mobile */
    }
}

/* Hero Section - High Impact */
/* Hero Section - High Impact */
.hero-section {
    height: 60vh;
    /* "Taglia la foto alla meta" - reduced from 100vh */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 100px;
    /* "Stacca dal menu" - distinct gap from header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: blur(8px);
    /* Added blur as requested */
    transform: scale(1.1);
    /* Scale to hide blurred edges */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 16, 16, 0.9) 0%, rgba(16, 16, 16, 0.6) 50%, rgba(16, 16, 16, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-left: 5%;
    /* Shift content left for F1 style */
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 0.95;
    margin-bottom: 20px;
    font-style: italic;
    /* Speed look */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-content h1 .highlight {
    color: var(--color-primary);
    display: block;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--color-text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    border-left: 3px solid var(--color-primary);
    padding-left: 20px;
}

/* Services Grid */
.services-section {
    background-color: var(--color-bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-bg-panel);
    border: var(--tech-border);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.card-content {
    padding: 30px;
    position: relative;
}

.card-content h3 {
    color: var(--color-text-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
    /* Skew title for speed */
    font-style: italic;
}

.card-content p {
    color: var(--color-text-gray);
    font-size: 1rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.btn-text {
    color: var(--color-primary);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-text .arrow {
    transition: transform 0.3s ease;
}

.btn-text:hover .arrow {
    transform: translateX(5px);
}

/* Values Section (Redesign) */
.values-section-redesign {
    background-color: var(--color-bg-dark);
    /* Changed from primary to dark for contrast */
    position: relative;
    overflow: hidden;
    margin: 80px 0;
    padding: 120px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: skewX(-5deg);
    /* Racing skew */
}

.value-item i {
    /* Icon placeholder */
    display: block;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    transform: skewX(5deg);
    /* Counter skew */
}

.value-item h4 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    transform: skewX(5deg);
}

.value-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    transform: skewX(5deg);
}

.value-item:hover {
    background: var(--color-primary);
    transform: skewX(-5deg) translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 40px rgba(0, 136, 255, 0.4);
}

.value-item:hover p {
    color: #fff;
}

/* Partners Section */
.partners {
    background-color: #FFFFFF;
    padding: 60px 0;
}

.partners .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners img {
    max-height: 160px;
    /* Double size from 80 */
    width: auto;
    filter: none;
    /* Restore color */
    opacity: 1;
    /* Restore full opacity */
    transition: all 0.3s;
}

/* Grid 4 */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (min-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Hero Blur & Center */
.hero-content.centered-hero {
    position: relative;
    padding: 60px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* News Squared Card (Swiper) */
.news-card.squared-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: auto;
    /* Remove 1/1 ratio to accommodate image + text */
    height: 100%;
    /* Fill slide height */
    width: 100%;
    min-height: 400px;
    /* Taller for image */
    background: #1a1a1a;
    padding: 20px;
    text-decoration: none;
    /* For the link wrapper */
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-card.squared-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.news-img-container {
    width: 100%;
    height: 180px;
    /* Fixed height for image */
    margin-bottom: 20px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card.squared-card:hover .news-img-container img {
    transform: scale(1.1);
}

.news-date {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.news-card.squared-card h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #fff;
}

.news-card.squared-card p {
    font-size: 1rem;
    color: #aeaeae;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Shop Background - Default Dark */
.shop {
    background-color: var(--color-bg-dark);
}

.shop .overlay {
    /* Optional: maintain overlay if using bg image, else hide or keep for depth */
    display: none;
}

/* Values Redesign (Cards) */
.values-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background: #000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.value-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.value-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.value-card:hover .value-bg {
    opacity: 0.8;
    transform: scale(1.1);
}

.value-content {
    position: relative;
    z-index: 2;
    text-align: left;
    transition: transform 0.4s ease;
}

.value-card:hover .value-content {
    transform: translateY(-10px);
}

.value-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.value-content p {
    font-size: 1.1rem;
    color: #e0e0e0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}


/* Values Section - Red Background Design */
.values-section-redesign {
    background-color: #E10600;
    padding: 100px 0;
    position: relative;
}

.values-section-redesign .section-title {
    margin-bottom: 60px;
}

.values-section-redesign .text-white {
    color: #fff !important;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px);
}

.value-item i {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.value-item h4 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 2px;
}

.value-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Incentive Grid Layout (Replaces GSAP) */
.incentive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.incentive-box {
    display: block;
    position: relative;
    text-decoration: none;
    background: #111;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.incentive-box:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.incentive-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.incentive-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.incentive-box:hover .incentive-img-container img {
    transform: scale(1.1);
}

.incentive-info {
    padding: 25px;
    text-align: center;
}

.incentive-info h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.incentive-info .btn-text {
    color: var(--color-primary);
    font-weight: 600;
}

/* Shop Boxed Style Refined */
.shop-item.boxed-item {
    background: #0a0a0a;
    border: 1px solid #333;
    /* Default visible border */
    padding: 20px;
    transition: all 0.3s ease;
    margin: 5px;
    /* Separation */
    display: block;
    /* Ensure block layout */
}

.shop-item.boxed-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 20px rgba(0, 87, 255, 0.2);
    transform: translateY(-5px);
}

/* Footer Side-by-Side */
.footer-container {
    display: flex;
    justify-content: center;
    /* Center the whole block */
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-text p {
    margin: 0;
    /* Remove default margin for alignment */
    text-align: left;
}

/* Ensure swiper slides for News are square */
.swiper-slide.list-slide {
    height: auto;
}

/* Video Promo Positioning */
.video-promo {
    padding: 60px 0;
    background: #050505;
}

/* Centered Hero */
.hero-content.centered-hero {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Force Flex item centering */
}

.hero-content.centered-hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
}

.hero-content.centered-hero p {
    text-align: center;
    border: none;
    padding: 0;
    max-width: 800px;
}

/* Contact Strip */
.contact-strip-section {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #151515;
}

.contact-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 2px;
}

.info-item span,
.info-item a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
}

/* Shop Swiper - Service Card Style (No Button) */
.shop-slide {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.shop-item.squared {
    background: var(--color-bg-panel);
    /* Match Service Card */
    border: var(--tech-border);
    /* Match Service Card */
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    padding: 30px;
    /* Add padding to frame the gadget */
}

.shop-item.squared:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.shop-item.squared .shop-img-container {
    aspect-ratio: 1 / 1;
    width: 100%;
    /* Fill the padded area */
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border: none;
    /* Remove redundant border */
}

.shop-item.squared img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain for gadgets to see full item */
    transition: transform 0.4s ease;
}

/* Shop Price & Button */
.shop-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Push to bottom */
    gap: 15px;
    padding-bottom: 20px;
}

.shop-info h4 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.btn-shop {
    display: inline-block;
    padding: 10px 30px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    border: none;
    transform: skew(-10deg);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-shop:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .contact-strip {
        flex-direction: column;
        text-align: center;
    }

    .contact-info-row {
        flex-direction: column;
        gap: 20px;
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 4px;
    /* Slight rounded corners */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-video-player {
    width: 100%;
    height: auto;
    display: block;
}

/* Animation Utilities (Scroll Reveal) */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* SAFETY PATCH: Force visibility */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* --------------------------------- */
/* SPONSOR PORTAL STYLES */
/* --------------------------------- */

/* LOGIN PAGE */
.sponsor-login-page {
    height: 100vh;
    display: flex;
    font-family: var(--font-body);
    background: #000;
    overflow: hidden;
}

.login-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Brand Side (Left) */
.brand-side {
    flex: 1;
    background-image: url('../images/rally-hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px;
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.login-logo {
    height: 240px;
    /* Tripled from 80px */
    margin-bottom: 20px;
}

.brand-content h1 {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

/* Form Side (Right) */
.form-side {
    flex: 0 0 500px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

.form-toggle {
    display: flex;
    margin-bottom: 40px;
    border-bottom: 2px solid #333;
}

.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    color: #666;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-heading);
}

.toggle-btn.active {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    margin-bottom: -2px;
    /* Overlap border */
}

/* Auth Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.5s ease;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #888;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: #222;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--color-primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.forgot-pass {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.disclaimer-text {
    background: rgba(225, 6, 0, 0.1);
    border-left: 3px solid var(--color-primary);
    padding: 15px;
    margin-bottom: 20px;
}

.disclaimer-text p {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Mobile Login */
@media (max-width: 991px) {
    .login-container {
        flex-direction: column;
    }

    .brand-side {
        padding: 60px 20px;
        flex: 0 0 auto;
    }

    .form-side {
        flex: 1;
        width: 100%;
    }
}

/* DASHBOARD STYLES */
.dashboard-body {
    background: #0a0a0a;
    font-family: var(--font-body);
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.dashboard-container {
    display: flex;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #111;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.sidebar-logo {
    height: 40px;
}

.sidebar-header span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #888;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    border-left: 3px solid var(--color-primary);
    background: linear-gradient(90deg, rgba(225, 6, 0, 0.1) 0%, transparent 100%);
}

.logout {
    color: #e74c3c;
    margin-top: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.welcome-text h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    text-align: right;
}

.user-name {
    display: block;
    font-weight: 700;
}

.user-role {
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-dash-card {
    background: #161616;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #252525;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.service-dash-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-img-top {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
}

.card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.card-body p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 20px;
    flex: 1;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.btn-full {
    width: 100%;
    text-align: center;
    border-radius: 6px;
    transform: none;
    /* Reset skew for dash buttons */
}

/* Footer Redesign - Premium Layout */
.footer-new-layout {
    background-color: #000;
    color: #fff;
    padding: 80px 0 40px;
    font-family: var(--font-body);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand-col {
    flex: 0 0 30%;
    max-width: 300px;
    margin-bottom: 40px;
}

.footer-brand-col .footer-logo-small {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-brand-col p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 15px;
}

.footer-links-col {
    flex: 0 0 60%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-nav-group h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-nav-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-group ul li {
    margin-bottom: 12px;
}

.footer-nav-group ul li a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav-group ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-copyright {
    color: #555;
    font-size: 0.85rem;
}

/* Share same link style as nav group */
.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: #888;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
    }

    .footer-brand-col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 50px;
    }

    .footer-links-col {
        flex: 0 0 100%;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Contact Page Fixes */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.styled-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.2);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* Update per user request: Blue background for OUR CORE / VALUES section */
.values-section-redesign {
    background-color: #0056b3 !important;
    position: relative;
    padding: 80px 0;
}

.values-section-redesign .value-item h4 {
    color: #fff;
    margin-top: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.values-section-redesign .value-item p {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    font-size: 1.1rem;
}

.values-section-redesign .section-title h2 {
    color: #fff !important;
}

.values-section-redesign .section-title span {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Swiper Linear Easing for Marquee */
.mySwiperPartners .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Service Info Modal */
.service-info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.service-info-modal {
    background: #111;
    border: 1px solid var(--color-primary);
    width: 90%;
    max-width: 600px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.service-info-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.service-info-close:hover {
    color: var(--color-primary);
}

.service-info-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    padding-right: 30px;
}

.service-info-list {
    list-style: none;
    padding: 0;
}

.service-info-list li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: #ccc;
    display: flex;
    align-items: flex-start;
}

.service-info-list li i {
    color: var(--color-primary);
    margin-top: 5px;
    margin-right: 15px;
}

/* FIX MOBILE LOGIN SCROLL */
@media (max-width: 991px) {
    .sponsor-login-page {
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto !important;
    }

    .login-container {
        height: auto !important;
    }
}