/* ==============================================
   BASE STYLES #181a1b
   ============================================== */
body {
    margin: 0;
    font-family: 'Roboto Flex Light', sans-serif;
    background: #0D0E10;
    color: #e0e0e0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility / Landing page layout helpers */
.home .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.home h1 {
    margin-top: 0;
    padding-top: 60px; /* space for overlapping image */
    position: relative;
    z-index: 1;
}

.home .logo {
    width: 200px;
    height: auto;
    margin-bottom: -50px; /* overlap effect */
    z-index: 2;
    position: relative;
}

/* ==============================================
   SIDE NAVIGATION
   ============================================== */
.side-navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 60px;
    background: #23272a;
    transition: width 0.3s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.side-navbar.expanded {
    width: 220px;
}

/* Burger Menu Icon */
.side-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    margin: 1rem 0 1rem 0.5rem;
    cursor: pointer;
}

.side-burger span {
    display: block;
    height: 4px;
    width: 28px;
    background: #00bcd4;
    border-radius: 2px;
    transition: 0.3s;
}

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

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

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

/* Navigation Links */
.side-nav-links {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.side-navbar.expanded .side-nav-links {
    opacity: 1;
    pointer-events: auto;
}

.side-nav-links li {
    width: 100%;
}

.side-nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    color: #e0e0e0;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

/* Active link */
.side-nav-links a.active-link {
    background: #00bcd4;
    color: #23272a;
}

/* Individual Link Hover Colors */

/* Index*/
.side-nav-links a[href="index.html"]:hover {
    background: #00bcd4;
    color: #23272a;
}
.side-nav-links a[href="../index.html"]:hover {
    background: #00bcd4;
    color: #23272a;
}

/* PY0544*/
.side-nav-links a[href="PY0544/PY0544_Worksheet.html"]:hover {
    background: #00bcd4;
    color: #23272a;
}
.side-nav-links a[href="../PY0544/PY0544_Worksheet.html"]:hover {
    background: #00bcd4;
    color: #23272a;
}

/* Academic Affairs*/
.side-nav-links a[href="academicAffairs.html"]:hover {
    background: #7952d6;
    color: #ef3a79;
}
.side-nav-links a[href="../academicAffairs.html"]:hover {
    background: #7952d6;
    color: #ef3a79;
}



/* Qualtrics */
.side-nav-links a[href="qualtrics/qualtrics.html"]:hover {
    background: #ff9800;
    color: #23272a;
}
.side-nav-links a[href="qualtrics.html"]:hover {
    background: #ff9800;
    color: #23272a;
}

/* About */
.side-nav-links a[href="about.html"]:hover {
    background: #8bc34a;
    color: #23272a;
}
.side-nav-links a[href="../about.html"]:hover {
    background: #8bc34a;
    color: #23272a;
}

/* SONA */
.side-nav-links a[href="sona.html"]:hover {
    background: #9c27b0;
    color: #fff;
}
.side-nav-links a[href="../sona.html"]:hover {
    background: #9c27b0;
    color: #fff;
}

/* Pavlovia */
.side-nav-links a[href="pavlovia.html"]:hover {
    background: #ffc107;
    color: #23272a;
}
.side-nav-links a[href="../pavlovia.html"]:hover {
    background: #ffc107;
    color: #23272a;
}

/* ==============================================
   MAIN CONTENT
   ============================================== */
.main-content {
    text-align: center;
    padding: 4rem 0;
    margin-left: 60px;
    transition: margin-left 0.3s;
    position: relative;
}

.main-content h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    color: #e0e0e0;
    position: relative;
    z-index: 10;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.main-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    position: relative;
    z-index: 10;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.cta-btn {
    background: #23272a;
    color: #00bcd4;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.cta-btn:hover {
    background: #00bcd4;
    color: #23272a;
}

.image-container {
    text-align: center;
    position: relative;
    margin-top: -9rem;
}

.brain-image {
    max-width: 100%;
    height: auto;
    max-height: 650px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

/* ==============================================
   RESPONSIVE LAYOUT ADJUSTMENTS
   ============================================== */
.side-navbar.expanded ~ .main-content {
    margin-left: 220px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .side-navbar.expanded {
        width: 80vw;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .side-navbar.expanded ~ .main-content {
        margin-left: 80vw;
    }
}

/* Large Screen Typography */
@media (min-width: 800px) {
    .main-content h1 {
        font-size: 4rem;
    }
}

/* ==============================================
   DROPDOWN NAVIGATION STYLES
   ============================================== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    background: #2c3135;
    min-width: 220px;
    margin-left: 2rem;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.dropdown-content a {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.95rem !important;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.dropdown-content a:hover {
    border-left: 3px solid #30a03d;
    background: #3a4045;
}

.dropdown.show .dropdown-content {
    display: block;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* SONA dropdown specific styling */
.dropdown .dropdown-toggle:hover {
    background: #87CEEB !important;
    color: #23272a !important;
}

.side-nav-links .dropdown:nth-child(5) .dropdown-toggle:hover {
    background: #87CEEB !important;
    color: #23272a !important;
}

/* ==============================================
   EXTENDED NAVIGATION STYLES
   ============================================== */
.side-navbar.expanded {
    width: 280px !important;
}

.side-navbar.expanded ~ .main-content {
    margin-left: 280px !important;
}

.side-nav-links a {
    padding: 0.75rem 2rem !important;
    white-space: nowrap;
}

/* ==============================================
   CONTENT PAGE STYLES
   ============================================== */
.content {
    line-height: 1.6;
}

.content h1 {
    color: #00bcd4;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.content h2 {
    color: #ff9800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content h3 {
    color: #00bcd4;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content h4 {
    color: #d40000;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.content h6 {
    color: #d40000;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.content h5 {
    color: #00bcd4;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}


.content p {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.content ul, .content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.content a {
    color: #00bcd4;
    text-decoration: underline;
}

.content a:hover {
    color: #ff9800;
}

/* (Removed earlier duplicate .content img definition; consolidated below) */

.content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #00bcd4, #ff9800);
    margin: 2rem 0;
}

.content strong {
    color: #ff9800;
}

/* ==============================================
   LOGO STYLING
   ============================================== */
.logo-container {
    max-width: 100%;
    height: auto;
    max-height: 650px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.logo {
    max-width: 300px;
    height: auto;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto;
    display: block;
}

/* ==============================================
   IMAGE LOADING AND FALLBACK STYLES
   ============================================== */
/* Unified content images */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25rem auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background-color: #2c3135;
    border: 2px solid #404040;
    min-height: 100px; /* ensures layout stability while loading */
}
/* Note: pseudo-elements on <img> don't render across browsers, removed fallback text */



/*  ==============================================
    CODE Syntax Highlights
    ==============================================
*/

/**
 * prism.js default theme for JavaScript, CSS and HTML
 * Based on dabblet (http://dabblet.com)
 * @author Lea Verou
 */

code[class*="language-"],
pre[class*="language-"] {
    color: black;
    background: none;
    text-shadow: 0 1px white;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;

    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;

    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
    text-shadow: none;
    background: #b3d4fc;
}

pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
    text-shadow: none;
    background: #b3d4fc;
}

@media print {
    code[class*="language-"],
    pre[class*="language-"] {
        text-shadow: none;
    }
}

/* Code blocks */
pre[class*="language-"] {
    padding: 1em;
    margin: .5em 0;
    overflow: auto;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
    background: #f5f2f0;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
    padding: .1em;
    border-radius: .3em;
    white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: slategray;
}

.token.punctuation {
    color: #999;
}

.namespace {
    opacity: .7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #905;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #690;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #a67f59;
    background: hsla(0, 0%, 100%, .5);
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #07a;
}

.token.function {
    color: #DD4A68;
}

.token.regex,
.token.important,
.token.variable {
    color: #e90;
}

.token.important,
.token.bold {
    font-weight: bold;
}
.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}