/**
 * Skagrima Theme V2
 * Modern school theme for smkpgri5denpasar.sch.id
 * Using Pico.css (~4KB, classless, beautiful, mobile-first)
 */
@import url("https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css");
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Rubik:wght@400;500;600;700&display=swap");
:root {
    --pico-font-size: 15px;
    --h1: 1.6rem;
    --h2: 1.45rem;
    --h3: 1.35rem;
    --h4: 1.25rem;
    --h5: 1.15rem;
    --h6: 1.05rem;
}

/* Remove extra space between header and content */
.site-header + main,
.site-header + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Main content */
main {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

body > main {
    padding-block: 0 !important;
}

.img-fluid {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    .flex-row-desktop {
        display: flex;
        flex-direction: row;
    }
    .flex-col-desktop {
        display: flex;
        flex-direction: column;
    }
    .hero-banner img {
        width: 1200px;
        height: auto;
    }
}
@media (max-width: 768px) {
    .flex-row-mobile {
        display: flex;
        flex-direction: row;
    }
    .flex-col-mobile {
        display: flex;
        flex-direction: column;
    }
}
:root {
    --font-size: 14px;
    --primary: #4a8eff;
    --primary-dark: #3a7ee8;
    --primary-light: #e8f1ff;
    --accent-green: #18ce0f;
    --accent-orange: #f29e0f;
    --accent-red: #ff5062;
    --secondary: #2c3e50;
    --text: #333;
    --text-light: #666;
    --text-muted: #888;
    --bg: #f8f9fa;
    --bg-white: #fff;
    --border: #e1e8ed;
    --shadow: rgba(0, 0, 0, 0.08);
    --radius: 4px;
    --radius-lg: 8px;
    --font-sans:
        "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

p {
    margin: 10px 0;
    font-size: 16px;
}

.container {
    margin: 0 auto;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background: #4a8eff;
    color: white;
    padding: 0.75rem 0;
    margin-bottom: 0;
}

.site-header + * {
    margin-top: 0 !important;
}

.site-header .container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-header .site-branding {
    display: flex;
    align-items: center;
}

.site-header .site-title {
    margin: 0;
    font-family: "Anton", sans-serif;
    font-size: 1.5rem;
}

.site-header .site-title a {
    color: white;
    text-decoration: none;
}

.site-header .site-nav {
    display: flex;
}

.site-header .nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .nav-menu a {
    color: white;
    font-weight: 500;
}

/* Dropdown menu */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children .dropdown-arrow {
    font-size: 0.7em;
    margin-left: 0.3em;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

.sub-menu li {
    padding: 0;
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: #333 !important;
    text-decoration: none;
    font-weight: 400;
    transition: background 0.2s;
}

.sub-menu a:hover {
    background: #f0f0f0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile styles */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }

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

    .site-header .site-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #4a8eff;
        padding: 1rem;
        z-index: 1000;
    }

    .site-header .site-nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.5rem 0;
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
    }

    .menu-item-has-children {
        position: relative;
    }

    .sub-menu {
        display: none;
        position: static;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
    }

    .sub-menu.active {
        display: block;
    }

    .sub-menu li {
        display: block;
        width: 100%;
    }

    .sub-menu a {
        color: white !important;
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }
}

/* Content container */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

/* Main h1 alignment with content container */
main > h1 {
    max-width: 1200px;
    margin: 1.5rem auto 1.5rem auto;
    padding: 0 1rem;
}

/* Greeting Section */
.greeting-section {
    padding: 0.5rem 0;
    background: #fff;
}

.greeting-section h1 {
    margin-bottom: 0.5rem;
}

.greeting-section > .container {
    max-width: 1080px;
    margin: 0 auto;
}

/* Greeting Layout - Desktop */
.greeting-layout-wrapper {
    margin: 1.5rem 0;
}

.greeting-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.greeting-text {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.greeting-text p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.principal-info-wrapper {
    flex: 0 0 auto;
    width: 45%;
    max-width: 400px;
    text-align: center;
    padding: 2rem 1rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.principal-photo {
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 350px;
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.principal-info-wrapper h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.principal-info-wrapper p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Programs section */
.programs-section {
    background: #f5f5f5;
    padding: 3rem 1rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
}

.programs-section .jurusan {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.programs-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.programs-section .programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.programs-section .program-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.programs-section .program-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.programs-section .program-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.programs-section .program-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.programs-section .program-content p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
}

/* Navigation */
nav {
    display: flex;
    gap: 0.25rem;
}

nav a {
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
}

nav a:hover,
nav a.active {
    background: var(--primary);
    color: white;
}

nav .has-dropdown {
    position: relative;
}

nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 15px var(--shadow);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 0.5rem 0;
    z-index: 200;
}

nav .has-dropdown:hover .dropdown-menu {
    display: block;
}

nav .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text);
    text-transform: none;
    font-size: 0.9rem;
}

nav .dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Hero Section */
.hero-banner {
    background-image: url(https://adzuki.t3.tigrisfiles.io/themes/skagrima/bg_pattern.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: repeat;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner img {
    max-height: 400px;
    display: block;
    margin: 0 auto;
}

/* Figure list */
figure > li {
    list-style: none !important;
}

/* Gallery item */
.blocks-gallery-item,
.blocks-gallery-grid {
    list-style: none !important;
}

/* Override Pico.css list styles */
ul li,
ul li::marker {
    list-style: none !important;
}

/* Navigation */
/* Main content - push footer to bottom */
main {
    flex: 1;
}

.bg-dark {
    background: #1a1a1a;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* News Card */
article[style*="background: white"] {
    transition: background 0.2s;
}
article[style*="background: white"]:hover {
    background: #f9f9f9 !important;
}
article[style*="background: white"] a {
    text-decoration: none;
}
article[style*="background: white"] a:hover h3 {
    color: #ec5b13;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    article[style*="flex-direction: row"] {
        flex-direction: column !important;
    }
    article[style*="flex-direction: row"] > div:first-child {
        width: 100% !important;
    }

    header .site-nav {
        display: none;
    }

    header .site-nav.active {
        display: block;
    }
}

.footer > .container-fluid > p {
    color: #fff;
    margin-bottom: 0;
}

.footer-blockquote {
    padding-bottom: 5px;
}

.quote {
    font-family: "Libre Caslon Text", serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #ccc;
    max-height: 85px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 1rem;
    }
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--bg);
        padding: 1rem;
        border-radius: var(--radius);
    }
    nav.active {
        display: flex;
    }
    nav a {
        padding: 0.75rem;
        text-align: center;
    }
    .menu-toggle {
        display: block;
    }
}
.greeting {
    padding-top: 40px;
    max-width: 1080px;
    margin: 0 auto;
}

.jurusan {
    max-width: 1080px;
    margin: 0 auto;
}

/* News Section - stacked layout */
.news-section,
.pengumuman-section {
    max-width: 1080px;
    margin: 2rem auto 4rem auto !important;
    padding: 2rem 1rem;
    background: white;
}

.news-section h2,
.pengumuman-section h2 {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

/* Berita Terbaru — equal-height cards & uniform thumbnails.
   The home templates use Bootstrap-style .col-lg-8/.col-lg-4 classes that
   aren't defined here, so the intended 8/4 split (news + Pengumuman) never
   applied. These rules implement that layout and give every news card a
   fixed-height cover image so thumbnails line up regardless of source ratio. */
.news-section .news-section-block {
    display: grid;
    grid-template-columns: 2fr 1fr;   /* col-lg-8 : col-lg-4 */
    gap: 2rem;
    align-items: start;
}

/* Inner grid of article cards: responsive 3-up on desktop, fewer on narrow screens */
.news-section .news-section-block .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.news-section article {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--pico-muted-border, #e5e5e5);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-section article:hover {
    box-shadow: var(--shadow, 0 4px 12px rgba(0, 0, 0, 0.08));
    transform: translateY(-4px);
}

/* Uniform thumbnail height — the core fix */
.news-section article img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.news-section article h4,
.news-section article p,
.news-section article small {
    padding-left: 1rem;
    padding-right: 1rem;
}

.news-section article h4 {
    margin-top: 0.75rem;
}

/* Push the "Baca Selengkapnya" link to the bottom so cards align */
.news-section article a {
    margin-top: auto;
    padding: 0 1rem 1rem;
    text-decoration: none;
    font-weight: 500;
}

/* Sidebar list */
.news-section .pengumuman-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .news-section .news-section-block {
        grid-template-columns: 1fr;   /* stack news + Pengumuman */
    }
}

/* Blog Section */
.blog-section {
    max-width: 1080px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    background: white;
}

.blog-section h1 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.blog-list {
    display: grid;
    gap: 2rem;
}

.blog-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.blog-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.blog-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.blog-item img {
    width: 200px;
    height: auto;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
}

.blog-date {
    color: var(--muted);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.blog-item h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.blog-item p {
    color: var(--muted);
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pagination-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.pagination-link:hover {
    text-decoration: underline;
}

.pagination-info {
    color: var(--muted);
}

/* Post Detail */
.post-detail {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    background: white;
}

.post-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
}

.back-link:hover {
    text-decoration: underline;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--muted);
    font-size: 0.875rem;
}

.post-featured-image {
    margin: 2rem 0;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

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

.category-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.post-content {
    line-height: 1.8;
    color: var(--text);
    margin: 2rem 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.post-content h2,
.post-content h3 {
    color: var(--primary);
    margin-top: 2rem;
}

.post-content ul,
.post-content ol {
    padding-left: 1.5rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

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

.tag-item {
    background: var(--bg);
    color: var(--text);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* Post Layout - Desktop */
.post-layout-wrapper {
    margin: 1.5rem 0;
}

.post-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.post-text {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.post-image-wrapper {
    flex: 0 0 auto;
    width: 45%;
    max-width: 500px;
}

.post-featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Page Layout */
.contact-layout-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.map-container {
    margin-top: 1.5rem;
}

.contact-form-wrapper {
    flex: 0 0 auto;
    width: 45%;
    max-width: 500px;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

/* Responsive for blog */
@media (max-width: 768px) {
    .blog-item a {
        flex-direction: column;
    }

    .blog-item img {
        width: 100%;
        height: 200px;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    /* Post layout - stack vertically on mobile */
    .post-content-wrapper {
        flex-direction: column;
    }

    .post-image-wrapper {
        width: 100%;
        margin-top: 1.5rem;
    }

    /* Greeting layout - stack vertically on mobile */
    .greeting-content-wrapper {
        flex-direction: column-reverse; /* Image first on mobile */
    }

    .principal-info-wrapper {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    /* Keep original aspect ratio on mobile */
    .principal-photo {
        width: auto;
        height: auto;
        max-width: 200px;
        max-height: 250px;
    }

    /* Contact layout - stack vertically on mobile */
    .contact-layout-wrapper {
        flex-direction: column;
    }

    .contact-form-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }

    /* Programs section - stack vertically on mobile */
    .programs-section .programs-grid {
        grid-template-columns: 1fr;
    }

    .programs-section .program-card {
        flex-direction: column;
        text-align: center;
    }

    .programs-section .program-card img {
        width: 100%;
        max-width: 300px;
        height: 200px;
        margin: 0 auto;
    }
}

/* Guru Card Grid - Desktop */
@media (min-width: 769px) {
    .guru-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .guru-card {
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .guru-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }

    .guru-foto img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 1rem;
    }

    .guru-info h3 {
        font-size: 1rem;
        margin: 0 0 0.5rem 0;
        color: #333;
    }

    .guru-info .jabatan {
        font-size: 0.85rem;
        color: #666;
        margin: 0 0 0.5rem 0;
    }

    .guru-info .motto {
        font-size: 0.8rem;
        color: #888;
        font-style: italic;
        margin: 0;
        line-height: 1.4;
    }
}

/* Mobile - 1-2 cards per row */
@media (max-width: 480px) {
    .guru-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .guru-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
}

    .guru-card {
        background: white;
        border-radius: 8px;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    }

    .guru-foto img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .guru-info {
        text-align: left;
        flex: 1;
    }

    .guru-info h3 {
        font-size: 1rem;
        margin: 0 0 0.25rem 0;
    }

    .guru-info .jabatan {
        font-size: 0.85rem;
        color: #666;
        margin: 0 0 0.25rem 0;
    }

    .guru-info .motto {
        font-size: 0.75rem;
        color: #888;
        font-style: italic;
        margin: 0;
    }
}
/* HTML Block Styles */
.html-block { margin: 10px 0; padding: 0; }
.html-block-header { margin-bottom: 10px; max-height: 300px; overflow: hidden; }
.html-block-header img { max-height: 300px; width: auto; height: auto; display: block; margin: 0 auto; object-fit: contain; }
.html-block-banner { margin-top: 10px; margin-bottom: 10px; }
.html-block-sidebar { background: #f8f9fa; padding: 15px; border-radius: 8px; }
.html-block-sidebar .html-block { margin: 10px 0; }
.html-block-footer { background: #212529; color: #fff; margin-bottom: 20px; }
.html-block-footer a { color: #4a8eff; }
.html-block-footer a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    main .container { flex-direction: column !important; }
    .html-block-sidebar { width: 100% !important; margin-top: 20px; }
}
