/* Regulation Page Specific Styles */

/* Fix the header background to cover the entire area including behind navbar */
.regulation-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('tlo.jpeg') no-repeat center center;
    background-size: cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
    padding-top: 60px;
}

.header-content {
    text-align: center;
    z-index: 2;
    color: white;
    padding: 0 20px;
    margin-bottom: 20px; /* Add some bottom margin for larger header */
}

.regulation-header h1 {
    font-size: 3em; /* Larger title */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #f59536;
}

.regulation-header p {
    font-size: 1.5em;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Layout for regulation page */
.regulation-container {
    display: flex;
    max-width: 1300px;
    margin: 30px auto;
    min-height: 800px;
}

/* Sidebar navigation */
.regulation-sidebar {
    width: 260px;
    background-color: #0f0f0f;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 90px;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-content {
    padding: 25px 15px;
}

.regulation-sidebar h3 {
    color: #f59536;
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
}

.regulation-nav {
    list-style: none;
    padding: 0;
}

.regulation-nav li {
    margin-bottom: 10px;
}

.regulation-nav a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.regulation-nav a:hover {
    background-color: rgba(245, 149, 54, 0.2);
    color: #f59536;
}

.regulation-nav a.active {
    background-color: rgba(245, 149, 54, 0.3);
    color: #f59536;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.regulation-nav a i {
    margin-right: 10px;
}

.regulation-content {
    flex: 1;
    padding: 0 30px 30px;
    margin-left: 30px;
    background-color: #0f0f0f;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.regulation-section {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    scroll-margin-top: 120px; /* Add scroll margin for anchor links */
}

.regulation-section:last-child {
    border-bottom: none;
}

.regulation-section h2 {
    color: #f59536;
    margin-bottom: 20px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
}

.regulation-section h2 i {
    margin-right: 15px;
}

.section-intro {
    color: #cccccc;
    margin-bottom: 30px;
    font-size: 1.05em;
    line-height: 1.6;
}

.section-content {
    padding: 10px;
}

.rule-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.rule-item h3 {
    color: #f59536;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.rule-item p {
    color: #e0e0e0;
    line-height: 1.5;
}

.terms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.term-item {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.term-item h3 {
    color: #f59536;
    margin-bottom: 10px;
}

.regulation-footer {
    margin-top: 40px;
    text-align: center;
    color: #cccccc;
}

.regulation-footer p {
    margin-bottom: 15px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59536;
    text-decoration: none;
    border: 1px solid #f59536;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #f59536;
    color: #0f0f0f;
}

/* Fix body margin and header styles */
body {
    position: relative;
    margin: 0; /* Reset body margin */
    padding: 0;
    background-color: #1d1d1d; /* Original dark gray restored */
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0); /* Original pattern restored */
    background-size: 40px 40px;
}

/* Remove the watermark completely from the regulation page */
body::after {
    display: none; /* This removes the watermark by hiding the pseudo-element */
}

nav {
    background-color: transparent !important;
}

/* Add a fixed navbar height variable to ensure consistency */
:root {
    --navbar-height: 60px;
}

/* Fix cover image behind navbar */
header.regulation-header {
    margin-top: 0;
    padding-top: var(--navbar-height);
    z-index: 0;
}

/* Update header content styles */
.header-content {
    text-align: center;
    z-index: 2;
    color: white;
    padding: 0 20px;
    margin-bottom: 20px; /* Add some bottom margin for larger header */
}

.regulation-header h1 {
    font-size: 3em; /* Larger title */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #f59536;
}

.regulation-header p {
    font-size: 1.5em;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Main content area */
.regulation-content {
    flex: 1;
    background-color: transparent;
    border-radius: 10px;
    padding: 40px;
    min-width: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

/* Prevent text selection and copying in regulation content */
.regulation-content ::selection {
    background-color: rgba(245, 149, 54, 0.2); /* Custom selection color that matches theme */
    color: inherit;
}

/* Disable right-click context menu on regulation content */
.regulation-content {
    pointer-events: auto;
}

/* Restore original section backgrounds */
.regulation-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0f0f0f; /* Original dark color restored */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.regulation-section h2 {
    color: #f59536; /* Orange color restored */
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.regulation-section h2 i {
    color: #f59536; /* Orange color restored */
    font-size: 0.9em;
}

.section-intro {
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Rule items */
.rule-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03); /* Original subtle background */
    border-radius: 8px;
    border-left: 3px solid #f59536; /* Orange border restored */
}

.rule-item h3 {
    color: #f59536; /* Orange color restored */
    margin-bottom: 12px;
    font-size: 1.2em;
}

/* Terms list */
.terms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.term-item {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.03); /* Original subtle background */
    border-radius: 8px;
    border-left: 3px solid #f59536; /* Orange border restored */
}

.term-item h3 {
    color: #f59536; /* Orange color restored */
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Footer section styling */
.regulation-footer {
    margin-top: 40px;
    text-align: center;
    color: #cccccc;
}

.regulation-footer p {
    margin-bottom: 15px;
}

.regulation-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(245, 149, 54, 0.4), transparent);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.regulation-footer p:first-child {
    color: #f59536; /* Orange color restored */
    font-weight: 500;
    font-size: 1.05em;
    margin-bottom: 15px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59536;
    text-decoration: none;
    border: 1px solid #f59536;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #f59536;
    color: #0f0f0f;
}

/* Disclaimer text styling */
.disclaimer-text {
    font-size: 0.7em;
    color: #666;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .disclaimer-text {
        font-size: 0.6em;
    }
}

/* Add responsive styles for better mobile experience */
@media (max-width: 992px) {
    .terms-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .regulation-container {
        flex-direction: column;
        margin: 15px auto;
    }
    
    .regulation-sidebar {
        width: 100%;
        position: static;
        height: auto;
        margin-bottom: 20px;
        max-height: none;
        overflow-y: visible;
    }
    
    .sidebar-content {
        padding: 15px;
    }
    
    .regulation-content {
        width: 100%;
        margin-left: 0;
        padding: 10px;
    }
}
