/* ============================================
   Al-Tajhiz 1 School Template (Jowdat Al-Hashemi)
   Joomla 4/5 Template
   Inspired by Syria's First Official Secondary School
   Established 1929, Damascus
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Open Sans', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark, #1a1a1a);
    background-color: #fafaf8;
    overflow-x: hidden;
}

body.rtl {
    font-family: 'Noto Sans Arabic', 'Open Sans', sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Noto Sans Arabic', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color, #1a365d);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #444;
}

a {
    color: var(--primary-color, #1a365d);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color, #c9a227);
}

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

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

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--night-blue, #0f1729);
    color: var(--text-light, #f8f8f8);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

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

.top-bar a {
    color: var(--accent-color, #c9a227);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.header-inner {
    padding: 0.75rem 0;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo / Branding */
.logo-area {
    flex-shrink: 0;
}

.school-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.school-title {
    display: flex;
    flex-direction: column;
}

.school-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color, #1a365d);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.school-name-ar {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 0.85rem;
    color: var(--stone-gray, #8a8278);
    margin-top: 0.15rem;
}

.established {
    font-size: 0.7rem;
    color: var(--accent-color, #c9a227);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-wrapper ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-wrapper li {
    position: relative;
}

.nav-wrapper a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-dark, #1a1a1a);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-wrapper a::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background: var(--accent-color, #c9a227);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-wrapper a:hover,
.nav-wrapper li.active a {
    color: var(--primary-color, #1a365d);
    background: rgba(26, 54, 93, 0.05);
}

.nav-wrapper a:hover::after,
.nav-wrapper li.active a::after {
    transform: scaleX(1);
}

/* Dropdown */
.nav-wrapper li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0;
    border-top: 2px solid var(--accent-color, #c9a227);
}

.nav-wrapper li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-wrapper li ul a {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.nav-wrapper li ul a::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color, #1a365d);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 41, 0.85) 0%,
        rgba(26, 54, 93, 0.7) 50%,
        rgba(15, 23, 41, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0;
}

.hero-inner {
    max-width: 700px;
    color: white;
}

.hero-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-inner p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-color, #c9a227);
    color: var(--night-blue, #0f1729);
    border-color: var(--accent-color, #c9a227);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color, #c9a227);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color, #1a365d);
    border-color: white;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    opacity: 0.7;
}

.scroll-text {
    color: white;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, white, transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ============================================
   STATISTICS BAR
   ============================================ */
.stats-bar {
    background: var(--primary-color, #1a365d);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color, #c9a227), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 1rem;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.rtl .stat-item:not(:last-child)::after {
    right: auto;
    left: 0;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color, #c9a227);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs-wrapper {
    background: var(--building-cream, #f5f0e8);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.85rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb li::after {
    content: '/';
    color: var(--stone-gray, #8a8278);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--stone-gray, #8a8278);
}

.breadcrumb a:hover {
    color: var(--primary-color, #1a365d);
}

.breadcrumb .active {
    color: var(--primary-color, #1a365d);
    font-weight: 600;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    padding: 3rem 0;
    min-height: 50vh;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.content-grid.has-left {
    grid-template-columns: 280px 1fr;
}

.content-grid.has-right {
    grid-template-columns: 1fr 280px;
}

.content-grid.has-left.has-right {
    grid-template-columns: 260px 1fr 260px;
}

.content-area {
    min-width: 0;
}

/* ============================================
   SIDEBARS
   ============================================ */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar .module {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-top: 3px solid var(--accent-color, #c9a227);
}

.sidebar .module h3,
.sidebar .module-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--primary-color, #1a365d);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar a {
    color: #555;
    font-size: 0.9rem;
    display: block;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    color: var(--accent-color, #c9a227);
    padding-left: 0.5rem;
}

.rtl .sidebar a:hover {
    padding-left: 0;
    padding-right: 0.5rem;
}

/* ============================================
   MODULE STYLES
   ============================================ */
.top-modules,
.bottom-modules {
    padding: 3rem 0;
    background: white;
}

.bottom-modules {
    background: var(--building-cream, #f5f0e8);
}

.grid-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.moduletable {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.moduletable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--accent-color, #c9a227);
}

.moduletable h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color, #1a365d);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Card Style */
.card .moduletable {
    position: relative;
    overflow: hidden;
}

.card .moduletable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #1a365d), var(--accent-color, #c9a227));
}

/* ============================================
   CONTENT MODULES (Full Width)
   ============================================ */
.content-modules {
    padding: 4rem 0;
}

.content-modules .container > div {
    margin-bottom: 3rem;
}

.content-modules .container > div:last-child {
    margin-bottom: 0;
}

/* ============================================
   COM_CONTENT OVERRIDES
   ============================================ */
.item-page {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.page-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color, #1a365d);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color, #c9a227);
    display: inline-block;
}

.item-image img {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.readmore .btn {
    background: var(--primary-color, #1a365d);
    color: white;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.readmore .btn:hover {
    background: var(--accent-color, #c9a227);
    color: var(--night-blue, #0f1729);
}

/* Blog Layout */
.blog .items-leading .item,
.blog .item {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.blog .items-leading .item:hover,
.blog .item:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.blog .item-title a {
    color: var(--primary-color, #1a365d);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.blog .item-title a:hover {
    color: var(--accent-color, #c9a227);
}

.blog .item-image {
    margin: -2rem -2rem 1.5rem -2rem;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.blog .item-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Article Info */
.article-info {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--stone-gray, #8a8278);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-info dd {
    margin: 0;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--primary-color, #1a365d);
    transition: all 0.3s ease;
}

.pagination li a:hover,
.pagination li.active span {
    background: var(--primary-color, #1a365d);
    color: white;
    border-color: var(--primary-color, #1a365d);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--night-blue, #0f1729);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color, #c9a227), var(--primary-color, #1a365d), var(--accent-color, #c9a227));
}

.footer-top {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color, #c9a227);
}

.rtl .footer-col h3::after {
    left: auto;
    right: 0;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact strong {
    color: var(--accent-color, #c9a227);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-menu a::before {
    content: '→';
    margin-right: 0.5rem;
    color: var(--accent-color, #c9a227);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rtl .footer-menu a::before {
    content: '←';
    margin-right: 0;
    margin-left: 0.5rem;
}

.footer-menu a:hover {
    color: var(--accent-color, #c9a227);
    padding-left: 1rem;
}

.rtl .footer-menu a:hover {
    padding-left: 0;
    padding-right: 1rem;
}

.footer-menu a:hover::before {
    opacity: 1;
}

/* Heritage Badge */
.heritage-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.heritage-year {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color, #c9a227);
}

.heritage-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color, #1a365d);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color, #c9a227);
    transform: translateY(-3px);
}

.back-to-top svg {
    fill: currentColor;
}

.rtl .back-to-top {
    right: auto;
    left: 2rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .content-grid.has-left,
    .content-grid.has-right,
    .content-grid.has-left.has-right {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: 2;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-grid {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
    }

    .rtl .nav-wrapper {
        right: auto;
        left: -100%;
        transition: left 0.3s ease;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .rtl .nav-wrapper.active {
        left: 0;
        right: auto;
    }

    .nav-wrapper ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-wrapper li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        display: none;
    }

    .nav-wrapper li.active > ul,
    .nav-wrapper li.open > ul {
        display: flex;
    }

    .hero-inner h2 {
        font-size: 2.2rem;
    }

    .hero-inner p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .grid-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-section {
        background-attachment: scroll;
        min-height: 60vh;
    }

    .school-name {
        font-size: 1.1rem;
    }

    .school-name-ar {
        font-size: 0.75rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-inner h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 1.5rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .container {
        padding: 0 1rem;
    }

    .item-page {
        padding: 1.5rem;
    }

    .moduletable {
        padding: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--accent-color, #c9a227);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .hero-section,
    .stats-bar,
    .sidebar,
    .site-footer,
    .back-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .item-page {
        box-shadow: none;
        padding: 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
        color: #666;
    }
}
