/* Custom fixes for seamless mobile/PC look */
.search-container {
    display: flex; 
    width: 100%; 
    border: 1px solid #dee2e6; 
    border-radius: 50px; 
    overflow: hidden; 
    background-color: #ffffff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.navbar-brand img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}
@media (max-width: 768px) {
    .search-col { order: 3; margin-top: 15px; } /* Moves search below logo/icons on mobile */
    .actions-col { order: 2; }
    .logo-col { order: 1; }
}

.btn:hover {
    background-color: #3498db !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn:hover div {
    background-color: #fff !important;
    color: #3498db !important;
}

/* Icon Styles */
.nav-icon {
    font-size: 24px;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-icon:hover {
    color: #3498db;
}

/* Fix for mobile logo height */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }
}

/* Adjust padding for mobile since the search bar stacks and makes the header taller */
/* 1. Global Resets (Desktop first) */
body, html {
    
    background-color: #f8f9fa !important; /* This is the "dark white" used by top-tier sites */
    color: #2c3e50; /* Darker text for better contrast on the new background */
    padding-top: 33px; /* Space for desktop header */
    overflow-x: hidden;
    width: 100%;
    margin: 0;
}

/* 2. Mobile Overrides (MUST be at the bottom) */
@media (max-width: 768px) {
    body {
        padding-top: 100px !important; /* Space for stacked mobile header */
    }
}

/* --- INSTRUCTIONS FOR PHONE (Mobile) --- */
@media (max-width: 768px) {
    .dropdown-mobile-fix {
        /* This moves it back to the top area on mobile */
        top: 180px !important; 
        left: 30px !important;
        
        /* These turn off the bottom/right settings */
        
        bottom: auto !important;
        right: auto !important;
        position: fixed !important;
    }
}

/* 2. Header & Nav */
.main-header img {
    max-height: 45px;
    object-fit: contain;
}
.nav-icon {
    font-size: 1.5rem;
    color: #2c3e50;
    transition: 0.3s;
}
.nav-icon:hover { 
    color: #3498db; 
}

/* 3. Search Bar Styling */
.search-wrapper {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}
.search-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}
.search-input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    outline: none;
}
.search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 20px;
}

/* 4.Footer Hover Effects */
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}
.footer-links a:hover {
    color: #ffc107; /* Warning yellow on hover */
    padding-left: 5px;
}

/* 5.Connect Hover Effects */
.connect-links a {
    color: #4ca912;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}
.connect-links a:hover {
    color: #00aaff; /* Warning yellow on hover */
    padding-left: 5px;
}

/* Hero Section */
.hero-block {
    background: url('../images/herocontain.png') no-repeat center center;
    background-size: contain;
    height: 80vh;
    display: flex;
    align-items: center;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 4rem); /* Responsive font size */
    font-weight: 800;
    color: #00aaff;
    text-transform: uppercase;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #ffc107;
    margin-bottom: 2rem;
}
.btn-hero {
    background: #3498db;
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: 0.3s;
    display: inline-block;
}
.btn-hero:hover {
    background: #2980b9;
    transform: translateY(-3px);
    color: white;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-block { height: auto; padding: 60px 0; }
}
/* Responsive Border Fix */
@media (min-width: 768px) {
    .border-md-start { border-left: 1px solid #dee2e6 !important; }
    .border-md-end { border-right: 1px solid #dee2e6 !important; }
}
@media (max-width: 767px) {
    .custom-border-mobile {
        padding-top: 2rem;
        padding-bottom: 2rem;
        border-top: 1px solid #dee2e6;
        border-bottom: 1px solid #dee2e6;
        margin: 2rem 0;
    }
}
/* Modal Specific Polish */
.modal-content {
    overflow: hidden; /* Prevents background color leaking past rounded corners */
}

.login-submit-btn {
    background-color: #3498db; 
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.switch-modal-btn {
    color: #3498db;
    vertical-align: baseline;
}

.switch-modal-btn:hover {
    color: #2c3e50;
}

/* Mobile Fix: Ensure the modal doesn't touch the screen edges */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
    }
    .modal-body {
        padding: 2rem 1.5rem !important;
    }
}
/* Modern Input Style */
.custom-reg-input {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.custom-reg-input:focus {
    background-color: #ffffff !important;
    border-color: #3498db !important;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.1) !important;
    outline: none;
}

/* Button & Link Polish */
.reg-submit-btn {
    background-color: #3498db;
    border: none;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.reg-submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}
.switch-link {
    color: #3498db;
    vertical-align: baseline;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .modal-body {
        padding: 2rem 1.25rem !important;
    }
}

/* Container for the search bar */
.search-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Makes it pill-shaped */
    overflow: hidden;
    padding: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    outline: none;
    color: #444;
}

.search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 0 50px 50px 0; /* Rounds the right side of the button */
    transition: background 0.3s;
}

.search-btn:hover {
    background: #2980b9;
}

/* Container for the logos Fix for mobile */
.logo-wrapper {
    display: inline-block;
    transition: transform 0.3s ease; /* Smooth scaling */
    padding: 10px; /* Space around for the growth */
}

/* Hover effect */
.logo-wrapper:hover {
    transform: scale(1.15); /* Grow by 15% */
}

/* Ensure the image doesn't lose quality */
.store-logo {
    max-height: 40px; /* Keep height consistent across all logos */
    width: auto;
    display: block;
}

#drop-area {
    border: 2px dashed #cbd5e0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

#drop-area.highlight {
    border-color: #3182ce !important;
    background-color: #ebf8ff !important;
}

#gallery img {
    max-width: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.border-dashed {
    border-style: dashed !important;
}

.team-card-hover .h-100:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}