/* General Body Styling */
header {
    background-color: #000000; 
    color: white;
    padding: 2rem;
    text-align: center;
    background-image: url('/Home/Competitions/suas/blogs/images/curing_head.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
body {
    color: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input,
textarea {
    font-size: 16px;
    color: white;
    margin-left: 10px;
}

img {
    margin: 10px 0px;
    width: 30vw;
}
.body-container {
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
    margin: 0px;
}

/* Title Styling */
#competition-title {
    text-align: left; 
    font-size: 4em;
    font-weight: bold;  
    font-style: italic;
    text-transform: uppercase;
    color: white;
    margin-bottom: 10px;
    margin-left: 20px;
}

/* Section Styling */
/* Container for all main content */
#carbon-fiber-curing-full {
    width: 70vw;
    margin: 0 auto; /* center align */
}

/* Topic Box Styling */
.topic-box {
    background-color: #121111; /* Slightly lighter black */
    margin: 30px 0;
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #ccc; /* Light grey text color by default */
}

/* Hover effect for topic box */
.topic-box:hover {
    transform: scale(1.03);
    color: white;
}

/* Ensure text inside topic box changes to white on hover */
.topic-box:hover .section-text,
.topic-box:hover .section-title,
.topic-box:hover .team-list-item {
    color: white;
}

/* Sub-Box Styling */
.sub-box {
    background-color: #191717; /* Slightly lighter than main topic box */
    margin: 15px 0;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #ccc; /* Light grey text color by default */
}

/* Hover effect for sub-box */
.sub-box:hover {
    transform: scale(1.02);
    color: white;
}

/* Ensure list items inside sub-box change to white on hover */
.sub-box:hover .team-list-item {
    color: white;
}

/* Section Title Styling */
.section-title {
    font-size: 1.8em;
    font-weight: bold;
    font-style: italic;
    color: white;
    margin-bottom: 10px;
}

/* Section Text Styling */
.section-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #ccc; /* Light grey text by default */
    text-align: justify;
    padding-left: 0;
}

/* Team List Styling */
.team-list {
    list-style-type: none;
    padding-left: 40px;
    margin-top: 5px;
}

.team-list-item {
    padding: 2px;
    margin: 4px 0;
    color: #ccc; /* Light grey text by default */
    text-align: left;
}

/* Hover effect for list items */
.topic-box:hover .team-list-item,
.sub-box:hover .team-list-item {
    color: white;
}
/* Section Titles */
.section-title {
    font-size: 1.8em;
    font-weight: bold;
    font-style: italic;
    color: white;
    margin-bottom: 10px;
}


/* Team List */
.team-list {
    list-style-type: none;
    padding-left: 40px; /* Left padding for proper alignment */
    margin-top: 5px;
}

/* Final Note */
.final-note {
    font-style: italic;
    font-size: 1.5em;
    color: white;
    margin-top: 20px;
    padding-left: 10px; /* Added left padding */
}
/* Hero Section Styling */
.hero {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: white;
    z-index: -1;
}

/* Overlay to Darken Background */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}
/* Image Section Styling */
.image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    margin-left: 50px;
    margin-right: 90px;
}

.section-image {
    width: 45%;  /* Adjust the width as needed */
    height: auto;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
    #competition-title{
        text-align: center; 
        font-size: 3em;
        font-weight: bold;
    }
    .hero {
        height: 200px;
    }
    .section {
        text-align: left;
        padding: 5px;
        margin-left: 0px;
    margin-right: 0px;
    }
    .section-text {
        font-size: 1em;
        text-align: justify;
    }
    .image-section {
        flex-direction: column;
        margin-left: 20px;
        margin-right: 20px;
        left: 0;
    }
    
    .section-image {
        width: 90%;
        margin: 10px auto;
    }
}