/* Font faces */
@font-face {
    font-family: 'Closeness';
    src: url('fonts/Closeness.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Closeness';
    src: url('fonts/Closeness-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Closeness';
    src: url('fonts/Closeness-Bold-Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}
@font-face {
    font-family: 'Exo2Italic';  /* Name we'll use for this font */
    src: url('fonts/Exo2.0-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

/* Global reset and body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f2e26;
    color: #d0f000;
    font-family: 'Closeness', Arial, Helvetica, sans-serif;
    min-height: 100vh;
    font-weight: normal;
	padding-left: 20px;
    padding-right: 20px;
}
.input-slant::placeholder {
    color: #d0f000aa;
	text-transform: none !important;
    opacity: 1; /* Some browsers dim it, this fixes it */
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 0 0;
}

/* Header and logo */
header {
    text-align: center;
    position: relative;
    margin-bottom: 10px;
}

.logo {
	height: 90px;                   /* Smaller on desktop – change this number to whatever looks best (try 70px or 90px) */
    max-height: 100px;              /* Safety limit so it never gets too big */
    width: auto;                    /* Keeps the original proportions */
    display: block;
    margin: 10px auto 0;            /* A bit more top space, centers it */
}
/* 2 thin lines below logo with Exo text */
.logo-lines {
    margin: 6px auto 0px auto;  /* space above/below, centered */
    max-width: 777px;
    text-align: center;
}

.thin-line {
    border: 0;
    border-bottom: 1px solid #d0f000;  /* same 1px grayish-yellow as NEWS column */
    margin: 6px 0;  /* small space above/below lines */
}

.exo-text {
    font-family: 'Exo2Italic', Arial, sans-serif;
    font-size: 0.8em;  /* small but readable */
    font-weight: normal;  /* thin weight */
    color: #f0f0f0;  /* bright green */
    margin: 10px 0px 0px 0px;   /* 8px space above text – change to 6px or 10px if too much/too little */
    line-height: 1.2;  /* tight spacing */
}
/* Main cards – centered, no stacking, no scroll */
.main-cards {
    display: flex;
    flex-wrap: nowrap; /* Never stack – always side by side */
    justify-content: center; /* Centers horizontally like sponsor/news */
    gap: 25px; /* Space between cards – keep or adjust */
    margin: 0px auto 30px auto; /* Same centering + top/bottom as sponsor/news */
    max-width: 1000px; /* Caps total width so it stays centered */
    padding: 0 10px; /* Small side padding – prevents edge touch */
}

/* Individual card – fixed sizes, no crop, animation visible */
.card {
    width: 280px !important; /* Fixed desktop width – never changes */
    flex: 0 0 280px !important; /* Prevents flex from shrinking/growing */
    height: 320px; 
    display: block;
    text-decoration: none;
    visibility: visible !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
    transform: skewX(-7deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease, overflow 0.4s ease;
    background: #d0f000;
    border-radius: 9px;
}

.card:hover {
	overflow: visible !important;
    visibility: visible !important;
    transform: skewX(-7deg) perspective(1200px) rotateY(-7deg) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.card:hover h2 {
    color: #ffffff;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #d0f000;
	overflow: hidden;
	border-radius: 9px !important;  /* ← add this to fix clipped radius */
    }

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 0.2;
    z-index: 1;
}

.browse-card .card-background {
	transform: skewX(7deg);
    background-image: url('d3Squaretriple_small.png');
    background-size: 100%;
}

.create-card .card-background {
	transform: skewX(7deg);
    background-image: url('d2right.png');
    background-size: 108%;
    background-position: bottom left 10px;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
	transform: skewX(7deg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;  /* Reduced from 40px to fit text inside fixed height – no crop */
    text-align: center-left;
}

.card h2 {
    font-size: 3.4em;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
    color: #0f2e26;
    font-weight: bold;
    font-style: italic;
    transition: color 0.4s ease;
}
.search-bar select {
    margin-bottom: 2px;   /* Space below each dropdown on big screens */
}
/* Search bar - desktop styles: wider, centered, not too high, text centered */
.search-bar {
    margin: 40px auto 20px auto;  /* Spacing above/below, auto centers it */
    text-align: center;
	line-height: 1;
	max-width: 100%;  /* Full container width */
}

.search-bar form {
    display: inline-block;  /* Keeps form centered */
    width: 100%;
}

.search-bar .search-input-container {
    position: relative;
    width: 100%;
    max-width: 580px;  /* Wider on desktop - change 800px if you want even wider/narrower */
    margin: 0 auto;
}
.search-bar input::placeholder {
    color: #0c3b2e;
    opacity: 0.8;
	line-height: 1;
}

.search-bar input {
    width: 100%;
    padding: 0 50px 0 20px;  /* Remove top/bottom padding – we'll use flex for centering */
    height: 40px;  /* Keep the height */
    border: none;
    border-radius: 50px;
    background: #d0f000;
    color: #0c3b2e;
    font-family: 'Closeness', Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    font-style: italic;
    text-align: center;  /* Horizontally centers text/placeholder */
    box-sizing: border-box;
    display: flex;  /* ← New: turns the field into a flex box */
    line-height: 1; 
    justify-content: center;  /* ← New: extra safety for horizontal centering */
	box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.search-bar img#searchIcon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    cursor: pointer;
}
.social-links a {
    text-decoration: none;      /* No underline */
}

.social-links a:hover {
    text-decoration: none;      /* Still none on hover */
}
.profile-image {
    width: 300px;                  /* Adjust size as you like */
    height: 300px;                 /* Square for profile look */
    background-size: cover;        /* Image fills the box */
    background-position: center;   /* Centers the driver photo */
    border-radius: 50%;            /* Makes it circular – optional, remove for square */
    margin: 0 auto 15px;           /* Centers and adds space below */
    border: 4px solid #d0f000;     /* Optional: yellow border for racing vibe */
}
.driver-info {
    position: relative;
	font-style: italic;
	bottom: 0;
    left: 0;
    width: 100%;
    height: 112px;  /* Fixed height – change this number if you want taller/shorter */
    background-color: #0f2e26;  /* Dark green background */
    padding: 6px 8px 0px 9px;
    box-sizing: border-box;  /* Makes padding stay inside the height */
    overflow: hidden;  /* Cuts off text if too long */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* Centers text vertically */
	border-bottom: 3px solid #d0f000;  /* Bottom line */
    border-left: 3px solid #d0f000;     /* Left line */
    border-right: 3px solid #d0f000;
	border-radius: 9px;
	text-overflow: ellipsis;        /* Adds ... when text is cut off */
    display: -webkit-box;           /* Required for line-clamp */
    -webkit-line-clamp: 4;          /* Max 4 lines */
    -webkit-box-orient: vertical;
}

.driver-info * {
    transform: skewX(7deg);
}
.driver-card .card-inner {
    transform: skewX(7deg);
    height: 220px !important;
    position: relative;
    background: transparent;
}

/* Make name and details fit nicely */
.driver-info h3 {
    margin: 0 0 1px 0;	/* Less space below name – pulls everything up */
    margin-right: 0px;
	font-size: 1.1em;
	text-transform: uppercase !important;
	display: -webkit-box;
	-webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;  /* Allows wrapping if needed */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;  /* Tighter line for name */
	padding-right: 16px;
}
.driver-info h3 img {
    position: absolute;
    top: 2px;            /* Distance from top of dark box */
    right: 0px;          /* Distance from right edge */
    height: 24px;        /* Flag size – change if too big/small */
    margin: 0;           /* Removes any extra space */
    z-index: 10;         /* Keeps flag on top if needed */
}

.driver-info p {
    margin: 0;
    font-size: 0.85em;
   	line-height: 1.3;  /* Good spacing for multiple lines */
    white-space: normal;  /* Allows text to wrap to next line */
    overflow: hidden;  /* Still cuts off if too much text */
    display: -webkit-box;
    -webkit-line-clamp: 4;  /* Max 3 lines – change to 4 if you want more */
    -webkit-box-orient: vertical;
}
.driver-info img {
    transform: skewX(-7deg);  /* Cancels the slant just for the flag */
    display: inline-block;
}
/* Driver Card Fonts – for small details only */
.driver-info p,
.profile-details p {
    font-family: 'Exo2Italic', Arial, sans-serif !important;
    font-style: italic;
}
/* Styles for normal driver cards  */
.driver-card {
	width: 220px;
	flex: 0 0 auto;
    background: #d0f000;
    transform: skewX(-7deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
    border-radius: 9px;
    margin-bottom: 40px;
    padding-bottom: 0px !important;
    overflow: hidden;
    position: relative;
	transition: all 0.3s ease;  /* Smooth animation for everything */
    transform: skewX(-7deg) scale(1);        /* Starting size: normal */
}
.driver-card:hover {
    transform: skewX(-7deg) perspective(1200px) rotateY(-7deg) scale(1.02);     /* Grow % on hover – same as front page */
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);  /* Nice shadow lift */
}
.driver-card .card-background {
    background-repeat: no-repeat;
    background-position: bottom right 15px;
    background-size: contain;
    opacity: 0.8;
    position: absolute;
    top: 10px !important;
    left: 0px;
    width: calc(100% - 6px);
    height: calc(100% - 14px);
    overflow: hidden;
}

/* Sponsor box – simple container with shadow and margin, no skew */
/* Sponsor container – centers the image + shadow, no visible background */
.sponsor-container {
    position: relative;
    max-width: 830px;
    margin: 20px auto;
    width: 100%;
    background: transparent;  /* no color = no green frame */
}

/* The sponsor image – fills container, shadow on image */
.sponsor-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* shadow directly on image */
}

/* Partners label – on top of image */
.sponsor-label {
    position: absolute;
    top: 8px;
    left:17px;                        /* your position – change if needed */
    background: rgba(0, 0, 0, 0.6);
    color: #d0f000;
    font-style: italic;
    font-size: 0.7em;
    padding: 3px 8px 3px 17px;
    border-radius: 4px;
    z-index: 10;
	overflow: hidden;
}
.news-faq-card {
    width: 100%;
    height: 26px;                    /* exactly 26px high */
    margin: 20px auto;               /* space above/below, centered horizontally */
    max-width: 834px;                /* not full edge-to-edge on desktop */
    border-radius: 5px;              /* same rounded corners */
    background: #d0f000;             /* bright yellow – same as driver cards */
	transform: skewX(-7deg);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4); /* same shadow */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
	color: #0f2e26 !important;          /*  text – matches your site */
    text-decoration: none !important;   /* removes default underline */
    font-family: 'Closeness', Arial, sans-serif !important;
	font-weight: bold;
    transition: color 0.4s ease;        /* smooth hover effect */
}
.news-faq-card:hover {
    color: #ffffff !important;          /* white on hover for feedback */
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}
.news-faq-card span, .news-faq-card p, .news-faq-card div {
    color: #0c3b2e;                  /* dark text for contrast */
	font-size: 1em;
    margin: 0;
}

/* My Profile icon */
.my-profile-icon {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.my-profile-icon img {
    height: 30px;
	width: auto;
}

/* Form styles for Create Driver page */
.form-box {
    background: #d0f000;
    padding: 15px 30px 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    max-width: 725px;
    margin-left: auto;
    margin-right: auto;
	border-radius: 5px;
}

.form-box label {
    display: block;
    margin-bottom: 8px;
    color: #0f2e26;
    font-weight: bold;
}
.looking-for-box {
    padding-bottom: 15px !important;  /* Forces smaller bottom space – change 10px if needed */
}

.input-slant {
	transform: skewX(-7deg);
	border-radius: 5px;
    padding: 12px;
    background: #0f2e26;
    color: #d0f000;
    border: none;
	text-transform: none !important;
    width: 100%;
    font-family: 'Exo2Italic', Arial, Helvetica, sans-serif;
}

.input-slant * {
    transform: skewX(7deg);
}

.input-slant.has-input {
    color: #ffffff;
}

/* Toggle switches */
.toggle-group {
    display: flex;
    justify-content: left;
    margin-top: 0px;
	}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 140px;
    height: 50px;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0f2e26;
    transition: .4s;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0f000;
    font-weight: bold;
    font-size: 1em;
}

.slider:before {
    position: absolute;
    content: "";
    height: 42px;
    width: 42px;
    left: 4px;
    bottom: 4px;
    background-color: #d0f000;
    transition: .4s;
    border-radius: 50%;
}

.slider:after {
    content: "No";
    position: absolute;
}

input:checked + .slider:after {
    content: "Yes";
    color: #ffffff;
}

input:checked + .slider:before {
    transform: translateX(90px);
    background-color: #ffffff;
}

/* Smaller toggle on mobile */
.toggle-switch {
    width: 120px;
    height: 40px;
}

.slider {
    font-size: 0.7em;
}

.slider:before {
    height: 32px;
    width: 32px;
    left: 4px;
    bottom: 4px;
}

input:checked + .slider:before {
    transform: translateX(80px);
}

/* Checkboxes for multi-select */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    color: #0f2e26;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    accent-color: #d0f000;
    transform: scale(1.5);
    margin-right: 8px;
}

/* Submit button */
.submit-btn {
    font-family: 'Closeness', Arial, Helvetica, sans-serif;
    font-weight: bold;
    width: 100%;
	max-width: 200px;
    padding: 20px 20px;
	border-radius: 5px;
    background: #d0f000;
    color: #0f2e26;
    font-style: italic;
    font-size: 1.3em;
    border: none;
    transform: skewX(-7deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    cursor: pointer;
    margin-top: 20px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
/* Grid for normal driver rows – 5 per row big screen, 3 on mobile */
.drivers-grid .driver-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
	max-width: 1300px;
	margin: 0 auto;
}
.driver-row.row-hidden {
    display: none;
}
.driver-row.row-visible {
    display: flex;
}
.logo-link {
    display: inline-block;
}
.driver-card-link {
    text-decoration: none;      /* No underline */
    color: inherit;             /* Keep the original text color (yellow) */
}

.driver-card-link:hover {
    text-decoration: none;      /* Still no underline on hover */
    color: inherit;             /* No color change on hover */
}
#accept-btn {
    background-color: #ffffff;     /* Your main yellow – change to any color */
    color: #0c3b2e;                /* Dark text to contrast – change if needed */
    border: 2px solid #ffffff;     /* White border – optional */
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#accept-btn:hover {
    background-color: #ffffff;     /* Slightly darker yellow on hover */
    border-color: #d0f000;
    transform: scale(1.10);        /* Small grow effect – optional */
}
#loadMoreBtn {
    padding: 15px 40px;
    background: #d0f000;
    color: #0c3b2e;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-family: 'Closeness', Arial, sans-serif;
    font-style: italic;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    text-align: center;
    display: inline-block;
}
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center; /* optional – centers vertically too if needed */
    margin: 50px 0;
}
/* Clear search X button */
.clear-search {
    position: absolute;
    right: 50px;                    /* keep your distance */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;               /* slightly smaller – helps centering */
    color: #0c3b2e;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;                 /* important – prevents extra space */
    display: none;
    user-select: none;
    padding-bottom: 0px;            /* ← tiny nudge down – most phones need this */
}

.clear-search:hover {
    color: #000;
}

/* Extra right padding so text doesn't overlap the X */
.search-input {
    padding-right: 70px !important; /* Makes room for both icon + X */
}

/* Hide X when field is empty – handled by JS */
.search-input:not(:placeholder-shown) + .clear-search {
    display: block;
}
.profile-flag-wrapper img {
    height: 32px !important;          /* desktop size – keep or change */
    width: auto !important;
}
/* Driver detail lines – label green left, value white right, centered on page */
.driver-detail-label {
    display: flex;
    justify-content: space-between;      /* Label starts on left, no shifting */
    align-items: flex-start;          /* Align top if value wraps */
    color: #d0f000;                   /* Green labels */
    font-size: 1.1em;
    max-width: 42%;                   /* Centers the whole row */
    margin: 0 auto 8px auto;         /* Centers + space below each line */
    padding: 0 10px;
    gap: 6px;                        /* Fixed gap in middle – change to 30px if you want more */
    flex-wrap: wrap;                  /* Allows value to wrap to next line */
}

.driver-detail-value {
    color: #ffffff;                   /* White values */
    font-weight: normal;
    text-align: right;                 /* Values left-aligned when wrapped */
    flex: 1;                          /* Value takes remaining space and wraps */
    word-break: break-word;           /* Breaks long words (e.g. license types) */
	white-space: normal;              /* Allows wrapping */
}
.profile-details {					/* single driver profile name text */
		text-align: center;
}
.driver-name-profile {				/* single driver profile name text */
		font-style: italic;
        font-size: 2.1em;
		margin-bottom: 14px;
		color: #d0f000;
		line-height: 1.2;		
}
.driver-age-country {
    font-size: 1.6em;      /* desktop size */
    line-height: 1.5;
    margin: 10px 0;
}
/* Filters – dark green rounded style (desktop + mobile) */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    max-width: 844px;
	padding: 0 5px;
}

.filter-container select {
    padding: 6px 12px;
    background: #0c3b2e;
    color: #d0f000;
    border: 2px solid #d0f000;
    border-radius: 50px;
    font-size: 1em;
    font-family: 'Exo2Italic', Arial, sans-serif;
    cursor: pointer;
    min-width: 150px;
    appearance: none;  /* Removes default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
	line-height: 1 !important; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d0f000' d='M6 9l-4-4h8z'/%3E%3C/svg%3E"); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.filter-container select:hover {
    background-color: #0f3b2e;
}

/* Reset button style (desktop) */
.reset-filter-btn {
    padding: 6px 12px;
    background: #0c3b2e;
    color: #ffffff;
    border: 2px solid #d0f000;
    border-radius: 50px;
    font-size: 1em;
    font-family: 'Exo2Italic', Arial, sans-serif;
    cursor: pointer;
    min-width: 50px;
	order: 900;
	display: flex !important;         /* ← add this: enables centering */
    align-items: center !important;   /* ← add this: vertical center */
    justify-content: center !important;
}

.reset-filter-btn:hover {
    background: #0f3b2e;
}
#floatingReset {
    position: fixed;
    top: 14px;                     /* Distance from top of screen – adjust 10px-25px if needed */
    left: 50%;
	color: #ffffff;
    transform: translateX(-50%) scale(0.95);   /* Perfect centering */
    z-index: 999;
	min-height: unset;
    background-color: #0c3b2e;     /* Same green as original */
    font-weight: regular;
    font-family: 'Exo2Italic', Arial, Helvetica, sans-serif; /* Same font */
    border: 2px solid #d0f000;
    border-radius: 50px;            /* Same as original */
    padding: 4px 12px;            /* Adjust padding to match original size */
    font-size: 1em;                /* Same text size as original */
	line-height: 1.1;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
    min-width: 100px;
    text-align: center;
    display: none;                 /* Extra safety */
}

/* When visible (added by JS) */
#floatingReset.visible {
    opacity: 1 !important;
	transform: translateX(-50%) scale(1) !important;  /* grows to full size */
    pointer-events: auto !important;
    display: block !important;
}
/* Back link – same style as profiles page */
.back-link {
    display: block;
    text-align: center;
    font-style: italic;
    margin-top: 40px;
    color: #d0f000;
    text-decoration: none;
    font-size: 1em;
}

.back-link:hover {
    color: #ffffff;  /* optional – changes to white on hover for feedback */
}
/* Single media query for mobile */
@media (max-width: 768px) {
	.exo-text {
        font-size: 0.6em;
		margin: 0px 0px 0px 0px;
    }
		
	.main-cards {
        gap: 14px;
        margin: 5px auto 15px auto;
    }

    .card {
        width: 150px !important;
        flex: 0 0 150px !important;
        height: 180px !important;
		border-radius: 9px !important;
		overflow: hidden;
		transition: transform 0.4s ease, box-shadow 0.4s ease, overflow 0.4s ease;
    }
	.card:hover {
        overflow: visible !important;
    }
	.card-inner {
        border-radius: 9px !important;
    }
    .card-content {
        padding: 12px;  /* Reduced on mobile to fit – no crop */
    }

    .card h2 {
        font-size: 2.0em;  /* Slightly smaller text on mobile to fit height */
    }
	
    .submit-btn {
        font-size: 1.2em;
    }

    .container {
        padding: 10px 0 0;
    }

    .header {
        margin-bottom: 5px;
    }

    .logo {
        height: 55px;               /* Smaller on phones – adjust if you want */
        margin: 8px auto 0px;
    }
	
   	.my-profile-icon img {
		height: 18px !important;
		width: auto !important;		
	}
	.profile-image {
        width: 200px !important;    /* Exactly 220px on phones */
        height: 200px !important;
        margin: 0px auto 10px !important;     /* A little less top/bottom space on small screens */
		border: 3px solid #d0f000 !important; 
    }
	.sponsor-container {
        max-width: 452px;
        margin: 10px auto;
    }
    
    .sponsor-image {
        width: 100%;
        max-width: 452px;
    }
    
    .sponsor-label {
        left: 10px;
        font-size: 0.50em;
        padding: 2px 6px 2px 4px;
    }
	
	/* ALL DRIVER CARDS SETTINGS for mobile below here */
   .drivers-grid .driver-row {
        gap: 8px;
        flex-wrap: wrap !important;    /* Allows cards to go to next line */
        justify-content: center;
        overflow: visible;             /* Shows full cards, no cropping */
    }
	.driver-card {
    width: 170px;               /* Fixed width – same as desktop */
    max-width: 100%;            /* Won't overflow on small screens */
    margin-bottom: 20px;
}
	.driver-card .card-inner {
    height: 150px !important;   /* Makes the photo/background part shorter on mobile */
}
	.driver-info {
    padding-top: 4px;
	padding-bottom: 4px;
	padding-right: 2px;
	padding-left: 8px;	
    height: 96px !important;        /* Optional: makes the whole info box a bit shorter if needed */
	overflow: hidden;               /* Hides anything beyond 4 lines */
    text-overflow: ellipsis;        /* Adds ... when text is cut off */
	flex-wrap: wrap;
    display: -webkit-box;           /* Required for line-clamp */
    -webkit-line-clamp: 3;          /* Max 4 lines */
    -webkit-box-orient: vertical;
}
	.driver-info h3 {
		font-size: 0.9em !important;   /* Makes name smaller on mobile */
		text-transform: uppercase !important;
		line-height: 1.2;               /* Keeps it from looking squished */
		padding: 0px 19px 1px 0px;
		
		}
	.driver-info p {
		font-size: 0.75em !important;   /* Makes the Age/Country/Team text smaller */
		line-height: 1.1;               /* Keeps good spacing between lines if it wraps */
		margin: 0;
}
	.driver-info h3 img {
        position: absolute;
        top: 2px;                   /* Distance from top – change this */
		right: 2px;                /* Distance from right – change this */
        height: 12px !important;           
        z-index: 10;
    }
	.driver-card .card-background {
		background-size: contain !important;   /* Makes the driver image fill the shorter space nicely */
		background-position: right 20px Bottom !important;  /* Centers the image so it looks good */
		background-repeat: no-repeat !important;
}
    .drivers-grid .driver-row .driver-card:nth-child(n+4) {
        display: none;  /* Hides 4th and 5th card on mobile – shows only 3 */
    }
/* Sponsor box shorter on mobile */
	div[style*="max-width: 830px"] {
        max-width: 452px !important;
        margin: 10px auto !important;
    }
    
    div[style*="max-width: 830px"] img {
        max-width: 452px !important;
    }
    
    div[style*="position: absolute; top: 10px; left: 20px"] {
        left: 10px !important;
        font-size: 0.55em !important;
        padding: 3px 6px 3px 8px !important;
    }

    /* News / F.A.Q card shorter on mobile */
    .news-faq-card {
        height: 20px !important;      /* ← shorter than 26px – try 22px or 28px */
        line-height: 20px !important; /* centers text vertically */
        font-size: 0.8em !important; /* smaller text to fit */
        margin: 0px auto !important;
		padding-top: 2px !important;
		max-width: 452px;
		
    }
    .container {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
/* Static search bar + icon on mobile – no positioning tricks */
.search-bar {
    margin: 10px auto 0px auto !important;
    padding: 0 10px;
    text-align: center;
	}

.search-bar form {
    display: inline-block;
    width: 100%;
    max-width: 64% !important;
}

.search-bar .search-input-container {
    position: relative; /* Keep only this for icon */
    display: inline-block;
    width: 100%;
	max-width: 64% !important;
}

.search-bar input {
    height: 28px !important;
    padding: 0 38px 0 12px !important;  /* Extra right padding for icon space */
    font-size: 0.88em !important;
    width: 100% !important;
    border: none;
    border-radius: 50px;
    background: #d0f000;
    color: #0c3b2e;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center !important; /* Vertical center */
    justify-content: center !important; /* Horizontal center */
    box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important; /* Keep shadow if you added it */
}

.search-bar img#searchIcon {
    position: absolute;
    top: 50%;
    right: 12px !important;          /* Fixed safe distance inside */
    transform: translateY(-50%);
    height: 16px !important;         /* Small fixed size – fits 28px field */
    width: auto !important;
	}
.profile-details {
        padding-left: 10px !important;
        padding-right: 10px !important;
		box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
	
.profile-flag-wrapper img {
        height: 20px !important;    /* smaller on mobile – try 18px or 22px */
        width: auto !important;
    }
.driver-detail-label {
		max-width: 84%;
        font-size: 1em;
        gap: 10px;                    /* Slightly smaller gap on mobile */
		margin-bottom: 4px;
    }
.driver-detail-value {
		font-size: 1em;
    }
.driver-name-profile {
        font-size: 1.6em;    /* Smaller on phones – try 1.6em or 2.0em */
        margin-bottom: 10px; /* Slightly less space on mobile */
    }
    
.driver-age-country {
        font-size: 1.3em !important;
        line-height: 1.4 !important;
		margin-top: 4px;
		margin-bottom: 0px;
    }
/* Placeholder styling */
.search-bar input::placeholder {
    color: #0c3b2e;
    opacity: 0.8;
	text-align: center !important; /* Extra horizontal safety */
	line-height: 1 !important;
}
#loadMoreBtn {
    padding: 10px 30px !important;
    font-size: 1.0em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.filter-container {
        flex-wrap: wrap;          /* ← changed from nowrap to wrap */
        overflow-x: hidden;       /* no horizontal scroll needed */
        gap: 6px;
		max-width: 84%;
        padding: 10px;
        justify-content: center;
		margin-bottom: 8px !important; /* space below filters */
		margin-top: 0px !important;
    }

    .filter-container select {
        font-size: 0.9em;
		line-height: 1 !important;
        min-width: 120px;
        flex: 1 1 45%;           /* makes them roughly 2 per row on small screens */
        max-width: 48%;
    }

	.reset-filter-btn {
    flex: 1 1 100%;
    margin-top: 0px;
	max-width: 74% !important;
    line-height: 1 !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
	}
	#floatingReset {
        display: none !important;
    }
}	

/* BOTTOM code not MOBILE below this point  */
footer {
    padding: 50px 20px 10px;          /* Reduced bottom padding for less overall vertical space */
    font-family: 'Exo2Italic', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.6em;
    color: #b3b3b3;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;                         /* Reduced vertical space between the 2 lines – was 12px */
}

.footer-left,
.footer-right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;                        /* Horizontal space between items */
    flex-wrap: wrap;
	text-transform: uppercase;
}

.footer-link {
    color: #b3b3b3;                   /* Grey by default – NOT green */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #d0f000 !important;        /* Green only on hover */
}

/* Add / separator between NEWS/FAQ and INSTAGRAM */
.footer-left a + a::before {
    content: " | ";
    color: #b3b3b3;
    margin: 0 2px;                   /* Space around the / */
    pointer-events: none;             /* Can't click the separator */
}

.footer-right p,
.footer-right a {
    margin: 0;
    color: #b3b3b3;                   /* Grey copyright text */
    text-decoration: none;
}

.footer-right a:hover {
    color: #d0f000 !important;
}

    body {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
}


