/* Temsilcilikler Sayfası için Özel CSS - Eski Stilleri Koruyan */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2a2a2a;
    margin: 0;
    padding: 0;
}

/* Top Bar */
.top-bar {
    background: #2a2a2a;
    color: white;
    font-size: 0.8rem;
    padding: 6px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.top-bar-item:hover {
    opacity: 1;
}

.top-bar-item i {
    color: #ec1c24;
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}

.top-bar-item span {
    font-weight: 400;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.social-link:hover {
    background: #ec1c24;
    transform: translateY(-2px);
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 38px;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    top: 0;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo h2 {
    color: #ec1c24;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #2a2a2a;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: #ec1c24;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ec1c24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

/* Force opaque background for active dropdown - ENHANCED */
.dropdown.active .dropdown-menu,
.dropdown.active .dropdown-menu *,
.dropdown.active .dropdown-menu li,
.dropdown.active .dropdown-menu a {
    background: #ffffff !important;
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Additional active state styles */
.dropdown.active .dropdown-menu {
    background: #ffffff !important;
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mobile override - remove ALL transforms */
@media (max-width: 768px) {
    .dropdown-menu,
    .dropdown-menu *,
    .dropdown.active .dropdown-menu,
    .dropdown.active .dropdown-menu *,
    .dropdown.active .dropdown-menu li,
    .dropdown.active .dropdown-menu a,
    .navbar .nav-menu .dropdown.active .dropdown-menu,
    .navbar .nav-menu .dropdown.active .dropdown-menu *,
    .navbar .nav-menu .dropdown.active .dropdown-menu li,
    .navbar .nav-menu .dropdown.active .dropdown-menu a {
        transform: none !important;
    }
}

/* Force solid background for active dropdown on all elements */
.dropdown.active .dropdown-menu,
.dropdown.active .dropdown-menu *,
.dropdown.active .dropdown-menu li,
.dropdown.active .dropdown-menu a {
    background: #ffffff !important;
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Most specific selector to override any other CSS - ULTIMATE FIX */
.navbar .nav-menu .dropdown.active .dropdown-menu,
.navbar .nav-menu .dropdown.active .dropdown-menu *,
.navbar .nav-menu .dropdown.active .dropdown-menu li,
.navbar .nav-menu .dropdown.active .dropdown-menu a,
.dropdown.active .dropdown-menu,
.dropdown.active .dropdown-menu *,
.dropdown.active .dropdown-menu li,
.dropdown.active .dropdown-menu a {
    background: #ffffff !important;
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Desktop specific active dropdown styles - ENHANCED */
@media (min-width: 769px) {
    .dropdown.active .dropdown-menu {
        background: #ffffff !important;
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }
    
    .dropdown.active .dropdown-menu *,
    .dropdown.active .dropdown-menu li,
    .dropdown.active .dropdown-menu a {
        background: #ffffff !important;
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Ultimate override for desktop active dropdown */
@media (min-width: 769px) {
    .navbar .nav-menu .dropdown.active .dropdown-menu,
    .navbar .nav-menu .dropdown.active .dropdown-menu *,
    .navbar .nav-menu .dropdown.active .dropdown-menu li,
    .navbar .nav-menu .dropdown.active .dropdown-menu a,
    .dropdown.active .dropdown-menu,
    .dropdown.active .dropdown-menu *,
    .dropdown.active .dropdown-menu li,
    .dropdown.active .dropdown-menu a {
        background: #ffffff !important;
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #ffffff;
    background-color: #ffffff;
    min-width: 560px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10001;
    padding: 1rem 0;
    margin-top: 10px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    background: #ffffff !important;
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.dropdown-menu li {
    list-style: none;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.dropdown-menu li:nth-child(2n) {
    border-right: none;
}

.dropdown-menu li:nth-child(n+13) {
    border-bottom: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #2a2a2a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    min-height: 60px;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    color: #ec1c24;
    transform: translateX(5px);
}

.dropdown-menu i {
    width: 16px;
    color: #ec1c24;
    font-size: 0.9rem;
}

.dropdown-menu a:hover i {
    color: #ec1c24;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2a2a2a;
    margin: 3px 0;
    transition: 0.3s;
}

/* Representatives Page Styles */
.representatives-hero {
    background: linear-gradient(135deg, #2a2a2a 0%, #ec1c24 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
}

.representatives-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.representatives-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.representatives-grid-section {
    padding: 0;
    background: #f8f9fa;
}

.representatives-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    justify-items: center;
    width: 100%;
    max-width: 100%;
}

.representative-card {
    background: white;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    height: 140px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.representative-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #ec1c24;
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 8px;
}

.representative-card:hover .brand-logo {
    transform: scale(1.05);
}

/* Fair logo özel stili */
.representative-card img[src*="fair.png"] {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
}

/* Fair kutusu özel stili */
.representative-card:has(img[src*="fair.png"]) {
    background: #2a2a2a;
    border-color: #2a2a2a;
}

/* Representatives Slider */
.representatives-slider {
    position: relative;
    margin: 4rem 0;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
}

.representatives-slider::before,
.representatives-slider::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 10;
}

.representatives-slider::before {
    top: 0;
    background: linear-gradient(to bottom, #f8f9fa, transparent);
}

.representatives-slider::after {
    bottom: 0;
    background: linear-gradient(to top, #f8f9fa, transparent);
}

.representatives-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.representative-slide {
    min-width: 220px;
    height: 160px;
    position: relative;
    margin-right: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.representative-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ec1c24, #d1171f);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.representative-slide:hover::before {
    opacity: 0.05;
}

.representative-slide:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 20px 40px rgba(236, 28, 36, 0.2);
    border-color: #ec1c24;
}

.representative-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 10px;
}

.representative-slide:hover img {
    transform: scale(1.05);
}

.brand-logo-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2;
    position: relative;
}

.brand-logo-slide .brand-logo {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%) brightness(0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.representative-slide:hover .brand-logo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(236, 28, 36, 0.9);
    color: white;
    padding: 5px 10px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.representative-slide:hover .slide-overlay {
    transform: translateY(0);
}

.slide-overlay h3 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.slide-overlay p {
    display: none;
}

/* Footer */
.footer {
    background: #2a2a2a;
    color: white;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ec1c24;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #ec1c24;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.products-column ul {
    list-style: none;
    padding: 0;
}

.products-column ul li {
    margin-bottom: 0.5rem;
}

.products-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.products-column ul li a:hover {
    color: #ec1c24;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: #ec1c24;
    margin-top: 0.1rem;
    width: 14px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.contact-item span {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.social-media-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-media-section h4 {
    color: #ec1c24;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.social-links-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link-footer:hover {
    transform: translateY(-2px);
    background: #ec1c24;
    color: white;
    box-shadow: 0 4px 12px rgba(236, 28, 36, 0.3);
}

.social-link-footer.facebook:hover {
    background: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-link-footer.twitter:hover {
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link-footer.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.social-link-footer.youtube:hover {
    background: #ff0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

.megasav-link {
    color: #d4983b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.megasav-link:hover {
    color: #c48830;
    text-decoration: underline;
}

/* Active nav link */
.nav-link.active {
    color: #ec1c24;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design for Representatives Page */
@media (max-width: 768px) {
    /* Top Bar Mobile */
    .top-bar {
        padding: 4px 0;
        font-size: 0.7rem;
    }
    
    .top-bar-left {
        gap: 1rem;
    }
    
    .top-bar-item:last-child {
        display: none;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
    
    .navbar {
        top: 32px;
    }
    
    .navbar.scrolled {
        top: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 102px; /* topbar (32px) + navbar (~70px) */
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .navbar.scrolled .nav-menu {
        top: 70px; /* only navbar height when scrolled */
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
        min-width: auto;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        background: #ffffff;
        z-index: 10001;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-menu a {
        padding: 10px 20px;
        border-bottom: 1px solid #e9ecef;
        text-align: left;
        margin: 0 20px;
        border-radius: 5px;
    }
    
    .dropdown-menu a:hover {
        transform: none;
        background: #e9ecef;
    }
    
    .representatives-hero {
        padding: 120px 0 80px;
    }
    
    .representatives-hero h1 {
        font-size: 2.5rem;
    }
    
    .representatives-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .representative-card {
        height: 180px;
        width: 270px;
        padding: 8px;
    }
    
    .brand-logo {
        max-height: 100%;
        width: 100%;
        height: 100%;
        filter: grayscale(0%);
        padding: 0;
    }
    
    /* Fair logo mobil özel stili */
    .representative-card img[src*="fair.png"] {
        background: #2a2a2a;
        padding: 12px;
        border-radius: 6px;
    }
    
    /* Representatives Slider Responsive */
    .representative-slide {
        min-width: 190px;
        height: 140px;
        margin-right: 10px;
    }
    
    .representatives .container {
        padding: 0 70px;
    }
    
    .rep-prev-btn {
        left: -60px;
        width: 50px;
        height: 50px;
    }
    
    .rep-next-btn {
        right: -60px;
        width: 50px;
        height: 50px;
    }
    
    .rep-prev-btn i,
    .rep-next-btn i {
        font-size: 1.3rem;
    }
    
    .slide-overlay {
        padding: 3px 8px;
    }
    
    .slide-overlay h3 {
        font-size: 0.7rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo img {
        max-width: 150px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem 0;
    }
    
    .social-links-footer {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .social-link-footer {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Top Bar Extra Small Mobile */
    .top-bar-left {
        gap: 0.8rem;
    }
    
    .top-bar-item span {
        display: none;
    }
    
    .top-bar-item i {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    
    .representatives-hero h1 {
        font-size: 2rem;
    }
    
    .representatives-hero p {
        font-size: 1rem;
    }
    
    .representatives-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .representative-card {
        height: 150px;
        width: 240px;
        padding: 7px;
    }
    
    .brand-logo {
        max-height: 100%;
        width: 100%;
        height: 100%;
        filter: grayscale(0%);
        padding: 0;
    }
    
    /* Fair logo küçük mobil özel stili */
    .representative-card img[src*="fair.png"] {
        background: #2a2a2a;
        padding: 10px;
        border-radius: 4px;
    }
    
    /* Representatives Slider Mobile */
    .representative-slide {
        min-width: 170px;
        height: 100px;
        margin-right: 10px;
    }
    
    .representatives .container {
        padding: 0 60px;
    }
    
    .rep-prev-btn {
        left: -50px;
        width: 45px;
        height: 45px;
    }
    
    .rep-next-btn {
        right: -50px;
        width: 45px;
        height: 45px;
    }
    
    .rep-prev-btn i,
    .rep-next-btn i {
        font-size: 1.2rem;
    }
    
    .slide-overlay {
        padding: 2px 6px;
    }
    
    .slide-overlay h3 {
        font-size: 0.6rem;
    }
}

/* Mobile Responsive Design - Enhanced */
@media (max-width: 768px) {
    /* Top Bar Mobile - Hidden */
    .top-bar {
        display: none;
    }
    
    /* Navigation Mobile - Adjusted for no top bar */
    .navbar {
        top: 0;
        padding: 0.8rem 0;
    }
    
    .navbar.scrolled {
        top: 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 52px;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar.scrolled .nav-menu {
        top: 70px;
        max-height: calc(100vh - 70px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        justify-content: center;
        color: #2a2a2a;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active {
        color: #2a2a2a !important;
    }
    
    /* Dropdown Mobile */
    .dropdown-menu {
        position: static !important;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        box-shadow: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        border-radius: 0;
        min-width: auto;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: none;
        left: 0 !important;
        top: auto !important;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 1000px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 10001;
        display: block !important;
        grid-template-columns: none !important;
        transform: none !important;
        left: 0 !important;
        position: static !important;
        top: auto !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-menu li {
        border-right: none !important;
        border-bottom: 1px solid #e9ecef !important;
        display: block !important;
        width: 100% !important;
    }
    
    .dropdown-menu li:nth-child(2n) {
        border-right: none !important;
    }
    
    .dropdown-menu li:nth-child(n+13) {
        border-bottom: 1px solid #e9ecef !important;
    }
    
    .dropdown-menu a {
        padding: 12px 20px !important;
        border: none !important;
        text-align: left !important;
        margin: 0 !important;
        border-radius: 0 !important;
        font-size: 1rem !important;
        min-height: auto !important;
        display: flex !important;
        width: 100% !important;
        color: #2a2a2a !important;
        font-weight: 500 !important;
    }
    
    .dropdown-menu a:hover {
        transform: none;
        background: #e9ecef;
    }
    
    /* Main Content - Adjusted for no top bar */
    .main-content {
        margin-top: 70px;
    }
    
    .page-header {
        margin-top: 70px;
    }
    
    .hero-section {
        margin-top: 70px;
    }
    
    /* Representatives Page Mobile Beautification */
    
    /* Representatives Hero Section Mobile */
    .representatives-hero {
        padding: 3rem 0;
        text-align: center;
        background: linear-gradient(135deg, #2a2a2a 0%, #ec1c24 100%);
        color: white;
        margin-top: 70px;
    }
    
    .representatives-hero h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .representatives-hero p {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
        opacity: 0.95;
        line-height: 1.6;
    }
    
    /* Representatives Main Section Mobile */
    .representatives-main {
        padding: 3rem 0;
        background: #f8f9fa;
    }
    
    .representatives-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* Representatives Grid Mobile */
    .representatives-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .representative-card {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .representative-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .representative-image {
        width: 100%;
        height: 600px;
        background: linear-gradient(135deg, #ec1c24 0%, #c41820 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    .representative-image img {
        max-width: 98%;
        max-height: 98%;
        object-fit: contain;
        filter: brightness(0) invert(1);
        transition: transform 0.3s ease;
    }
    
    .representative-card:hover .representative-image img {
        transform: scale(1.1);
    }
    
    .representative-content {
        padding: 2rem 1.5rem;
    }
    
    .representative-content h3 {
        font-size: 1.5rem;
        color: #2a2a2a;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .representative-content p {
        font-size: 1rem;
        color: #666;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .representative-link {
        display: inline-block;
        background: linear-gradient(135deg, #ec1c24 0%, #c41820 100%);
        color: white;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(236, 28, 36, 0.3);
    }
    
    .representative-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(236, 28, 36, 0.4);
        color: white;
    }
    
    /* Swiper Mobile Styles */
    .swiper-container {
        padding: 2rem 0;
    }
    
    .swiper-slide {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .swiper-slide img {
        max-width: 100%;
        max-height: 450px;
        object-fit: contain;
        filter: grayscale(100%);
        transition: filter 0.3s ease;
    }
    
    .swiper-slide:hover img {
        filter: grayscale(0%);
    }
    
    .swiper-pagination {
        position: relative;
        margin-top: 2rem;
    }
    
    .swiper-pagination-bullet {
        background: #ec1c24;
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }
    
    .swiper-pagination-bullet-active {
        opacity: 1;
        background: #ec1c24;
    }
    
    /* Footer Mobile - Only copyright visible */
    .footer {
        padding: 20px 0 15px;
        background: #2a2a2a;
    }
    
    .footer-content {
        display: none;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 15px 0;
        border-top: none;
        color: #999;
        font-size: 0.85rem;
        margin: 0;
    }
    
    .footer-bottom p {
        margin: 0;
        padding: 0 20px;
    }
    
    .megasav-link {
        color: #d4983b;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .megasav-link:hover {
        color: #c48830;
        text-decoration: underline;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    /* Top Bar Mobile - Hidden */
    .top-bar {
        display: none;
    }
    
    /* Navigation Mobile - Adjusted for no top bar */
    .navbar {
        top: 0;
        padding: 0.6rem 0;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .logo-img {
        height: 46px;
    }
    
    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
    
    .navbar.scrolled .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
    
    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .dropdown-menu a {
        padding: 0.7rem 2.5rem;
        font-size: 0.95rem;
    }
    
    /* Main Content - Adjusted for no top bar */
    .main-content {
        margin-top: 60px;
    }
    
    .page-header {
        margin-top: 60px;
    }
    
    .hero-section {
        margin-top: 60px;
    }
    
    /* Representatives Hero Section Mobile - Extra Small */
    .representatives-hero {
        padding: 2rem 0;
        margin-top: 60px;
    }
    
    .representatives-hero h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .representatives-hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    /* Representatives Main Section Mobile - Extra Small */
    .representatives-main {
        padding: 2rem 0;
    }
    
    .representatives-container {
        padding: 0 15px;
    }
    
    /* Representatives Grid Mobile - Extra Small */
    .representatives-grid {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .representative-card {
        border-radius: 12px;
    }
    
    .representative-image {
        height: 500px;
    }
    
    .representative-content {
        padding: 1.5rem 1.2rem;
    }
    
    .representative-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .representative-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .representative-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Swiper Mobile Styles - Extra Small */
    .swiper-container {
        padding: 1.5rem 0;
    }
    
    .swiper-slide img {
        max-height: 400px;
    }
    
    .swiper-pagination {
        margin-top: 1.5rem;
    }
    
    /* Footer Mobile - Only copyright visible */
    .footer {
        padding: 15px 0 10px;
    }
    
    .footer-bottom {
        padding: 10px 0;
        font-size: 0.8rem;
    }
    
    .footer-bottom p {
        padding: 0 15px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover::after {
        width: 0;
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        background: #ffffff !important;
        z-index: 10001;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    margin-left: 1rem;
    z-index: 1000;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    outline: none;
}

.language-btn:hover {
    border-color: #ec1c24;
    box-shadow: 0 4px 12px rgba(236, 28, 36, 0.2);
    transform: translateY(-1px);
}

.language-btn.active {
    border-color: #ec1c24;
    background: #ec1c24;
    color: white;
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.language-btn:hover .flag-icon {
    transform: scale(1.1);
}

.language-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.language-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-btn.active i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-top: 5px;
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #2a2a2a;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f8f9fa;
    color: #ec1c24;
    transform: translateX(5px);
}

.language-option .flag-icon {
    width: 18px;
    height: 18px;
}

.language-option span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Language Switcher Mobile */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0.5rem;
    }

    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .flag-icon {
        width: 20px;
        height: 20px;
    }

    .language-menu {
        min-width: 140px;
        right: -10px;
    }

    .language-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .language-option .flag-icon {
        width: 16px;
        height: 16px;
    }
}
