/*=============================================
=            Modern Variables Layout          =
=============================================*/
:root {
    /* Color Palette */
    --primary-color: #4F46E5; /* Indigo 600 */
    --primary-hover: #4338CA;
    --primary-light: rgba(79, 70, 229, 0.1);
    
    --secondary-color: #0EA5E9; /* Sky 500 */
    
    --accent-color: #F43F5E; /* Rose 500 */
    
    --dark-color: #0F172A; /* Slate 900 */
    --dark-footer: #1E293B; /* Slate 800 */
    
    --text-main: #334155; /* Slate 700 */
    --text-muted: #64748B; /* Slate 500 */
    --text-light: #94A3B8; /* Slate 400 */
    
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC; /* Slate 50 */
    --bg-soft: #F1F5F9; /* Slate 100 */
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Typograpy */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-strong: 0 20px 25px -5px rgba(79, 70, 229, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/*=============================================
=            Global Resets & Base             =
=============================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/*=============================================
=            Utility Classes                  =
=============================================*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-4, .col-lg-3, .col-lg-2, .col-md-6 {
    padding: 0 15px;
}

@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
}

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

.section {
    padding: 6rem 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color) !important; }
.text-warning { color: var(--warning) !important; }
.text-dark { color: var(--dark-color) !important; }
.text-white { color: #fff !important; }
.text-muted { color: var(--text-muted) !important; }
.text-gray { color: var(--text-light) !important; }

.bg-light { background-color: var(--bg-light) !important; }
.bg-dark { background-color: var(--dark-color) !important; }
.bg-dark-footer { background-color: var(--dark-footer) !important; }

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.bg-gradient-alt { background: linear-gradient(135deg, var(--secondary-color), var(--success)); }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.h1 { font-size: 2.5rem; }
.h2 { font-size: 2rem; }
.h3 { font-size: 1.75rem; }
.h4 { font-size: 1.5rem; }
.h5 { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.mr-3 { margin-right: 1rem !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-4 { padding: 1.5rem !important; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.position-relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.z-1 { z-index: 1; }
.opacity-90 { opacity: 0.9; }

.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-strong { box-shadow: var(--shadow-strong); }

.rounded-xl { border-radius: var(--radius-xl); }
.rounded-pill { border-radius: 50px !important; }
.border-top { border-top: 1px solid var(--bg-soft); }
.border-gray-dark { border-color: rgba(255,255,255,0.1) !important; }

/* Grid Layouts */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}

@media (min-width: 992px) {
    .grid-2-col { grid-template-columns: repeat(2, 1fr); }
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3-col { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .grid-3-col { grid-template-columns: repeat(3, 1fr); }
}

/* Glassmorphism */
.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.glass-tag {
    background: rgba(79, 70, 229, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Placeholders (for dev) */
.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-icon {
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
}

/*=============================================
=            Buttons                          =
=============================================*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-align: center;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.125rem; }

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--bg-soft);
    color: var(--dark-color);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-light {
    background: white;
    color: var(--dark-color);
}
.btn-light:hover {
    background: rgba(255,255,255,0.9);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/*=============================================
=            Search Box                        =
=============================================*/
.search-box {
    max-width: 700px;
    border-radius: 50px;
    padding: 0.5rem;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    outline: none;
    font-family: var(--font-family);
    min-width: 0;
}

.search-box .btn {
    border-radius: 50px !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    white-space: nowrap;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
}

/*=============================================
=            Header & Nav                     =
=============================================*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 1.25rem 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
}

.navbar { margin-left: auto; margin-right: 2rem; }

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover { color: var(--primary-color); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

@media (max-width: 991px) {
    .menu-toggle { display: block; }
    .slide-btn { display: none; }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/*=============================================
=            Hero Section                     =
=============================================*/
.hero {
    position: relative;
    padding: 12rem 0 6rem;
    background-color: var(--bg-light);
    background-image: linear-gradient(rgba(248, 250, 252, 0.78), rgba(248, 250, 252, 0.78)), url('../images/tugu-malang.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.2);
}

.shape-2 {
    bottom: 10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.2);
}

.shape-3 {
    top: 40%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: rgba(244, 63, 94, 0.15);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-container { grid-template-columns: 1fr 1fr; align-items: center; }
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .hero-title { font-size: 4rem; }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.institution-strip {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 2.25rem;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    isolation: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.institution-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    width: 230px;
    height: 230px;
    justify-content: center;
}

.institution-item img {
    width: 156px;
    height: 156px;
    border-radius: 14px;
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;
    padding: 6px;
}

.institution-item span {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
    text-align: center;
    max-width: 160px;
    white-space: normal;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-soft);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.fl-1 {
    top: 15%;
    left: -15%;
    animation-delay: 0s;
}

.fl-2 {
    bottom: 15%;
    right: -10%;
    animation-delay: 3s;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.text-box {
    display: flex;
    flex-direction: column;
}
.text-box strong { color: var(--dark-color); font-size: 1rem;}
.text-box span { color: var(--text-muted); font-size: 0.75rem; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/*=============================================
=            About Section                    =
=============================================*/
.img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: relative;
}

.img-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.img-box {
    border-radius: var(--radius-xl);
    width: 100%;
}

.img-tall {
    height: 100%;
    min-height: 300px;
}

.img-col .img-box { height: 200px; }

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    z-index: 2;
}

.experience-badge h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0;
}

.experience-badge p {
    font-weight: 600;
    margin-bottom: 0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/*=============================================
=            Programs Section                 =
=============================================*/
.filter-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--primary-color);
}

.directory-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.directory-summary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.directory-summary span:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

.directory-refresh-note {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.program-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--bg-soft);
}

.card-hover-fx:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    position: relative;
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    z-index: 1;
}

.card-body {
    padding: 2rem;
}

.card-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.directory-empty {
    margin-top: 1rem;
}

.directory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.directory-page-indicator {
    min-width: 150px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
}

.directory-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.directory-arrow:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-color);
    color: white;
}

.directory-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    box-shadow: none;
}

/*=============================================
=            CTA Section                      =
=============================================*/
.cta-section {
    padding: 5rem 0;
}
.cta-shapes .circle-1 {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    top: -100px;
    left: -50px;
}
.cta-shapes .circle-2 {
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    bottom: -150px;
    right: -100px;
}

/*=============================================
=            News Section                     =
=============================================*/
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-img-wrapper {
    overflow: hidden;
}
.news-img-wrapper img {
    transition: transform 0.5s ease;
}
.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}
.news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.read-more {
    margin-top: auto;
}

/*=============================================
=            Footer                           =
=============================================*/
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer {
    color: #D6E0EE;
}

.footer .footer-title,
.footer .logo-text,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
    color: #F8FAFC;
}

.footer .text-gray {
    color: #C7D2E2 !important;
}

.footer .text-muted {
    color: #A5B4CC !important;
}

.footer-links a {
    color: #D6E0EE;
    font-weight: 500;
}
.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}
.footer .contact-info i,
.footer .text-primary {
    color: #7C82FF !important;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}
.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/*=============================================
=            Animations (Fade in)             =
=============================================*/
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.visible {
    opacity: 1;
    transform: translate(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 767px) {
    .section { padding: 4rem 0; }
    .hero { padding: 8rem 0 4rem; background-position: 55% center; }
    .institution-strip {
        width: fit-content;
        max-width: 100%;
        gap: 0.6rem;
        margin-bottom: 1.75rem;
    }

    .institution-item {
        width: 150px;
        height: 150px;
        padding: 0.85rem 0.7rem;
        gap: 0.4rem;
    }

    .institution-item img {
        width: 104px;
        height: 104px;
        padding: 5px;
    }
    .institution-item span {
        font-size: 0.66rem;
        max-width: 110px;
    }
    .floating-card { display: none; }
    .img-grid { grid-template-columns: 1fr; }
    .img-col { display: none; }
    .flex-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .directory-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .directory-pagination {
        gap: 0.75rem;
    }
    .directory-page-indicator {
        min-width: auto;
        font-size: 0.95rem;
    }
}
