/* Custom Styles for Mediclaim100 */

.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.card {
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.navbar-brand {
    font-weight: bold;
}

.navbar-logo {
    transition: all 0.3s ease;
}

/* Enhanced navbar styling */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Scrolled navbar state */
.navbar.scrolled {
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Responsive navbar colors */
@media (max-width: 768px) {
    .navbar {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
    }
    
    .navbar.scrolled {
        background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
    }
}

@media (max-width: 576px) {
    .navbar {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    }
    
    .navbar.scrolled {
        background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%) !important;
    }
}

/* Mobile navbar improvements */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Mobile menu improvements */
.navbar-collapse {
    transition: all 0.4s ease;
}

@media (max-width: 991px) {
    .navbar-nav {
        background: rgba(111, 66, 193, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }
}

/* Responsive mobile menu colors */
@media (max-width: 768px) {
    .navbar-nav {
        background: rgba(44, 62, 80, 0.95) !important;
    }
    
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .navbar-toggler:hover {
        background: rgba(44, 62, 80, 0.2);
        border-color: rgba(255, 255, 255, 0.6);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.3);
    }
}

@media (max-width: 576px) {
    .navbar-nav {
        background: rgba(44, 62, 80, 0.95) !important;
    }
    
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .navbar-toggler:hover {
        background: rgba(44, 62, 80, 0.2);
        border-color: rgba(255, 255, 255, 0.6);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.3);
    }
}

/* Navbar nav items */
.navbar-nav .nav-link {
    font-size: 0.7rem !important;
    font-weight: 500;
    padding: 0.15rem 0.3rem !important;
    line-height: 1.2;
    text-align: center;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
}

/* Navbar separators - Visible */
.navbar-nav .separator {
    color: rgba(255, 255, 255, 0.6);
    padding: 0 3px;
    display: flex;
    align-items: center;
    font-weight: 300;
    font-size: 0.8rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.navbar-nav .separator:hover {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Single line for responsive screens only */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        white-space: nowrap !important;
    }
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navbar separators - Visible */
.navbar-nav .separator {
    color: rgba(255, 255, 255, 0.6);
    padding: 0 5px;
    display: flex;
    align-items: center;
    font-weight: 300;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.navbar-nav .separator:hover {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Active nav item */
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    font-weight: 500;
}

/* Middlework background image */
.middlework {
    background-image: url('/static/home/imgs/centre.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    width: 100%;
    min-height: 400px;
}

/* Responsive navbar logo */
@media (max-width: 768px) {
    .navbar-logo {
        max-height: 30px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.75rem !important;
        padding: 0.2rem 0.3rem !important;
        line-height: 1.1;
    }
    
    .navbar-nav .separator {
        padding: 0 3px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        max-height: 25px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
        line-height: 1.0;
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: 0.25rem;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar-nav .separator {
        display: none; /* Hide separators on mobile for cleaner look */
    }
    
    /* Mobile menu full width */
    .navbar-collapse.show {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .middlework {
        min-height: 250px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.3rem !important;
    }
    
    .middlework {
        min-height: 250px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar-collapse.show {
        max-height: 50vh;
    }
    
    .navbar-nav {
        padding: 0.75rem;
    }
    
    .middlework {
        min-height: 200px;
    }
}

/* Beautiful Footer Styling */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    border-top: 3px solid #e94560 !important;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.1), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.footer-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-panel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer-heading {
    color: #e94560 !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #e94560, #f47068);
    border-radius: 2px;
}

.footer-muted {
    color: #b8bcc8 !important;
    font-size: 0.85rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-panel:hover .footer-muted {
    color: #ffffff !important;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-copyright {
    color: #ffffff !important;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-link {
    color: #e94560 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e94560, #f47068);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #f47068 !important;
    transform: translateY(-1px);
}

.footer-link:hover::before {
    width: 100%;
}

.footer-map-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.footer-map-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
}

.footer-map-wrapper iframe {
    border: none;
    width: 100%;
    height: 250px;
    transition: all 0.3s ease;
}

.footer-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.footer-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #25d366) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.footer-whatsapp img {
    transition: all 0.3s ease;
}

.footer-whatsapp:hover img {
    transform: rotate(15deg) scale(1.1);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0;
    }
    
    .footer-panel {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-heading {
        font-size: 0.85rem;
    }
    
    .footer-map-wrapper iframe {
        height: 200px;
    }
    
    .footer-whatsapp {
        bottom: 10px !important;
        left: 10px !important;
        padding: 10px 15px;
    }
    
    .footer-whatsapp img {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 576px) {
    .footer-panel {
        padding: 0.75rem;
    }
    
    .footer-heading {
        font-size: 0.8rem;
    }
    
    .footer-muted {
        font-size: 0.8rem;
    }
    
    .footer-map-wrapper iframe {
        height: 180px;
    }
    
    .footer-whatsapp {
        bottom: 5px !important;
        left: 5px !important;
        padding: 8px 12px;
    }
    
    .footer-whatsapp img {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Cookie Consent Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 2px solid #007bff;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
}

.cookie-banner-message {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e9ecef;
}

.cookie-banner-link {
    color: #007bff !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-banner-link:hover {
    color: #0056b3 !important;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.cookie-btn-necessary {
    background: transparent;
    border: 1px solid #6c757d;
    color: #e9ecef;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-btn-necessary:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
}

.cookie-btn-settings {
    color: #007bff !important;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cookie-btn-settings:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #0056b3 !important;
    transform: translateY(-2px);
}

/* Cookie Settings Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-title {
    font-weight: 600;
}

.cookie-category {
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: background 0.3s ease;
}

.cookie-category:hover {
    background: #e9ecef;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-label small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn-accept,
    .cookie-btn-necessary {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-title {
        font-size: 1rem;
    }
    
    .cookie-banner-message {
        font-size: 0.85rem;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .cookie-btn-accept,
    .cookie-btn-necessary,
    .cookie-btn-settings {
        width: 100%;
        text-align: center;
    }
}
