/*
 * Exact Copy of Django base.html Styles
 * Copied directly from Django base.html <style> section
 */

/* Color Variables */
:root {
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --secondary-color: #2c3e50;
    --text-color: #333333;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Header Styles - EXACT COPY FROM DJANGO */
.navbar-overlay {
    position: relative;
    z-index: 1000;
}

.navbar-box {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-box.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo__img {
    height: 40px;
    transition: all 0.3s ease;
}

.scrolled .logo__img {
    height: 35px;
}

.navbar-nav .nav-item {
    position: relative;
    margin: 0 0.2rem;
}

.navbar-nav .nav-link {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    color: var(--secondary-color);
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Section Titles */
.section-title {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 1.5rem;
}

/* Buttons - EXACT COPY FROM DJANGO */
.btn {
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* Cards */
.card {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Footer Styles - EXACT COPY FROM DJANGO */
.footer-section {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.footer-top {
    padding: 5rem 0 3rem;
}

.footer-logo img {
    height: 40px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--white);
}

.widget-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.payment-methods {
    font-size: 0.9rem;
}

.payment-icon {
    height: 24px;
    margin-left: 0.5rem;
}

/* Back to Top Button - EXACT COPY FROM DJANGO */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    color: var(--white);
}

/* Remove any margins/padding that create spacing */
.navbar-overlay {
    margin: 0;
    padding: 0;
}

main {
    margin-top: 0;
    padding-top: 0;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-wrap {
    text-align: center;
}

.preloader-wrap img {
    max-width: 120px;
    margin-bottom: 20px;
}

.preloader-text {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.loading-bar {
    width: 100px;
    height: 3px;
    background-color: #e9ecef;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* Menu specific styles from menu.php */
.navbar-nav .dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    background-color: #fff;
}

.navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: 0;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Currency dropdown styles */
.currency-dropdown {
    min-width: 120px;
}

.currency-option {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.currency-option:hover {
    background-color: #f8f9fa;
}

.currency-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* Force correct register button styling */
.register-btn {
    background-color: var(--white) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s ease !important;
}

.register-btn:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

/* Force navbar styling to match Django exactly */
.navbar-box {
    background-color: var(--white) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    padding: 0.75rem 0 !important;
    transition: all 0.3s ease !important;
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.logo__img {
    height: 40px !important;
    transition: all 0.3s ease !important;
}

/* Override any Bootstrap or WordPress button styles */
.btn-sm.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 1rem !important;
}

.btn-sm.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3) !important;
}

/* Media queries for responsiveness */
@media (max-width: 991.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }
    .footer-top { padding: 3rem 0 2rem; }
    .widget-title { margin-top: 1.5rem; }
}

@media (max-width: 767.98px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .section-title { font-size: 1.6rem; }
    .payment-methods { text-align: center; margin-top: 1rem; }
    .copyright { text-align: center; }
}

@media (max-width: 575.98px) {
    .btn { padding: 0.6rem 1.2rem; }
    .btn-lg { padding: 0.8rem 1.5rem; }
}