/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #0a0a0a;
    color: #e0e0e0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 15px;
}

/* Color Scheme */
:root {
    --primary-color: #d82c2c;
    --secondary-color: #0a0a0a;
    --text-color: #e0e0e0;
    --bg-dark: #0a0a0a;
}

/* --- HEADER & BANNER STYLES --- */
.header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('csi-bandr_we_banner.png');
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Pushes the navigation to the bottom */
    min-height: 30vh;
    padding: 20px 0;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 10px;
}

.nav li {
    margin: 0;
}

/* --- Sections & Dynamic Classes --- */
.section {
    padding: 60px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden-section {
    display: none;
}

.active-section {
    display: flex;
}

.section p {
    max-width: 800px;
    margin: 1em auto;
}

.tagline {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5em !important;
}

.section a {
    color: var(--primary-color);
}

.bg-dark {
    background-color: var(--secondary-color);
}

/* --- BUTTONS --- */
.btn, .download-button {
    display: inline-block;
    background: var(--primary-color);
    color: white !important;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover, .download-button:hover {
    background-color: #b32525;
    transform: translateY(-2px);
}

.btn-nav {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* --- Services Grid & Download Items --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.service-item {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h1, .service-item h2, .service-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    text-align: center;
}

/* --- COURSE BADGES & LINKS --- */
.course-badge {
    display: block;
    max-width: 150px; 
    height: auto;
    margin: 0 auto 20px auto; 
    border-radius: 5px;
}

.course-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    width: 100%;
    height: 100%;
}

.course-link h3 {
    text-decoration: none;
}

/* --- HASHES & MISC --- */
.md5-hash {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 10px;
    word-break: break-all;
}

/* --- TAB STYLES --- */
.download-tabs {
    list-style: none;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 15px;
    background-color: var(--bg-dark);
}

.download-tabs li {
    margin: 0;
}

.tab-link {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: var(--bg-dark);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.tab-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.active-tab {
    background-color: var(--primary-color);
    color: #ffffff !important;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px;
    margin-top: 10px;
    background-color: var(--secondary-color);
    text-align: left;
    border-radius: 5px;
}

.active-tab-content {
    display: block;
}

/* --- Contact Form --- */
#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 20px auto 0;
    padding: 0 10px;
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--secondary-color);
    background-color: #1a1a1a;
    color: var(--text-color);
    border-radius: 5px;
    font-size: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid var(--primary-color);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .nav ul {
        justify-content: center;
    }

    .section {
        padding: 40px 10px;
    }
}