/* Base Styles */
body {
    font-family: Verdana, Arial, sans-serif;
    background: repeating-linear-gradient(
        135deg,
        #ead6b4,
        #e9e1d3 2px,
        #e4c897 2px,
        #e4c897 4px
    );
    margin: 0;
    padding: 0;
}

/* Main Layout */
#wrapper { 
    background-color: #e9cd9e; 
    color: #825030;
    width: 80%;
    margin: auto;
    min-width: 800px;
    box-shadow: 0 0 10px #000;
    border: 1px solid #000;
    min-height: 100vh;
} 

/* Header */
header { 
    background-color: #cfa459;
    color: #825030; 
    font-size: 150%; 
    font-family: "Brush Script MT", "Comic Sans MS", cursive;
    text-align: center;
    padding: 10px 0;
    margin: 0;
}

header h1 {
    margin: 0;
    padding: 0;
}

/* Left Navigation Column */
#leftcolumn { 
    float: left;
    width: 160px; /* Increased width for longer text */
    padding: 20px 10px;
    background-color: #e6a534;
    min-height: 500px; /* Ensure it spans the full height */
} 

#leftcolumn nav {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Slightly reduced gap for more links */
}

#leftcolumn nav a {
    display: block;
    text-decoration: none;
    color: #482813;
    padding: 10px 8px; /* Adjusted padding for better text fit */
    background-color: #cfa459;
    border-radius: 4px;
    text-align: center;
    font-size: 11px; /* Slightly smaller font for longer text */
    line-height: 1.3;
    transition: all 0.3s ease;
    word-wrap: break-word; /* Handle long text */
}

#leftcolumn nav a:hover {
    background-color: #825030;
    color: white;
    transform: translateY(-2px); /* Subtle lift effect */
}

#leftcolumn nav a:active {
    transform: translateY(0);
}

/* Right Content Column */
#rightcolumn { 
    margin-left: 200px; /* Increased margin for wider sidebar */
    background-color: #f8e8cc;
    color: #693210;
    padding: 20px;
    min-height: 500px;
} 

/* Typography */
h2 { 
    color: #825030; 
    font-family: Arial, sans-serif;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #cfa459;
    padding-bottom: 5px;
}

h3 {
    color: #825030;
    font-family: Arial, sans-serif;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid #cfa459;
    padding-bottom: 5px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Lists */
ul {
    padding-left: 20px;
    line-height: 1.6;
}

li {
    margin-bottom: 8px;
}

/* Content Sections */
.content {
    padding: 0;
} 

/* Course Section Styling (for technicalCoursework.html) */
.section {
    margin-bottom: 30px;
}

.course {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ffffff;
    border-left: 4px solid #cfa459;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-title {
    font-weight: bold;
    color: #693210;
    margin-bottom: 8px;
    font-size: 16px;
}

.course-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: #cfa459;
    color: #4A2E1D;
    font-size: 70%;
    text-align: center;
    clear: both;
    padding: 20px;
    margin-top: 20px;
}

/* Link Styles (for content area) */
.content a, .course-desc a, footer a {
    color: #482813;
    text-decoration: underline;
}

.content a:visited, .course-desc a:visited, footer a:visited {
    color: #655349;
}

.content a:hover, .course-desc a:hover, footer a:hover {
    color: #000;
}

.content a:active, .course-desc a:active, footer a:active {
    color: #fff;
    background-color: #825030;
}

/* Utility Classes */
.padding10px {
    padding: 10px;
}

#floatleft { 
    margin: 15px;
    padding-right: 30px;
    padding-bottom: 30px;
    float: left;
}

.details {
    margin-bottom: 20px;
    overflow: hidden;
}

/* Table Styles (keeping existing table styles) */
#contentTable { 
    margin: auto;
    border-spacing: 2px;
    border: 1px solid #825030;
    width: 80%;
    border-collapse: separate;
}

#contentTable th, td {
    padding: 20px;
    text-align: center;
}

#contentTable tr:nth-child(odd) {
    background-color: #cfa459;
}

#musicTable { 
    margin: auto;
    border-spacing: 2px;
    border: 2px solid #825030;
    width: 80%;
    border-collapse: separate;
}

#musicTable th, td {
    text-align: left;
    padding-left: 25px;
}

#musicTable tr:nth-child(odd) {
    background-color: #cfa459;
}

#formTable { 
    margin: auto;
    border-spacing: 0px;
    border: 1px solid #825030;
    width: 80%;
    border-collapse: separate;
}

#formTable th, td {
    text-align: left;
    padding-left: 5px;
}

input {
    padding-left: 5px;
}

.price-input { 
    display: none; 
    margin-left: 10px; 
}

/* Responsive Design */
@media screen and (max-width: 900px) {
    #wrapper {
        width: 95%;
        min-width: 320px;
    }
    
    #leftcolumn {
        width: 100%;
        float: none;
        padding: 10px;
    }
    
    #leftcolumn nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    #leftcolumn nav a {
        flex: 1;
        min-width: 120px;
        font-size: 10px;
    }
    
    #rightcolumn {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* External link indicator */
.external-link::after {
    content: " ↗";
    font-size: 10px;
    opacity: 0.7;
}
