/* General Styles */
  
html, body {
    height: 100%;
    scroll-behavior: smooth;
}

#page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: #333; 
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #0077b6; 
    color: white;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

header p {
    font-size: 16px;
}

nav {
    text-align: center;
    padding: 10px;
    font-size: 18px;
    background-color: #f8f8f8;
}

nav a {
    color: #0077b6; 
    text-decoration: none;
    font-weight: bold;
    padding: 0 15px;
}

nav a:hover {
    text-decoration: underline;
    color: #005f8a; 
}

main {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

#introduction {
    text-align: center;
    margin-top: 1px;
    padding: 30px;
    background-color: #e3f2fd;
}

#introduction h1 {
    color: #0077b6;
    font-size: 36px;
    font-weight: bold;
}

#introduction h2 {
    color: #005f8a; 
    font-size: 32px;
    font-weight: bold;
}

#introduction h3 {
    color: #005f8a; 
    margin-top: 20px;
    font-size: 24px;
}

#introduction p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    color: #444; 
}

#introduction ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    max-width: 800px;
    margin: 20px auto;
}

#introduction ul li {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333; 
}

button {
    background-color: #0077b6; 
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

button:hover {
    background-color: #005f8a; 
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #f8f8f8;
    font-size: 14px;
}

footer nav a {
    color: #0077b6; 
    text-decoration: none;
    padding: 0 10px;
}

footer nav a:hover {
    text-decoration: underline;
    color: #005f8a; 
}

img {
    width: 200px;
    height: auto;
    border-radius: 10px; 
}

/* Contract Section */
#contract {
    text-align: center;
    margin-top: 1px;
    padding: 30px;
    background-color: #e3f2fd; /* Light blue background */
    border-radius: 10px; /* Rounded corners for a modern look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

#contract h2 {
    color: #0077b6; /* Deep Blue */
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

#contract h3 {
    color: #005f8a; /* Slightly darker blue */
    margin-top: 20px;
    font-size: 24px;
}

#contract p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    color: #444; /* Darker gray for readability */
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Space between image and text */
}

.logo-image {
    width: 80px; /* Adjust size as needed */
    height: auto;
    border-radius: 10px; /* Optional: Adds rounded corners to the logo */
}

.logo-text {
    text-align: left; /* Align text to the left of the image */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-part1 {
    font-size: 36px;
    font-weight: bold;
    color: white; /* White for contrast */
    display: block; /* Puts "YAMEEN" on its own line */
}

.logo-part2 {
    font-size: 24px;
    font-weight: normal;
    color: #e3f2fd; /* Light Blue for contrast */
    display: block; /* Puts "ENTERPRISES" on its own line */
}

a:link {
    color: #0077b6; /* Deep Blue for links */
    text-decoration: none;
}

a:visited {
    color: #005f8a; /* Slightly darker blue for visited links */
}

a:hover {
    color: #e3f2fd; /* Light Blue for hover */
    text-decoration: underline;
}

a:active {
    color: #003f5c; /* Darker blue for active links */
}

/* Responsive Design */
/* Table Styles */
/* Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

/* Header row */
tr:first-child {
    background-color: #2c3e50;
    color: white;
}

/* Alternate row colors */
tr:nth-child(even):not(:first-child) {
    background-color: #f2f2f2;
}

tr:nth-child(odd):not(:first-child) {
    background-color: #ffffff;
}

/* Hover effect */
tr:hover:not(:first-child) {
    background-color: #e1f5fe;
}

/* Figure caption */
figcaption {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Footer row */
tr:last-child {
    font-weight: bold;
    background-color: #ecf0f1;
}

/* Accessibility focus */
td:focus, th:focus {
    outline: 2px solid #3498db;
}

/* Form Styles */
form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="file"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    margin-right: 10px;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

input[type="submit"],
input[type="reset"],
button {
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover {
    background-color: #1a252f;
}

/* Course entry styles */
.course-entry {
    display: flex;
    margin-bottom: 10px;
}

.course-entry input {
    flex-grow: 1;
    margin-right: 10px;
}

.delete-course {
    background-color: #e74c3c !important;
}

.delete-course:hover {
    background-color: #c0392b !important;
}

/* Results styles */
#results {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#results figure {
    text-align: center;
    margin: 20px 0;
}

#results img {
    max-width: 300px;
    border: 1px solid #ddd;
}

#results h3 {
    margin-top: 20px;
    color: #2c3e50;
}

#results a {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
}

#results a:hover {
    text-decoration: underline;
}


@media screen and (max-width: 980px) {
    #page-wrapper {
        width: 95%;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    nav a {
        display: inline-block;
        margin: 5px;
        padding: 5px;
    }
    
    #introduction h1 {
        font-size: 30px;
    }
    
    #introduction h2 {
        font-size: 26px;
    }
}

/* Mobile Styles (up to 600px) */
@media screen and (max-width: 600px) {
    #page-wrapper {
        width: 100%;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    header p {
        font-size: 14px;
    }
    
    nav a {
        display: block;
        margin: 5px 0;
    }
    
    #introduction {
        padding: 15px;
    }
    
    #introduction h1 {
        font-size: 26px;
    }
    
    #introduction h2 {
        font-size: 22px;
    }
    
    #introduction h3 {
        font-size: 18px;
    }
    
    footer {
        padding: 10px;
        font-size: 12px;
    }
    
    /* Stack table columns on mobile */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    td {
        border: none;
        position: relative;
        padding-left: 50%;
    }
    
    td:before {
        position: absolute;
        left: 6px;
        content: attr(data-label);
        font-weight: bold;
    }
}

/* === FORM STYLES === */
form {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

fieldset {
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: #2E7D32;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Radio & Checkboxes */
.radio-group,
.checkbox-group {
    margin-top: 0.5rem;
}

.radio-group label,
.checkbox-group label {
    display: inline-block;
    margin-left: 8px;
    font-weight: normal;
}

/* Buttons */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background-color: #2E7D32;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #1B5E20;
}

.reset-btn {
    background-color: #757575;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s;
}

.reset-btn:hover {
    background-color: #424242;
}

/* Validation */
input:required {
    border-left: 4px solid #FFC107;
}

input:valid:required {
    border-left: 4px solid #4CAF50;
}

.disclaimer {
    background: #FFF9C4;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 2rem;
}


/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.slide {
    display: none;
    text-align: center;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.caption {
    padding: 15px;
    font-weight: bold;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.thumbnails img {
    width: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border-radius: 4px;
}

.thumbnails img.active {
    opacity: 1;
    border: 2px solid #4CAF50;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.ai-notes {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}


/* Drawing Page Styles */
#drawing-container {
    margin: 2rem auto;
    text-align: center;
}

.instructions {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 2rem auto;
}

canvas {
    display: block;
    margin: 0 auto;
    border: 2px solid #4CAF50;
    border-radius: 8px;
}