/* Import Lexend Deca font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700&display=swap');

/* Product Sans Font (used by VA Signer) */
@font-face {
    font-family: 'Product Sans';
    src: url('ProductSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Product Sans';
    src: url('ProductSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Apply Lexend Deca as the primary font and define color variables */
:root {
    --font-primary: 'Lexend Deca', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --color-main: #0A2342;
    --color-accent: #ED254E;
    --color-background: #EAEBED;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background-color: var(--color-background);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* border: 2px solid var(--color-main); */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: filter 0.3s ease-out;
}

header {
    background-color: var(--color-main);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: fixed;
    top: 5px;
    left: 0;
    right: 0;
    z-index: 1000;
    width: auto;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.logo {
    height: 50px;
    width: auto;
    z-index: 2;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.header-icon {
    height: 30px !important;
    width: 30px !important;
    margin-left: 10px;
    border-radius: 50%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 2;
    position: absolute;
    right: 2rem;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    transform-origin: center;
    padding: 2px 6px;
}

nav ul li a.active {
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    transform: scale(1.35);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-main);
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
    display: block;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
    border-radius: 6px;
    margin: 2px;
    position: relative;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    color: white;
    transform: none;
}

.dropdown-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 5px;
    left: 15px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.dropdown-menu li a:hover::after,
.dropdown-menu li a.active::after {
    width: calc(100% - 30px);
}

.project-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

main {
    flex: 1;
    display: flex;
    padding: 3rem 2rem;
    flex-wrap: wrap;
    margin: 5px;
    border-radius: 15px;
    padding-top: 90px;
}

.profile-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    min-width: 300px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    border: 8px solid var(--color-main);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ddd;
    aspect-ratio: 1;
    max-width: 500px;
    max-height: 500px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-container {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

.bio-box {
    background-color: var(--color-main);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bio-box h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.bio-box h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.bio-text {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

a:not(nav a):not(.social-links a):not(.engineering-container h3 a):not(.social-link):not(.experience-item a):not(.photo-action-btn):not(.eng-description a) {
    color:white;
}

a:not(nav a):not(.social-links a):not(.social-link):not(.photo-action-btn) {
    text-decoration: underline;
    position: relative;
    transition: color 0.2s ease;
}

a:not(nav a):not(.social-links a):not(.social-link):not(.photo-action-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

a:not(nav a):not(.social-links a):not(.social-link):not(.photo-action-btn):hover::after {
    width: 100%;
}

.bio-text p {
    margin-bottom: 1.5rem;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--color-accent);
}

.content-box {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--color-background);
    border: 2px solid var(--color-main);
    color: black;
}

.engineering-container h2,
.photo-section h2,
.instagram-embed h2 {
    font-size: 2.5rem;
    /* line-height: 1.2; */
}

.engineering-container h3 {
    font-size: 1.5rem;
    margin-bottom: 0px;
    color: var(--color-main);
}

.engineering-container h3 a {
    color: var(--color-main);
}

.engineering-container h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.engineering-container p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.engineering-container ul {
    margin-bottom: 10px;
    margin-left: 20px;
}

footer {
    background-color: var(--color-main);
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    margin: 5px;
    border-radius: 15px;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-content p {
    margin: 0;
}

.footer-content a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* .footer-content a:hover {
    color: var(--color-accent);
} */

/* Engineering Page Styles */
.engineering-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}

.education-section {
    width: 100%;
    margin-top: 20px;
}

.education-content {
    display: flex;
    gap: 1.5rem;
    flex-direction: row;
}

.experience-section {
    width: 100%;
    margin-top: 20px;
    /* background-color: var(--color-main);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.experience-item {
    margin-top: 20px;
    transition: all 0.3s ease;
    position: relative;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.experience-item:first-child {
    margin-top: 0;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.experience-item:hover::before {
    /* border-color: var(--color-accent); REMOVED/COMMENTED */
    box-shadow: 0 4px 8px rgba(128, 128, 128, 0.3); /* Apply hover shadow */
}

.experience-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* border: 2px solid var(--color-accent); REMOVED/COMMENTED */
    box-shadow: 0 4px 8px rgba(128, 128, 128, 0.3); /* Apply hover shadow */
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.experience-item:hover::after {
    opacity: 1;
}

.experience-item a {
    color: black;
}

.experience-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding-right: 2rem;
    z-index: 1;
    cursor: pointer;
}

.experience-header h3 {
    margin: 0;
}

.experience-header p {
    margin: 0;
    color: var(--color-main);
}

.right-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
}

.social-link {
    color: var(--color-main);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-right: 0.5rem;
}

.social-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.social-link i {
    font-size: 1.5rem;
    vertical-align: middle;
}

.expand-button {
    background: none;
    border: none;
    color: var(--color-main);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
}

.expand-button i {
    font-size: 1.5rem;
    vertical-align: middle;
    transition: color 0.2s ease;
}

/* Change expand arrow color when header is hovered */
.education-header:hover .expand-button i,
.experience-header:hover .expand-button i {
    color: var(--color-accent);
}

.experience-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 0;
    z-index: 1;
}

.experience-description.expanded {
    max-height: 100vh;
    margin-top: 1rem;
}

.experience-description ul {
    margin: 0;
    padding-left: 1rem;
}

.experience-description li {
    margin-bottom: 0.5rem;
}

.experience-description li:last-child {
    margin-bottom: 0;
}

/* Experience item hover effect removed */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1;
        padding-right: 2rem;
    }

    nav ul.active {
        right: 0;
    }

    /* Dropdown styles for mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        margin-top: 0;
        margin-left: 20px;
        display: none;
        flex-direction: column;
    }

    .dropdown-menu.show {
        display: flex;
    }

    .dropdown-toggle i {
        display: inline;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    main {
        flex-direction: column;
    }
    
    .profile-container, .bio-container {
        width: 100%;
    }

    .profile-image {
        max-width: 300px;
        max-height: 300px;
        margin: 0 auto;
    }

    .engineering-container {
        flex-direction: column;
    }

    .education-section {
        width: 100%;
    }

    .education-content {
        flex-direction: column;
    }
    
    .experience-header,
    .education-header {
        padding-right: 0;
    }
    
    .experience-item .right-container, 
    .education-item .right-container {
        position: static;
        transform: none;
        margin-top: 0.5rem;
        justify-content: flex-end;
        width: 100%;
    }
}

/* Education Experience Styles */
.education-item {
    flex: 1;
    min-width: 0;
    transition: all 0.3s ease;
    position: relative;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.education-item:first-child {
    margin-top: 0;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.education-item:hover::before {
    /* border-color: var(--color-accent); REMOVED */
    box-shadow: 0 4px 8px rgba(128, 128, 128, 0.3); /* Add shadow like experience item */
}

.education-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* border: 2px solid var(--color-accent); REMOVED */
    box-shadow: 0 4px 8px rgba(128, 128, 128, 0.3); /* Add shadow like experience item */
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.education-item:hover::after {
    opacity: 1;
}

/* Apply shadow when the education item is expanded */
.education-item:has(.education-details.expanded) {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    /* Optional: add a transition for the shadow appearing/disappearing */
    transition: box-shadow 0.3s ease, all 0.3s ease; 
}

.education-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding-right: 2rem;
    z-index: 1;
    cursor: pointer;
}

.education-header h3 {
    margin: 0;
}

.education-header p {
    margin: 0;
    color: var(--color-main);
}

.education-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 0;
    z-index: 1;
    cursor: text;
    user-select: text;
}

.education-details.expanded {
    max-height: 500px;
    margin-top: 1rem;
}

.coursework {
    margin-top: 1rem;
}

.coursework p {
    margin-bottom: 0.5rem;
    color: var(--color-main);
}

.coursework ul {
    margin: 0;
    padding-left: 1rem;
}

.coursework li {
    margin-bottom: 0.5rem;
}

.coursework li:last-child {
    margin-bottom: 0;
}

/* Education item hover effect removed */

/* Education Experience Styles */
.education-item, .experience-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.eee-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.5rem;
    border-radius: 20%;
    transition: transform 0.1s ease;
}

.title-card h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-main);
    margin: 0;
}

.title-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.title-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.title-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

.eee-icon:hover {
    transform: scale(1.1);
}

.education-text, .experience-text {
    flex: 1;
}

/* New class for scrolled state */
.header-scrolled {
    background-color: rgba(10, 35, 66, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Styling for experience images container */
.experience-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

/* Styling for the container wrapping each experience image */
.experience-image-container {
    flex: 1 1 calc(33.333% - 1rem); 
    max-width: calc(33.333% - 1rem); 
    height: 300px; /* Set fixed height for containers (adjust as needed) */
    display: flex; /* Use flex to center image inside */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide potential overflow if needed */
    border: 1px solid #ddd; 
    border-radius: 8px; 
}

/* Styling for individual experience images (within the container) */
.experience-image {
    /* Remove flex sizing from image itself */
    /* flex: 1 1 calc(33.333% - 1rem); */ 
    /* max-width: calc(33.333% - 1rem); */ 
    max-width: 100%; /* Image can be up to container width */
    max-height: 100%; /* Image can be up to container height */
    height: auto; /* Let browser determine height based on width/aspect ratio */
    width: auto; /* Let browser determine width based on height/aspect ratio */
    object-fit: contain; /* Scale down to fit container bounds */
    /* Remove border/radius from image, apply to container */
    /* border-radius: 8px; */ 
    /* border: 1px solid #ddd; */ 
}

/* Responsive adjustments apply to the CONTAINER now */
@media (max-width: 768px) {
    .experience-image-container {
        flex-basis: calc(50% - 0.5rem); 
        max-width: calc(50% - 0.5rem);
    }
    /* Keep other rules */
}

@media (max-width: 480px) {
    .experience-image-container {
        flex-basis: 100%; 
        max-width: 100%;
    }
}

/* Apply shadow when the experience item is expanded */
.experience-item:has(.experience-description.expanded) {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    /* Optional: add a transition for the shadow appearing/disappearing */
    transition: box-shadow 0.3s ease, /* Existing transitions if any */
                /* Add other transitions for item here if needed */
                all 0.3s ease; /* Fallback or keep existing */
}

/* Photo Portfolio Carousel Styles */
.photo-carousel {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Optional: Snap scrolling */
    gap: 15px; /* Space between images */
    padding: 10px 0;
    margin-bottom: 20px; /* Space below carousel */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--secondary-color) var(--bg-color); /* Firefox */
}

/* Webkit scrollbar styling */
.photo-carousel::-webkit-scrollbar {
    height: 8px;
}
.photo-carousel::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}
.photo-carousel::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 4px;
    border: 2px solid var(--bg-color);
}

.photo-item {
    flex: 0 0 auto; /* Prevent stretching, allow shrinking */
    width: auto;
    height: auto;
    max-height: 410px; /* Max height for the item slightly larger than image max */
    scroll-snap-align: start; /* Optional: Snap alignment */
    position: relative;
    overflow: hidden; /* Hide overflow for description */
    border-radius: 8px; /* Rounded corners */
    background-color: #eee; /* Placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item img {
    display: block;
    width: auto;
    height: auto;
    max-height: 400px; /* Set max height for image */
    max-width: 100%; /* Ensure image doesn't overflow item horizontally */
    transition: transform 0.3s ease;
}

.photo-item .description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 35, 66, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 0.9em;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.photo-item:hover .description {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Button Container Styles */
.photo-item-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.photo-item:hover .photo-item-buttons {
    opacity: 1;
}

/* Individual Button Base Styles */
.photo-action-btn {
    background-color: rgba(10, 35, 66, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none !important;
}

/* Style changes specifically for when the BUTTON itself is hovered (color/scale) */
.photo-action-btn:hover,
a.photo-action-btn:hover { 
    background-color: rgba(10, 35, 66, 0.8);
    color: var(--color-accent);
    transform: scale(1.1);
    text-decoration: none !important;
}

.photo-action-btn i {
    line-height: 1;
}

/* Lightbox/Modal Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0; /* Shorthand for top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Increased z-index to be above header */
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin: auto; /* Ensure centering if flexbox fails */
}

#lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 80px);
    height: auto;
    width: auto;
    object-fit: contain;
}

#lightbox-caption {
    margin-top: 15px;
    color: #333;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    word-wrap: break-word; /* Prevent long text from overflowing */
    max-width: 100%;
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 36px; /* Increased touch target */
    height: 36px; /* Increased touch target */
    font-size: 28px;
    font-weight: bold;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .lightbox-overlay {
        padding: 10px;
    }

    .lightbox-content {
        padding: 10px;
        width: 100%; /* Full width on mobile */
        max-width: 100%;
    }

    #lightbox-image {
        max-height: 70vh; /* Leave room for caption */
    }

    .lightbox-close {
        top: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
        line-height: 28px;
        font-size: 20px;
    }
}

/* Photo Portfolio Section Adjustments */
.photo-section {
    width: 100%; /* Span full width */
    padding-bottom: 3rem; /* Add more space below content */
    margin-bottom: 2rem; /* Add spacing between photo sections */
}

/* Photo Item Buttons */
.photo-item-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    z-index: 10; /* Above description */
}

.photo-item:hover .photo-item-buttons {
    opacity: 1; /* Visible on hover */
}

.photo-action-btn {
    background-color: rgba(10, 35, 66, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none !important;
}

.photo-action-btn:hover,
a.photo-action-btn:hover { 
    background-color: rgba(10, 35, 66, 0.8);
    color: var(--color-accent);
    transform: scale(1.1);
    text-decoration: none !important;
}

.photo-action-btn i {
    line-height: 1;
}

/* Blur background container when lightbox is active */
.body-blur > .container {
    filter: blur(5px);
    transition: filter 0.3s ease-out;
    /* Prevent interaction with blurred background */
    /* pointer-events: none; // Might be needed if blur causes issues */
    /* transform: scale(1); // May help rendering on some browsers */
}

.photo-item i {
    line-height: 1;
}

/* Responsive adjustments for photo items on small screens */
@media (max-width: 480px) {
    .photo-item {
        max-height: 210px; /* Smaller max height for item */
    }

    .photo-item img {
        max-height: 200px; /* Smaller max height for image */
    }
}

/* Instagram Embed Styles */
.instagram-embed {
    width: 100%;
    margin-bottom: 2rem;
}

/* Social Profiles Container - holds both profile sections */
.social-profiles-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 1rem;
}

/* Common styles for both profile containers */
.profile-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background-color: white;
    min-height: 500px;
    overflow: hidden;
}

/* Instagram specific container */
.instagram-container {
    padding: 0;
    overflow: hidden;
}

.instagram-container iframe {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    max-height: 100%;
    height: 100%;
    min-height: 500px;
}

/* Lexington Observer container */
.lexobserver-container {
    display: flex;
    flex-direction: column;
}

.lexobserver-header {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.lexobserver-logo {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.lexobserver-container h3 {
    margin: 0;
    color: #0A2342;
    font-size: 1.5rem;
}

.lexobserver-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lexobserver-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.lexobserver-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    flex: 1;
}

.lexobserver-image-item {
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.lexobserver-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lexobserver-image-item:hover img {
    transform: scale(1.05);
}

.lexobserver-image-item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
    z-index: 2;
}

.lexobserver-image-item:hover:after {
    width: 100%;
}

.lexobserver-link {
    display: inline-block;
    background-color: var(--color-main);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    transition: background-color 0.3s ease;
    text-align: center;
    position: relative;
}

.lexobserver-link:hover {
    background-color: var(--color-main);
}

.lexobserver-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: 7px;
    left: 15px;
    right: 15px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.lexobserver-link:hover:after {
    width: calc(100% - 30px);
}

.lexobserver-link i {
    margin-left: 5px;
}

/* Polaroider Page Styles */
.polaroider-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.polaroider-container .controls, 
.polaroider-container .display {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.polaroider-container .controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 500px;
}

.polaroider-container .controls h2 {
    margin-top: 0;
    color: var(--color-main);
}

.polaroider-container input[type="file"] {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
}

.polaroider-container input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: calc(100% - 22px);
    font-family: var(--font-primary);
}

.polaroider-container .slider-group {
    margin-top: 5px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.polaroider-container .slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.polaroider-container .slider-row label {
    flex: 0 0 140px;
    color: var(--color-main);
}

.polaroider-container .slider-row input[type="range"] {
    flex: 1;
}

.polaroider-container .slider-value {
    width: 70px;
    text-align: right;
    color: #666;
}

.polaroider-container button,
.polaroider-container a {
    background-color: var(--color-main);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.polaroider-container button:hover,
.polaroider-container a:hover {
    background-color: var(--color-accent);
}

.polaroider-container .display {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.polaroider-container .image-preview, 
.polaroider-container .polaroid-preview {
    width: 400px;
}

.polaroider-container #original-image, 
.polaroider-container #polaroid-canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Polaroider Tabs */
.tabs {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 10px auto 0;
    max-width: 1000px;
}

.tab-btn {
    background: #fff;
    color: var(--color-main);
    border: 2px solid var(--color-main);
    border-bottom: none;
    padding: 8px 14px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
}

.tab-btn.active {
    background: var(--color-main);
    color: #fff;
}

.tab-content { display: none; width: 100%; }
.tab-content.active { display: block; width: 100%; }

/* Ensure tabs sit above card sections and span full row */
.tabs + section.tab-content {
    width: 100%;
}

/* Batch list UI */
.batch-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow: auto;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.batch-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.batch-item img {
    width: 48px;
    height: 72px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-input {
    width: 70px;
}

.batch-summary {
    font-size: 12px;
    color: #666;
}

/* Rationale card above batch controls */
.rationale-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 80%;
}

.rationale-card h2 {
    margin-top: 0;
    color: var(--color-main);
}

.rationale-card p { margin: 0; }


/* Responsive adjustments */
@media (max-width: 768px) {
    .social-profiles-container {
        flex-direction: column;
    }
    
    .profile-item {
        width: 100%;
    }
    
    .instagram-container iframe {
        height: 500px;
        min-height: auto;
    }
    
    .lexobserver-image-item {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .instagram-container iframe {
        height: 350px;
    }
    
    .lexobserver-image-item {
        height: 120px;
    }
}

/* Photo Ranker Styles */
.photorank-loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--color-main);
}

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

.photorank-upload-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.photorank-upload-section h2 {
    color: var(--color-main);
    margin: 0;
}

.photorank-description {
    color: #666;
    margin: 0;
}

.photorank-upload-section input[type="file"] {
    padding: 12px 20px;
    border: 2px dashed var(--color-main);
    border-radius: 8px;
    cursor: pointer;
    background-color: white;
    transition: all 0.3s ease;
}

.photorank-upload-section input[type="file"]:hover {
    border-color: var(--color-accent);
    background-color: #f9f9f9;
}

.photorank-photo-count {
    font-weight: 600;
    color: var(--color-main);
    font-size: 1.1rem;
}

.photorank-comparison-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.photorank-progress-container {
    text-align: center;
}

.photorank-progress-container h2 {
    color: var(--color-main);
    margin-bottom: 0.5rem;
}

.photorank-progress-info {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.photorank-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photorank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-main), var(--color-accent));
    width: 0%;
    transition: width 0.3s ease;
}

.photorank-comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.photorank-photo-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.photorank-photo-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 3px solid var(--color-main);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.photorank-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.photorank-choice-btn {
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.photorank-choice-btn.left-btn,
.photorank-choice-btn.right-btn {
    background-color: var(--color-main);
    color: white;
}

.photorank-choice-btn.left-btn:hover,
.photorank-choice-btn.right-btn:hover {
    background-color: var(--color-accent);
    transform: scale(1.05);
}

.photorank-choice-btn.tie-btn {
    background-color: #FF9800;
    color: white;
    margin-bottom: 1rem;
}

.photorank-choice-btn.tie-btn:hover {
    background-color: #F57C00;
    transform: scale(1.05);
}

.photorank-middle-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.photorank-skip-btn {
    padding: 10px 20px;
    background-color: #757575;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.photorank-skip-btn:hover {
    background-color: #616161;
    transform: scale(1.05);
}

.photorank-finish-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.photorank-finish-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    background-color: #9C27B0;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.photorank-finish-btn:hover:not(:disabled) {
    background-color: #7B1FA2;
    transform: scale(1.05);
}

.photorank-finish-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.photorank-reset-btn {
    padding: 12px 24px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.photorank-reset-btn:hover {
    background-color: #d32f2f;
    transform: scale(1.05);
}

.photorank-results-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.photorank-results-section h2 {
    color: var(--color-main);
    text-align: center;
    margin: 0;
}

.photorank-results-stats {
    text-align: center;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.photorank-results-stats p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.photorank-rankings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.photorank-rank-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.photorank-rank-item:hover {
    border-color: var(--color-main);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.photorank-rank-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-main);
    min-width: 80px;
    text-align: center;
}

.photorank-rank-number.top-three {
    font-size: 2rem;
    color: var(--color-accent);
}

.photorank-rank-photo {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.photorank-rank-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photorank-rank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.photorank-rank-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.photorank-rank-rating {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.photorank-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.photorank-download-btn {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.photorank-download-btn:hover {
    background-color: #388E3C;
    transform: scale(1.05);
}

.photorank-download-photo-data-btn {
    padding: 12px 24px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.photorank-download-photo-data-btn:hover {
    background-color: #1976D2;
    transform: scale(1.05);
}

.photorank-info {
    margin-top: 2rem;
}

.photorank-info h2 {
    color: var(--color-main);
    text-align: center;
    margin-bottom: 2rem;
}

.photorank-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.photorank-info-item {
    text-align: center;
    padding: 1.5rem;
}

.photorank-info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.photorank-info-item h3 {
    color: var(--color-main);
    margin-bottom: 0.5rem;
}

.photorank-info-item p {
    color: #666;
    line-height: 1.6;
}

.photorank-elo-explanation {
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
}

.photorank-elo-explanation h3 {
    color: var(--color-main);
    margin-bottom: 1rem;
}

.photorank-elo-explanation p {
    color: #333;
    line-height: 1.8;
    margin: 0;
}

/* Responsive adjustments for photo ranker */
@media (max-width: 968px) {
    .photorank-comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .photorank-middle-controls {
        flex-direction: row;
        justify-content: center;
    }

    .photorank-choice-btn.tie-btn {
        margin-bottom: 0;
    }

    .photorank-rank-item {
        flex-direction: column;
        text-align: center;
    }

    .photorank-rank-photo {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .photorank-photo-wrapper {
        aspect-ratio: 1 / 1;
    }

    .photorank-rank-photo {
        height: 150px;
    }

    .photorank-finish-container {
        flex-direction: column;
    }

    .photorank-results-actions {
        flex-direction: column;
    }

    .photorank-choice-btn,
    .photorank-finish-btn,
    .photorank-download-btn,
    .photorank-download-photo-data-btn,
    .photorank-reset-btn {
        width: 100%;
    }
}

/* New Engineering Section Styles */
.eng-section {
    width: 100%;
    margin-top: 20px;
}

.eng-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-main);
}

.eng-section-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Internship Item Styles */
.eng-internship-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.eng-internship-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.eng-internship-item:hover::before {
    box-shadow: 0 4px 8px rgba(128, 128, 128, 0.3);
}

/* Logo Container */
.eng-logo-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.eng-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

/* Research Item Styles */
.eng-research-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.eng-research-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.eng-research-item:hover::before {
    box-shadow: 0 4px 8px rgba(128, 128, 128, 0.3);
}

/* Media Container - 4:3 Aspect Ratio */
.eng-media-container {
    flex-shrink: 0;
    width: 160px;
    height: 120px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.eng-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Item Content */
.eng-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Item Header */
.eng-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.eng-header-left {
    flex: 1;
    min-width: 0;
}

.eng-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Item Name/Title */
.eng-item-name {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-main);
    line-height: 1.2;
}

/* Item Role */
.eng-item-role {
    font-size: 1.1rem;
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* Research Meta (institution + date) */
.eng-research-meta {
    font-size: 1rem;
    margin: 0;
    color: #666;
    font-style: italic;
}

/* Duration */
.eng-duration {
    font-size: 1rem;
    color: var(--color-main);
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

/* Controls Container */
.eng-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Link Buttons */
.eng-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: var(--color-main);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.eng-link-btn:hover {
    background-color: var(--color-accent);
    transform: scale(1.1);
    text-decoration: none;
}

.eng-link-btn::after {
    display: none;
}

/* Expand Button */
.eng-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: none;
    border: 2px solid var(--color-main);
    color: var(--color-main);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0;
}

.eng-expand-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.1);
}

.eng-item-header:hover .eng-expand-btn {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.eng-expand-btn i {
    transition: transform 0.3s ease;
}

/* Description (Collapsible) */
.eng-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 0;
}

.eng-description.expanded {
    max-height: 150vh;
    margin-top: 1rem;
}

.eng-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.eng-description ul {
    margin: 1rem 0 1rem 1.5rem;
    padding: 0;
}

.eng-description li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.eng-description a {
    color: #000;
    text-decoration: underline;
    position: relative;
    transition: all 0.3s ease;
}

.eng-description a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.eng-description a:hover {
    color: #000;
}

.eng-description a:hover::after {
    width: 100%;
}

/* Images Container */
.eng-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.eng-image-wrapper {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.eng-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Education Item Styles */
.eng-education-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.eng-education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.eng-education-item:hover::before {
    box-shadow: 0 4px 8px rgba(128, 128, 128, 0.3);
}

/* Responsive Styles for New Engineering Sections */
@media (max-width: 968px) {
    .eng-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .eng-header-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .eng-duration {
        text-align: left;
    }
    
    .eng-logo-container {
        width: 60px;
        height: 60px;
    }
    
    .eng-media-container {
        width: 120px;
        height: 90px;
    }
    
    .eng-image-wrapper {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 640px) {
    .eng-internship-item,
    .eng-research-item,
    .eng-education-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .eng-logo-container {
        width: 100%;
        height: 150px;
    }
    
    .eng-media-container {
        width: 100%;
        height: 200px;
    }
    
    .eng-item-name {
        font-size: 1.5rem;
    }
    
    .eng-image-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .eng-controls {
        flex-wrap: wrap;
    }
    
    .education-content {
        flex-direction: column;
    }
}


/* Photo Portfolio Styles (Migrated from photos/index.html) */

/* Photo Portfolio Container */
.photo-portfolio-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Prevent overflow on mobile */
    overflow-x: hidden;
}

/* Generic skeleton shimmer */
.skeleton {
    background-color: #e9ecef;
    position: relative;
}
.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
    animation: skeleton-shimmer 1.1s infinite;
    z-index: 0; /* keep under overlays/text */
}
@keyframes skeleton-shimmer {
    100% { left: 100%; }
}

/* Photo Banner Styles */
.photo-banners-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    padding: 0 20px;
}

.photo-banner {
    position: relative;
    height: 200px;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.photo-banner:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Zoom effect on background image only */
.photo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 0;
    /* Preserve rounded corners while scaling */
    border-radius: inherit;
}

.photo-banner:hover::before {
    transform: scale(1.1);
}

.photo-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
    /* Clip overlay to parent's rounded corners */
    border-radius: inherit;
}

.photo-banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    margin: 0;
    text-align: center;
    width: 90%;
}

/* Grid View Styles */
.grid-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 10px;
}

.back-button {
    background-color: var(--color-main);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: var(--font-primary);
}

.back-button:hover {
    background-color: var(--color-accent);
    transform: translateX(-3px);
}

.back-button i {
    font-size: 1rem;
}

.grid-title {
    font-size: 2.5rem;
    color: var(--color-main);
    margin: 0;
}

.photo-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.photo-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.photo-grid-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.photo-grid-item:hover img {
    transform: scale(1.1);
}

.photo-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.photo-grid-item:hover .photo-grid-overlay {
    opacity: 1;
}
/* Hide overlays while skeletons are shown */
.photo-grid-item.skeleton .photo-grid-overlay {
    opacity: 0 !important;
}

.photo-grid-description {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.photo-grid-buttons {
    display: flex;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Adjust main padding for mobile */
    main {
        padding: 6rem 1rem 2rem 1rem;
    }

    .photo-portfolio-container {
        padding: 0 10px;
    }

    .photo-banner {
        height: 150px;
    }

    .photo-banner-text {
        font-size: 1.8rem;
    }

    .grid-title {
        font-size: 1.8rem;
    }

    .photo-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px 0; /* Reduced horizontal padding */
    }

    .back-button {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .photo-banner {
        height: 120px;
    }

    .photo-banner-text {
        font-size: 1.4rem;
    }

    .grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .photo-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px 0;
    }
}

/* ==========================================
   3D Model Viewer Styles
   ========================================== */

.model-selector-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.model-selector-label {
    font-weight: 600;
    color: var(--color-main);
    font-size: 1rem;
}

.model-selector {
    padding: 10px 20px;
    font-size: 1rem;
    font-family: var(--font-primary);
    font-weight: 500;
    border: 2px solid var(--color-main);
    border-radius: 8px;
    background-color: white;
    color: var(--color-main);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.model-selector:hover {
    background-color: var(--color-main);
    color: white;
}

.model-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.2);
}

.viewer-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--color-main);
    background-color: #ffffff;
}

.viewer-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-main);
    font-size: 1.1rem;
    z-index: 10;
}

.loading-indicator i {
    font-size: 2.5rem;
    color: var(--color-accent);
}

.viewer-options {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-main);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-label i {
    color: var(--color-accent);
}

/* Point Size Control */
.point-size-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.point-size-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-main);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.point-size-label i {
    color: var(--color-accent);
    font-size: 0.7rem;
}

.point-size-slider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.point-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-main);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.point-size-slider::-webkit-slider-thumb:hover {
    background: var(--color-accent);
}

.point-size-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--color-main);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.point-size-slider::-moz-range-thumb:hover {
    background: var(--color-accent);
}

#point-size-value {
    font-weight: 600;
    color: var(--color-accent);
    min-width: 25px;
}

.viewer-controls-hint {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    color: var(--color-main);
    font-size: 0.85rem;
    opacity: 0.8;
}

.viewer-controls-hint span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.viewer-controls-hint i {
    color: var(--color-accent);
}

/* Source Photos Gallery */
.source-photos-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-main);
}

.source-photos-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.source-photos-title i {
    color: var(--color-accent);
}

.source-photos-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.photos-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.photos-gallery::-webkit-scrollbar {
    height: 8px;
}

.photos-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.photos-gallery::-webkit-scrollbar-thumb {
    background: var(--color-main);
    border-radius: 4px;
}

.photos-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

.photo-item {
    flex: 0 0 180px;
    min-width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--color-main);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photos-loading,
.photos-empty {
    color: #666;
    font-style: italic;
    padding: 1rem;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .photo-item {
        width: 140px;
        height: 95px;
    }
    
    .source-photos-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .photo-item {
        width: 120px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .viewer-container {
        height: 350px;
    }

    .model-selector-container {
        flex-direction: column;
        gap: 8px;
    }

    .viewer-controls-hint {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .viewer-container {
        height: 280px;
    }

    .model-selector {
        width: 100%;
        min-width: unset;
    }
}

/* ==========================================
   VA Signer Styles
   ========================================== */

.signer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.signer-container .controls {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 500px;
}

.signer-container .controls h2 {
    margin-top: 0;
    color: var(--color-main);
}

.signer-container input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: calc(100% - 22px);
    font-family: var(--font-primary);
}

.signer-container .slider-group {
    margin-top: 5px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.signer-container .slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signer-container .slider-row label {
    flex: 0 0 140px;
    color: var(--color-main);
}

.signer-container .slider-row input[type="range"] {
    flex: 1;
}

.signer-container .slider-value {
    width: 70px;
    text-align: right;
    color: #666;
}

.signer-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signer-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--color-main);
}

.signer-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-main);
}

.signer-color-row canvas {
    border: 1px solid #ccc;
    border-radius: 3px;
}

.signer-container button,
.signer-container a {
    background-color: var(--color-main);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    font-family: var(--font-primary);
}

.signer-container button:hover,
.signer-container a:hover {
    background-color: var(--color-accent);
}

.signer-preview {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
}

.signer-preview h2 {
    color: var(--color-main);
    margin-top: 0;
    margin-bottom: 15px;
}

.signer-preview canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}

/* Checkerboard background for transparent preview */
.signer-preview canvas.transparent-bg {
    background-image:
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

@media (max-width: 768px) {
    .signer-container {
        flex-direction: column;
        align-items: center;
    }

    .signer-container .controls {
        width: 100%;
        max-width: 500px;
    }

    .signer-preview {
        width: 100%;
        max-width: 500px;
    }
}

/* ==========================================================================
   SCHEDULER APP STYLES
   ========================================================================== */

.scheduler-container {
    display: flex;
    flex-direction: column;
    padding: 100px 20px 20px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    width: 100%;
}

.scheduler-controls {
    text-align: center;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    width: 100%;
}

.scheduler-controls h1 {
    color: var(--color-main);
}

.stats-panel {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
    font-weight: 600;
    color: #666;
    flex-wrap: wrap;
}

.scheduler-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.scheduler-button {
    border: none;
    border-radius: 999px;
    background: var(--color-main);
    color: white;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.scheduler-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(10, 35, 66, 0.18);
}

.scheduler-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scheduler-status {
    min-height: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

.scheduler-status.error {
    color: #dc3545;
}

.scheduler-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.course-pool-section {
    flex: 0 0 250px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid var(--color-main);
    height: calc(100vh - 200px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.course-pool-section h2 {
    font-size: 1.2rem;
    color: var(--color-main);
    margin-bottom: 10px;
    text-align: center;
}

.pool-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
}

.timeline-section {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.semester-column {
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.semester-header {
    background-color: var(--color-main);
    color: white;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: center;
    position: relative;
}

.semester-header h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.term-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.term-badge.fall {
    background-color: #d35400;
    color: white;
}

.term-badge.winter {
    background-color: #2980b9;
    color: white;
}

.semester-stats {
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 2px;
}

.credits-count.over-limit {
    color: #ff6b6b;
    font-weight: bold;
}

.credits-count.good-limit {
    color: #51cf66;
}

.semester-dropzone {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background-color 0.2s;
}

.semester-dropzone.drag-over {
    background-color: #e3e8ee;
    border: 2px dashed var(--color-main);
}

.course-card {
    background: white;
    border: 1px solid #ddd;
    border-left: 5px solid var(--color-main);
    border-radius: 8px;
    padding: 10px;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
    position: relative;
}

.course-card:active {
    cursor: grabbing;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.course-code {
    font-weight: 700;
    color: var(--color-main);
}

.course-credits {
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-name {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.workload-badge {
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
    align-self: flex-start;
}

.workload-badge.light {
    background-color: #d4edda;
    color: #155724;
}

.workload-badge.medium {
    background-color: #fff3cd;
    color: #856404;
}

.workload-badge.heavy {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
}

.card-error {
    border-color: #ffc107;
    background-color: #fffbf0;
}

.error-msg {
    font-size: 0.7rem;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .scheduler-layout {
        flex-direction: column;
    }

    .course-pool-section {
        width: 100%;
        height: auto;
        flex: none;
        flex-direction: row;
        overflow-x: auto;
    }

    .timeline-section {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .timeline-section {
        grid-template-columns: 1fr;
    }
}
