/* Base Styles */
:root {
    --primary-color: #1A73E8; /* Deep Blue */
    --secondary-color: #FFC107; /* Soft Yellow */
    --accent-color: #4CAF50; /* Fresh Green */
    --neutral-color: #F5F5F5; /* Light Gray */
    --dark-color: #333333;
    --white-color: #FFFFFF;
    --light-gray: #EEEEEE;
    --medium-gray: #CCCCCC;
    --dark-gray: #666666;
    --danger-color: #E53935; /* For warnings/emergencies */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-accent: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style-type: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

.nav-menu ul {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 16px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-create {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-create:hover {
    background-color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 120px 0 60px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--white-color);
}

.hero p {
    font-size: 20px;
    font-family: var(--font-accent);
    font-weight: 500;
}

/* Intro Section */
.intro {
    padding: 40px 0;
    text-align: center;
    background-color: var(--neutral-color);
}

.intro p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* Safety Guidelines Main Content */
.safety-content {
    padding: 40px 0 80px;
}

.safety-content .container {
    display: flex;
    gap: 40px;
}

/* Table of Contents */
.toc {
    width: 250px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    background-color: var(--neutral-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.toc h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.toc ul li {
    margin-bottom: 10px;
}

.toc ul li a {
    color: var(--dark-color);
    transition: color 0.3s, padding-left 0.3s;
    display: block;
}

.toc ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Guidelines Sections */
.guidelines-sections {
    flex: 1;
}

.guideline-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.guideline-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.guideline-section > p {
    font-size: 18px;
    margin-bottom: 25px;
}

.sub-section {
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
}

.sub-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.sub-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.sub-section ul li {
    margin-bottom: 8px;
}

/* Closing Message */
.closing-message {
    margin-top: 50px;
    padding: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 8px;
    text-align: center;
}

.closing-message h2 {
    color: var(--white-color);
    font-size: 28px;
}

.closing-message p {
    font-size: 18px;
}

.tagline {
    font-family: var(--font-accent);
    font-size: 20px !important;
    font-weight: 600;
    margin-top: 20px;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 99;
}

#backToTop:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--medium-gray);
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white-color);
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.website-link a {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .safety-content .container {
        flex-direction: column;
    }
    
    .toc {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: block;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active ul {
        flex-direction: column;
    }
    
    .nav-menu.active li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .guideline-section {
        padding: 20px;
    }
    
    .guideline-section h2 {
        font-size: 24px;
    }
    
    .sub-section h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .intro p, 
    .guideline-section > p,
    .closing-message p {
        font-size: 16px;
    }
    
    .tagline {
        font-size: 18px !important;
    }
    
    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 16px;
        right: 20px;
        bottom: 20px;
    }
}