:root {
    --primary-color: #1B7A2C;
    --primary-hover: #FFFFFF;
    --background: #FB6A05;
    --card-bg: #FFFFFF;
    --text-primary: #040404;
    --text-secondary: #040404;
    --border-color: #334155;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

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

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

header {
    background: #040404;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

body {
    position: absolute;
    min-height: 100vh;
}

footer {
    background: #040404;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

.scrollable {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.container {
    max-width: 95%;
    margin: 0 16px;
}

@media (min-width: 768px) {
    .container {
        max-width: 95%;
        margin: 0 3%;
    }
}

.cas-top-section {
    display: flex;
    gap: 20px;
}

.left-column {
    flex: 1.4;
}

.right-column {
    flex: 2;
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

h1 {
    color: #293C97;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-weight: 450;
}

hr {
    margin: 0.5rem;
}

element.style {
    /* set to 0 if you're not using a list-style-type */
    padding-left: 0;
}

td {
    vertical-align: top;
    font-weight: 450;
}

ul{
    list-style-type: none;
    color: #b0b0b0;
    padding-left: 1.5rem;
}

ul li {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    padding-left: 0.2rem;
    font-weight: 450;
}

ul li::before {
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
}

ul:not(.num) li::before {
    content: "•";
}

.num {
    counter-reset: li;
    padding-left: 1.25rem;
}

.num li::before {
    content: counter(li);
    font-weight: 550;
    color: #1B7A2C;
    display: inline-block;
}

.num li {
    counter-increment: li
}

.no-bullets {
    list-style-type: none;
    padding-left: 0;
}

.no-bullets li{
    padding-left: 0;
    margin-bottom: 4px;
}

.no-bullets li::before {
    display: none;
}

.highlight {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.highlight-text {
    color: #1B7A2C;
    font-weight: 550;
}

.note {
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.6;
    padding-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0.5rem;
    overflow: hidden;
}

#strands-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    padding-bottom: 0.5rem;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

#strands-table td {
    background: var(--card-bg);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

#strands-table tr:last-child td {
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-table tr:last-child td {
    border-bottom: none;
}

.semester {
    font-weight: 600;
    color: var(--primary-color);
    width: 150px;
}

.sem-number {
    color: #040404;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    /* margin: 1.5rem 0; */
}

.info-grid#flex {
    display: flex;
    flex-direction: column;
}

.info-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.info-item h2 {
    color: #1B7A2C;
}

.methods {
    /* background: rgba(99, 102, 241, 0.05); */
    padding-left: 0.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

embed {
    width: 100%;
    height: 100vw;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

.what-is-cas, .cas-strands, .learning-outcomes, .cas-stages, .responsibility, .rcr, .cas-requirements, .programme, .cas-portfolio, .cas-coordinator, .padlet {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #90caf9;
}

::selection {
    background: #64b5f6;
    color: #ffffff;
}



/* Mobile optimizations */

@media (max-width: 768px) {
    .card {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    #strands-table {
        display: block;
        overflow-x: auto;
    }
}