
/* =========================================
   1. VARIABLES & CONFIGURATION
   ========================================= */
:root {
    /* Colors - Dark Premium Theme */
    --c-bg: #0f172a;
    --c-surface: #1e293b;
    --c-surface-hover: #334155;
    --c-text-main: #f1f5f9;
    --c-text-muted: #94a3b8;
    
    /* Accents */
    --c-primary: #f59e0b; /* Gold */
    --c-primary-dark: #d97706;
    --c-secondary: #3b82f6; /* Blue */
    --c-accent: #ef4444; /* Red for alerts/hot */
    
    /* Gradients */
    --g-primary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --g-surface: linear-gradient(145deg, #1e293b, #0f172a);
    --g-glow: radial-gradient(circle at center, rgba(245, 158, 11, 0.15), transparent 70%);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --fs-base: 1rem;
    --fs-h1: clamp(1.75rem, 5vw, 3rem);
    --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 0.75rem;
}
::-webkit-scrollbar-track {
    background: var(--c-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--c-surface-hover);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--c-primary);
}

a {
    text-decoration: none;
    color: var(--c-secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--c-primary);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* =========================================
   3. LAYOUT UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   4. HEADER STYLES
   ========================================= */
/* Normalize headers - hiding the first empty one if redundant, or styling both */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

/* Assuming the first header is desktop logo area and second is nav */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background: url('path/to/logo.png') no-repeat center/contain; /* Fallback */
    background-color: rgba(255,255,255,0.05); /* Placeholder if image missing */
    border-radius: var(--radius-sm);
}

.menn {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Button styles for menu items */
.men3, .men4 {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-align: center;
}

/* Login Button style */
.men3 {
    background: transparent;
    border: 1px solid var(--c-primary);
    color: var(--c-primary);
}

.men3:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Register Button style */
.men4 {
    background: var(--g-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.men4:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* =========================================
   5. HERO & SLIDER AREA
   ========================================= */
.main {
    flex: 1;
    padding-bottom: 4rem;
}

.joyl-slide {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface);
    overflow: hidden;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Decorative background glow */
.joyl-slide::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: var(--g-glow);
    filter: blur(60px);
    pointer-events: none;
}

.jou-abs {
    position: relative;
    z-index: 2;
    width: 100%;
}

.main1 {
    width: 100%;
    height: 350px; /* Placeholder height */
    background-color: var(--c-surface-hover);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Animation for hero content */
.main1 {
    animation: fadeIn 1s ease-out;
}

/* =========================================
   6. MAIN CONTENT & TYPOGRAPHY
   ========================================= */
/* Override inline styles via specific selection */
h1[style] {
    margin: 0 0 2rem 0 !important;
    font-size: var(--fs-h1) !important;
    font-weight: 800;
    background: var(--g-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-size: var(--fs-h2);
    color: var(--c-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--c-primary);
    padding-left: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--c-text-muted);
    font-size: 1.05rem;
}

strong, b {
    color: var(--c-text-main);
    font-weight: 700;
}

/* Lists styling */
ul li, ol li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0.5rem;
}

ul li::marker {
    color: var(--c-primary);
}

ol li::marker {
    color: var(--c-primary);
    font-weight: bold;
}

/* Layout for content columns */
div[style*="display:flex"] {
    display: flex !important;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.joy-left {
    flex: 1;
    background: var(--c-surface);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

.main-left {
    width: 100%;
}

/* Sidebar styling */
.main-right {
    width: 300px;
    flex-shrink: 0;
    min-height: 400px;
    background: var(--c-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty sidebar placeholder style */
.main-right:empty::before {
    content: 'Banner / Widget Area';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--c-text-muted);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}

/* =========================================
   7. BUTTONS & INTERACTIVE ELEMENTS
   ========================================= */
.btn-box {
    text-align: center;
    margin: 2.5rem 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--g-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(245, 158, 11, 0.5);
    color: #fff;
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(245, 158, 11, 0.3);
}

/* =========================================
   8. FOOTER STYLES
   ========================================= */
footer {
    background: var(--c-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.menu-fo {
    color: var(--c-text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.menu-fo::before {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--c-primary);
    margin: 0 auto 1rem;
}

/* =========================================
   9. SCROLL TO TOP BUTTON
   ========================================= */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--c-surface);
    border: 1px solid var(--c-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

#scroller:hover {
    background: var(--c-primary);
    transform: translateY(-5px);
}

.b-top-but {
    font-size: 0; /* Hide text, use icon logic or CSS shape */
}

#scroller::after {
    content: '↑';
    color: var(--c-primary);
    font-size: 1.5rem;
    font-weight: bold;
}

#scroller:hover::after {
    color: #fff;
}

/* =========================================
   10. FORMS & INPUTS (Generic Support)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--c-text-main);
    font-family: var(--font-main);
    transition: var(--transition);
    margin-bottom: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Checkboxes & Radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--c-primary);
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

/* =========================================
   11. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    div[style*="display:flex"] {
        flex-wrap: wrap;
    }
    
    .main-right {
        width: 100%;
        min-height: 200px;
        order: 2;
    }
    
    .joy-left {
        order: 1;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Header adjustments */
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menn {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .men3, .men4 {
        flex: 1;
        min-width: 120px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Hero */
    .joyl-slide {
        min-height: 250px;
    }
    
    .main1 {
        height: 200px;
    }

    /* Typography */
    h1[style] {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }

    h2 {
        border-left: none;
        border-bottom: 2px solid var(--c-primary);
        padding-left: 0;
        padding-bottom: 0.5rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

/* =========================================
   12. ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.joy-left > * {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Hover effects for images within content */
.joy-left img {
    transition: transform 0.4s ease;
}

.joy-left img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}
