/* Highland Technology - Accessible Stylesheet */
/* Modernized green theme with WCAG 2.1 AA compliance */
/* UPDATED: Consistent fonts + paragraph spacing + sticky navbar + tight title spacing + WHITE LINKS IN DATE CELLS */

:root {
    --primary-green: #0d4d0d;
    --dark-green: #0B320B;
    --light-green: #2a5f2a;
    --accent-green: #4a8f4a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #cccccc;
    --text-dark: #1a1a1a;
    --link-blue: #0066cc;
    --link-visited: #551a8b;
    --base-font-size: 16px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--base-font-size);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--dark-green);
    background-image: url('assets/GREEN_BACKGROUND_1.jpg');
    background-repeat: repeat;
}

/* Force consistent font size on ALL text elements */
p, span, div, li, td, th, a, label, input, textarea, select {
    font-size: var(--base-font-size) !important;
}

/* Paragraph spacing - adds space between paragraphs */
main p {
    margin-bottom: 15px;
}

/* Allow bold and italic */
strong, b {
    font-weight: bold;
}

em, i {
    font-style: italic;
}

/* Headings - TIGHTER SPACING */
h1 {
    font-size: 1.75rem !important;
    font-weight: bold;
    margin-bottom: 5px;
}

h2 {
    font-size: 1.4rem !important;
    font-weight: bold;
    margin-bottom: 12px;
}

h3 {
    font-size: 1.2rem !important;
    font-weight: bold;
    margin-bottom: 10px;
}

h4, h5, h6 {
    font-size: 1.1rem !important;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Skip navigation for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 20px auto;
    background-color: var(--medium-gray);
    border: 1px solid #999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    background-color: #dbdbdb;
    padding: 20px;
    text-align: center;
}

header img {
    max-width: 100%;
    height: auto;
}

/* Navigation - HORIZONTAL + STICKY */
nav {
    background-color: var(--dark-green);
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 8px 12px;
    background-color: var(--white);
    color: var(--link-blue);
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 0.9rem !important;
}

nav a:hover,
nav a:focus {
    background-color: var(--light-gray);
    text-decoration: underline;
    outline: 2px solid var(--accent-green);
}

nav a:visited {
    color: var(--link-visited);
}

/* Main content - TIGHTER TOP PADDING */
main {
    background-color: var(--white);
    padding: 5px 30px 30px 30px;
    min-height: 400px;
}

/* All links in main content - consistent size */
main a {
    color: var(--link-blue);
    text-decoration: none;
    font-size: var(--base-font-size) !important;
}

main a:hover,
main a:focus {
    text-decoration: underline;
}

main a:visited {
    color: var(--link-visited);
}

/* Class cards for home page - 2x2 GRID */
.class-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.class-card {
    background-color: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.class-card:hover,
.class-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.class-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.class-card img {
    width: 100%;
    height: auto;
    display: block;
}

.class-card h2 {
    padding: 15px;
    font-size: 1.2rem !important;
    color: var(--primary-green);
    text-align: center;
}

/* Resources list */
.resources-list {
    list-style: none;
    margin: 20px 0;
}

.resources-list li {
    margin-bottom: 10px;
}

.resources-list a {
    color: var(--link-blue);
    text-decoration: none;
    font-size: var(--base-font-size) !important;
}

.resources-list a:hover,
.resources-list a:focus {
    text-decoration: underline;
}

/* Daily schedule table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid var(--medium-gray);
    padding: 15px;
    vertical-align: top;
    font-size: var(--base-font-size) !important;
}

.schedule-table thead {
    background-color: #006600;
    color: var(--white);
}

.schedule-table thead th {
    font-size: 1.3rem !important;
}

.schedule-table .date-cell {
    background-color: #006600;
    color: var(--white);
    text-align: center;
    width: 120px;
    font-weight: bold;
}

/* WHITE LINKS IN DATE CELLS - NEW */
.schedule-table .date-cell a {
    color: #ffffff !important;
    text-decoration: underline;
}

.schedule-table .date-cell a:hover,
.schedule-table .date-cell a:focus {
    color: #ffff00 !important;
    text-decoration: underline;
}

.schedule-table .date-cell a:visited {
    color: #cccccc !important;
}

.schedule-table .content-cell {
    background-color: var(--white);
}

/* BULLET POINTS FIX - Lists inside table cells */
.schedule-table .content-cell ul {
    margin-left: 30px;
    margin-bottom: 15px;
    list-style-type: disc;
    padding-left: 0;
}

.schedule-table .content-cell ol {
    margin-left: 30px;
    margin-bottom: 15px;
    padding-left: 0;
}

.schedule-table .content-cell li {
    margin-bottom: 8px;
    margin-left: 20px;
    font-size: var(--base-font-size) !important;
}

/* Bellringer icon */
.bellringer-icon {
    width: 50px;
    height: 50px;
    vertical-align: middle;
}

/* Assignment page styles */
.assignment-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.assignment-content {
    padding: 20px;
}

.assignment-content h2 {
    color: var(--primary-green);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem !important;
}

.assignment-content h3 {
    color: var(--light-green);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem !important;
}

.assignment-content ul,
.assignment-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.assignment-content li {
    margin-bottom: 8px;
    font-size: var(--base-font-size) !important;
}

.assignment-content p {
    font-size: var(--base-font-size) !important;
    margin-bottom: 15px;
}

.assignment-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--medium-gray);
    margin: 15px 0;
}

/* Video tutorials page */
.tutorial-section {
    margin: 30px 0;
}

.tutorial-section h2 {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.4rem !important;
}

.tutorial-section h2:hover {
    background-color: var(--light-green);
}

.tutorial-list {
    display: none;
    padding: 20px;
    background-color: var(--light-gray);
}

.tutorial-list.active {
    display: block;
}

.tutorial-list ul {
    list-style: none;
}

.tutorial-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--medium-gray);
    font-size: var(--base-font-size) !important;
}

.tutorial-list h3 {
    color: var(--primary-green);
    margin: 20px 0 10px 0;
    font-size: 1.2rem !important;
}

.tutorial-list a {
    color: var(--link-blue);
    text-decoration: none;
    font-size: var(--base-font-size) !important;
}

.tutorial-list a:hover,
.tutorial-list a:focus {
    text-decoration: underline;
}

/* Contact page */
.contact-info {
    font-size: var(--base-font-size) !important;
    padding: 20px;
}

.contact-info a {
    color: var(--link-blue);
    text-decoration: none;
    font-size: var(--base-font-size) !important;
}

.contact-info a:hover,
.contact-info a:focus {
    text-decoration: underline;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
    
    nav {
        padding: 8px;
    }
    
    nav a {
        font-size: 0.85rem !important;
        padding: 6px 10px;
    }
    
    main {
        padding: 5px 15px 15px 15px;
    }
    
    /* Stack cards on mobile */
    .class-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-table {
        font-size: 0.9rem !important;
    }
    
    .schedule-table .date-cell {
        width: 80px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    nav {
        display: none;
    }
    
    .skip-link {
        display: none;
    }
}
