/* ── Global Styles (Applies to all pages) ── */
html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
    color: #333;
}

body.mobile-menu-open {
    overflow: hidden;
}
a{
    color: #510a7e;
}

p {
    text-align: justify;
    margin-bottom: 1em;
}

/* ── Sticky Header (Applies to all pages) ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
}

/* ── Centered Logo Block (Applies to all pages) ── */
.logo-centerbox {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
}

.logo-main-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.arch-logo {
    height: 57px;
    width: auto;
    max-width: 100%;
    display: block;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: rgb(94, 0, 153);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-subtitle {
    font-size: 0.8em;
    color: #441349ff;
    font-weight: bold;
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Main Navigation (for desktop/larger screens, applies to all pages) ── */
.main-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    color: #510a7e;
}

.main-nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.main-nav .menu-item {
    position: relative;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.main-nav .menu-item:hover {
    background: #f0f0f0;
    color: #780096;
}

.main-nav .menu-link-wrapper {
    display: inline-block;
}

.main-nav .menu-link {
    padding: 8px 20px;
    text-decoration: none;
    font-weight: bold;
    color: #510a7e;
    background: transparent;
    display: block;
    width: 100%;
}

.main-nav .menu-item.has-children > .menu-link-wrapper .arrow {
    display: inline-block;
    font-size: 0.8em;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.main-nav .menu-item.has-children > .menu-link-wrapper .arrow::before {
    content: '▼';
}

.main-nav .menu-item:hover > .menu-link-wrapper .arrow {
    transform: rotate(180deg);
}

/* ── Main Navigation Submenu (Desktop, applies to all pages) ── */
.main-nav .menu-item .submenu-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    z-index: 999;
}

.main-nav .menu-item:hover > .submenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
}

.main-nav .submenu-dropdown .submenu-dropdown {
    top: 0;
    left: 100%;
}

.main-nav .menu-item .submenu-dropdown li {
    width: 100%;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
}

.main-nav .menu-item .submenu-dropdown li:hover {
    background: #f0f0f0;
    color: #4f0063;
}

.main-nav .menu-item .submenu-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #4f0063;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.main-nav .menu-item .submenu-dropdown li .menu-link-wrapper {
    display: block;
    width: 100%;
}

.main-nav .menu-item .submenu-dropdown li.has-children .menu-link-wrapper .arrow {
    display: inline-block;
    font-size: 0.8em;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.main-nav .menu-item .submenu-dropdown li.has-children .menu-link-wrapper .arrow::before {
    content: '▶';
}

.main-nav .menu-item .submenu-dropdown li:hover .menu-link-wrapper .arrow {
    transform: rotate(90deg);
}

.main-nav .menu-item.active .menu-link {
    display: block;
    color: #510a7e;
    border-bottom: 2px solid #d650ee;
    width: 100%;
}

/* ── Content Layout (Applies to all pages with content) ── */
.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px;
    max-width: 1400px; /* Updated to match contact us page */
    margin: 0 auto;
}

/* ── Main Layout: Sidebar + Content (Specific to contact us page) ── */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar fixed, cards flexible */
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ── Sidebar (Specific to contact us page, overrides global .sidebar) ── */
.sidebar {
    max-width: 300px; /* Fixed width for the sidebar */
    background: #f9f9f9;
    border-right: 1px solid #ddd;
    padding: 5px;
}

/* ── Content Page (Applies to all pages with content) ── */
.content-page {
    flex: 1;
    min-width: 0;
    padding: 15px;
}

/* ── Sidebar Links (Applies to all pages with sidebar) ── */
.sidebar-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    width: 100%;
}

.sidebar-content li {
    margin-bottom: 10px;
    word-wrap: break-word;
}

.sidebar-content a {
    text-decoration: none;
    color: #0077cc;
    display: block;
    padding: 5px 0;
}

/* ── Heading Icons (Specific to home page) ── */
body.page-home .content-page h2::before {
    content: "🏠 ";
}

/* ── Search Highlight (Applies to all pages with search) ── */
mark.search-highlight,
.search-highlight {
    background: #fff176;
    padding: 0 4px;
    border-radius: 2px;
}

/* ── Newsletter Form (Applies to all pages with newsletter) ── */
.newsletter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1em;
    padding: 0 10px;
    width: 100%;
}

.newsletter input[type="email"] {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 250px;
    max-width: 100%;
    flex-grow: 1;
}

.newsletter button {
    background: #007acc;
    border: none;
    padding: 10px 16px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.newsletter button:hover {
    background: #005f99;
}

/* ── Footer (Applies to all pages) ── */
footer.site-footer {
    background: rgba(0, 0, 0, 0.05);
    padding: 2em;
    margin-top: 3em;
    font-size: 0.95em;
    text-align: center;
    align-content: center;
    width: 100%;
}

/* ── Meta Text (Applies to all pages with meta info) ── */
.meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 12px;
}

/* ── Search Results (Applies to all pages with search results) ── */
.search-results {
    list-style: none;
    padding: 0;
    width: 100%;
}

.search-results li {
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}

/* ── Mobile Menu Toggle (Hamburger - Desktop hidden by default, applies to all pages) ── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 26px;
    background-color: rgba(124, 25, 185, 0.05);
    border: 2px solid #7c19b9ff;
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(124, 25, 185, 0.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mobile-menu-toggle.active {
    background-color: rgba(124, 25, 185, 0.25);
}

.mobile-menu-toggle .bar {
    height: 3px;
    background: #7c19b9ff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle .bar:not(:last-child) {
    margin-bottom: 4px;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ── Mobile Menu Drawer (Hidden by default, Full-page overlay, applies to all pages) ── */
.mobile-drawer {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    padding: 60px 20px 20px;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.mobile-drawer.active {
    display: flex;
    transform: translateX(0);
}

.mobile-drawer a {
    text-decoration: none;
    color: #333;
    padding: 12px 16px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.mobile-drawer a:hover {
    background: transparent;
    color: inherit;
}

.mobile-drawer li {
    list-style: none;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mobile-drawer .menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.mobile-drawer .menu-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease;
}

.mobile-drawer .menu-item:hover {
    background: rgba(124, 25, 185, 0.1);
    color: #510a7e;
}

.mobile-drawer .menu-item:last-child {
    border-bottom: none;
}

.mobile-drawer .menu-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    font-size: 1.3em;
    font-weight: 600;
    color: inherit;
    background: transparent;
}

.mobile-drawer .menu-link {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.mobile-drawer .menu-item .submenu-dropdown {
    position: relative;
    top: auto;
    left: auto;
    background: rgba(0,0,0,0.02);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: unset;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
}

.mobile-drawer .menu-item.expanded > .submenu-dropdown {
    display: flex;
}

.mobile-drawer .submenu-dropdown .submenu-dropdown {
    margin-left: 20px;
}

.mobile-drawer .menu-item .submenu-dropdown li {
    width: 100%;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-drawer .menu-item .submenu-dropdown li:hover {
    background: rgba(124, 25, 185, 0.1);
    color: #510a7e;
}

.mobile-drawer .menu-item .submenu-dropdown li .menu-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 0.9em;
    font-weight: normal;
}

.mobile-drawer .menu-item .submenu-dropdown li .menu-link {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.mobile-drawer .menu-item.has-children > .menu-link-wrapper .arrow {
    display: inline-block;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.mobile-drawer .menu-item.has-children > .menu-link-wrapper .arrow::before {
    content: '▼';
}

.mobile-drawer .menu-item.expanded > .menu-link-wrapper .arrow {
    transform: rotate(180deg);
}

.mobile-drawer .menu-item .submenu-dropdown li.has-children > .menu-link-wrapper .arrow::before {
    content: '▶';
}

/* ── Contact Card (Specific to contact us page, overrides global .contact-card) ── */
.contact-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.contact-card h3 {
    text-align: center;
    margin-bottom: 15px;
}

/* ── Contact Cards Container (Specific to contact us page) ── */
.entry-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 20px;
}

/* ── Map Container (Specific to contact us page) ── */
.map-container iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

/* ── Card Glass (Applies to all pages with glass effect) ── */
.card-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-page .card-glass {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* ── Gallery Styles (Specific to gallery-archive.php and gallery-education.php pages) ── */
body.page-gallery body,
body.page-education body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    padding: 20px;
}

.gallery-container {
    max-width: 100%;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gallery-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.gallery-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #007acc;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0;
    list-style: none;
}

.gallery-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.gallery-image {
    width: 481px;
    height: 251px;
    object-fit: cover; /* Optional: ensures the image fills the dimensions */
    display: block;
    border-bottom: 1px solid #eee;

}
/*.gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}*/

.gallery-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
}

.gallery-info h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 1.2em;
    font-weight: 600;
}

.gallery-info p {
    color: #7f8c8d;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 0;
}

.gallery-info .tags {
    margin-top: 8px;
}

.gallery-info .tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin: 2px;
}

.no-images-message {
    text-align: center;
    font-size: 1.2em;
    color: #7f8c8d;
    padding: 50px 0;
}

.tag-filter {
    margin-bottom: 20px;
}

.tag-filter strong {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
}

.tag-filter a {
    text-decoration: none;
    background: #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 2px;
    display: inline-block;
    font-size: 14px;
}

.tag-filter a.active {
    background: #007acc;
    color: white;
    font-weight: bold;
}

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

.tag-group .no-tags {
    color: #555;
    font-size: 14px;
    display: inline-block;
    margin: 2px;
}

.tag-filter .error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.selected-tags {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.selected-tags span {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 12px;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    cursor: default;
}

.lightbox-image.zoomable {
    cursor: grab;
}

.lightbox-image.zoomable.dragging {
    cursor: grabbing;
}

.lightbox-caption {
    text-align: center;
    margin-top: 15px;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
}

.lightbox-description {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
    max-height: 80px;
    overflow-y: auto;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1020;
}

.lightbox-close:hover {
    color: #333;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 18px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 50%;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 1010;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.lightbox-actions button {
    background-color: #007acc;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-actions button:hover {
    background-color: #005f99;
    transform: translateY(-2px);
}

.lightbox-actions button.copy-link { 
    background-color: #28a745; 
}

.lightbox-actions button.copy-link:hover { 
    background-color: #218838; 
}

.lightbox-actions button.download { 
    background-color: #ffc107; 
    color: #333; 
}

.lightbox-actions button.download:hover { 
    background-color: #e0a800; 
}

.lightbox-actions button.facebook { 
    background-color: #1877f2; 
}

.lightbox-actions button.facebook:hover { 
    background-color: #145cb3; 
}

.lightbox-actions button.twitter { 
    background-color: #1da1f2; 
}

.lightbox-actions button.twitter:hover { 
    background-color: #0c85d0; 
}

.lightbox-actions .zoom-btn {
    background-color: #6c757d;
}

.lightbox-actions .zoom-btn:hover {
    background-color: #5a6268;
}

.lightbox-actions .zoom-btn.hidden {
    display: none;
}

.gallery-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.gallery-card .tag {
    background-color: #e0e0e0;
    color: #333;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 9px;
    white-space: nowrap;
}

.gallery-card .tag.parent-tag-display {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    order: -1;
    margin-bottom: 5px;
}

/* ── Mobile-Specific Styles (Applies to all pages) ── */
@media (max-width: 1024px) {
    .entry-header {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body.page-gallery body,
    body.page-education body {
        padding: 10px;
    }

    .site-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .logo-centerbox {
        order: 2;
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
        text-align: left;
        padding-right: 10px;
    }

    .logo-main-line {
        justify-content: flex-start;
    }

    .arch-logo {
        height: 35px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-subtitle {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
        margin-left: auto;
    }

    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2em;
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
        z-index: 10001;
    }

    .mobile-drawer {
        padding: 80px 20px 40px;
    }

    .main-layout {
        grid-template-columns: 1fr; /* Stack sidebar above content */
    }

    .entry-header {
        grid-template-columns: 1fr; /* Single column cards */
    }

    .container {
        flex-direction: column;
        padding: 15px;
    }

    .sidebar {
        display: none !important;
    }

    .content-page {
        order: 1;
        width: 100%;
        padding: 15px;
    }

    /* Gallery Mobile Styles (Specific to gallery-archive.php and gallery-education.php) */
    .gallery-title {
        font-size: 2em;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .gallery-image {
        height: 180px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 15px;
    }

    .lightbox-nav {
        padding: 10px 12px;
        font-size: 1.2em;
    }

    .lightbox-nav.prev { 
        left: 10px; 
    }

    .lightbox-nav.next { 
        right: 10px; 
    }

    .lightbox-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .lightbox-actions button {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    /* Gallery Mobile Small Screen Styles (Specific to gallery-archive.php and gallery-education.php) */
    body.page-gallery .gallery-container,
    body.page-education .gallery-container {
        margin: 20px auto;
        padding: 15px;
    }

    .gallery-title {
        font-size: 1.8em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-image {
        height: 150px;
    }

    .lightbox-close {
        font-size: 1.8em;
        top: 5px;
        right: 10px;
    }
}

/* ── Sidebar Hover Effect (Specific to sidebar.php) ── */
a:hover {
    text-decoration: none;
    filter: drop-shadow(0 0 8px rgba(234, 71, 255, 0.459));
}