/*
    Save this file as style.css and upload it to the 'public_html/css/' folder.
    Make sure you have your images in 'public_html/img/'
*/

:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #f8f9fa; /* Light Gray */
    --text-color: #333;
    --white: #fff;
    --font-family: Arial, sans-serif;
    --dark-overlay: rgba(0, 0, 0, 0.6); /* For hero background overlay */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* --- Buttons --- */
.button, .button-small {
    display: inline-block;
    background-color: #28a745; /* Green for action */
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.button:hover, .button-small:hover {
    background-color: #218838;
}

.button-small {
    padding: 5px 15px;
    font-size: 0.9em;
}

/* --- Hero Section (Homepage Banner) with Image --- */
.hero {
    background-color: var(--white);
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.hero-with-image { /* New styles for background image */
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), url('../img/hero-background.jpg') no-repeat center center/cover;
    color: var(--white); /* Text color needs to be white for contrast */
    padding: 100px 0; /* More padding for a grander feel */
}

.hero-with-image h2 {
    color: var(--white); /* Ensure heading is white */
    font-size: 3em; /* Larger font for impact */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Text shadow for readability */
}

.hero-with-image p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- Intro Cards --- */
.intro-cards .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 0;
    text-align: center;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.card-icon { /* Styling for the new icons */
    width: 60px; /* Adjust size as needed */
    height: 60px;
    margin-bottom: 15px;
    vertical-align: middle;
}


/* --- Workshops List --- */
.workshops-list {
    padding: 40px 0;
}

.workshop-item {
    background: var(--white);
    /* Remove padding to allow header/content to control it individually */
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Important for the height transition */
}

/* Collapsible Workshop Header */
.workshop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px; /* Padding now on header */
    cursor: pointer;
    background-color: var(--secondary-color); /* Light gray background */
    border-bottom: 1px solid #dee2e6;
}

.workshop-header h3 {
    color: var(--primary-color);
    margin: 0;
    flex-grow: 1;
}

/* Arrow/Indicator Styling (You would typically use an icon font or SVG here) */
.toggle-arrow {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.toggle-arrow.expanded {
    transform: rotate(90deg);
}

/* Collapsible Content Area */
.detailed-info {
    max-height: 0; /* Initial collapsed state */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 20px;
}

.detailed-info.active {
    max-height: 500px; /* Sufficient height to show content when expanded */
    padding: 20px; /* Padding for the content inside */
}

/* Course code is now inside the header or the content depending on your HTML */
.course-code {
    display: inline-block;
    background-color: #e9ecef; /* Light background for contrast */
    color: #495057; /* Darker text for readability */
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 10px;
    border: 1px solid #ced4da;
}

/* Additional workshop details formatting */
.workshop-item .details {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* --- Contact Info --- */
.contact-info {
    padding: 40px 0;
}

.contact-details {
    margin-top: 30px;
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-details h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

/* --- Footer --- */
footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}