/* ==================== Responsive Styles ==================== */

/* Tablets and below (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    * {
        max-width: 100%;
    }
    
    html {
        overflow-x: clip;
        overflow-y: auto;
    }
    body {
        overflow-x: clip;
        overflow-y: visible !important;
        max-width: 100%;
        width: 100%;
    }
    
    .container {
        max-width: 100%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        width: 100%;
        max-width: 100%;
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        width: 100%;
    }
    
    .speakers-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-item {
        flex: 0 0 calc((100% - 2 * var(--spacing-md)) / 3);
        min-width: 180px;
    }
    
    .video-card {
        flex: 0 0 350px;
        min-width: 350px;
    }
    
    /* Disable hero motion/vibration on tablet (kept on desktop, already off on mobile) */
    .hero-image {
        transform: none !important;
    }
    
    .image-wrapper {
        transform: none !important;
    }
    
    .image-wrapper::before {
        animation: none !important;
        display: none !important;
    }
    
    .image-wrapper::after {
        display: none !important;
    }
    
    .image-wrapper img {
        transform: none !important;
        animation: none !important;
        min-height: unset !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    
    .hero-section {
        animation: none !important;
        background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 50%, #0f0f0f 100%) !important;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none !important;
    }
    
    .hero-badge {
        animation: fadeIn 0.6s ease-out !important;
    }
    
    .hero-badge::before {
        animation: none !important;
        display: none !important;
    }
    
    .hero-title {
        animation: fadeInUp 0.6s ease-out !important;
        filter: none !important;
    }
}

/* Mobile devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    :root {
        --font-size-3xl: 36px;
        --font-size-2xl: 28px;
        --font-size-xl: 20px;
        --spacing-3xl: 64px;
        --spacing-2xl: 48px;
    }
    
    html {
        overflow-x: clip;
        overflow-y: auto;
    }
    body {
        overflow-x: clip;
        overflow-y: visible !important;
        max-width: 100%;
        width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
        max-width: 100%;
    }
    
    /* Disable heavy animations on mobile for better performance */
    body::before,
    body::after {
        display: none !important;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none !important;
    }
    
    .particle-container {
        display: none !important;
    }
    
    /* Reduce animation intensity */
    * {
        animation-duration: 0.3s !important;
    }
    
    .image-wrapper::before {
        animation: none !important;
    }
    
    .image-wrapper img {
        animation: none !important;
    }
    
    .hero-title {
        animation: fadeInUp 0.5s ease-out !important;
        filter: none !important;
    }
    
    .section-title {
        animation: fadeInUp 0.5s ease-out !important;
        filter: none !important;
    }
    
    .section-title::before {
        animation: none !important;
        opacity: 0 !important;
    }
    
    .hero-badge {
        animation: fadeIn 0.5s ease-out !important;
    }
    
    /* Navigation */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        min-height: 76px;
        padding: 10px 0 14px 0;
        width: 100%;
        max-width: 100%;
        z-index: 10000;
    }

    .main-content {
        padding-top: 76px;
    }

    .main-content:has(> .hero-section:first-child) {
        padding-top: 0;
    }

    .nav-container {
        gap: var(--spacing-sm);
        width: 100%;
        max-width: 100%;
        min-height: 56px;
    }
    
    .nav-logo .logo-text {
        font-size: 22px;
    }

    .brand-logo-img {
        height: 48px;
        max-width: 200px;
        margin-bottom: 4px;
    }

    .logo-pos-center .nav-logo {
        position: static;
        left: auto;
        transform: none;
    }

    .logo-pos-center .nav-container,
    .logo-pos-end .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, 
            rgba(28, 28, 28, 0.98) 0%, 
            rgba(20, 20, 20, 0.98) 50%,
            rgba(15, 15, 15, 0.98) 100%);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 96px 24px 24px;
        gap: 14px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        list-style: none;
        width: 100%;
        max-width: 420px;
    }
    
    .nav-menu .nav-menu-logo {
        display: block;
        width: 100%;
        max-width: 420px;
        text-align: center;
        padding-bottom: 24px;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(1, 104, 84, 0.15);
    }
    
    .nav-menu .nav-menu-logo a {
        display: inline-block;
        width: auto;
        padding: 0;
        background: none;
        border: none;
    }
    
    .nav-menu .nav-menu-logo a:hover {
        background: none;
        border-color: transparent;
        transform: scale(1.05);
    }
    
    .nav-menu .nav-menu-logo .logo-text {
        font-size: 30px;
        font-weight: 800;
        background: linear-gradient(135deg, #ffffff 0%, var(--color-secondary) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.5px;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 18px 24px;
        text-align: center;
        border-radius: 14px;
        font-size: 17px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        background: transparent;
        border: 1px solid transparent;
        transition: all 0.3s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    
    .nav-menu a:hover {
        background: linear-gradient(135deg, 
            rgba(1, 104, 84, 0.15), 
            rgba(1, 104, 84, 0.08));
        border-color: rgba(1, 104, 84, 0.3);
        transform: scale(1.03);
    }
    
    .nav-menu a.active {
        background: linear-gradient(135deg, 
            var(--color-secondary), 
            var(--color-accent));
        color: var(--color-on-secondary);
        font-weight: 700;
        border-color: transparent;
        box-shadow: 0 4px 15px rgba(1, 104, 84, 0.4);
    }
    
    .nav-menu a.nav-user-btn {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a.admin-btn {
        background: linear-gradient(135deg, 
            rgba(255, 59, 48, 0.2), 
            rgba(255, 59, 48, 0.3));
        color: #ff3b30;
        border: 2px solid rgba(255, 59, 48, 0.4);
        font-weight: 600;
        margin-top: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-menu a.admin-btn svg {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
    }
    
    .nav-menu a.admin-btn:hover {
        background: linear-gradient(135deg, #ff3b30, #ff6b60);
        color: #ffffff;
        border-color: transparent;
        box-shadow: 0 4px 15px rgba(255, 59, 48, 0.5);
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1002;
        position: relative;
        width: 44px;
        height: 44px;
        padding: 0;
        background: rgba(1, 104, 84, 0.1);
        border-radius: 10px;
        border: 1px solid rgba(1, 104, 84, 0.2);
        gap: 5px;
        transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(1, 104, 84, 0.2);
    }
    
    .mobile-menu-toggle span {
        background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
        width: 22px;
        height: 2.5px;
        border-radius: 2px;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Active (open) state — the toggle itself doubles as the close button */
    .mobile-menu-toggle.active {
        background: rgba(255, 59, 48, 0.12);
        border-color: rgba(255, 59, 48, 0.4);
        box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.08);
    }
    
    .mobile-menu-toggle.active:hover {
        background: rgba(255, 59, 48, 0.2);
    }
    
    .mobile-menu-toggle.active span {
        background: linear-gradient(135deg, #ff6b60, #ff3b30);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero-section {
        padding: calc(76px + var(--spacing-xl)) 0 var(--spacing-xl);
        background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 100%) !important;
        animation: none !important;
        overflow: hidden !important;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        min-height: auto !important;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .hero-text {
        order: 2;
        width: 100%;
        overflow: visible;
    }
    
    .hero-image {
        order: 1;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        position: relative;
        transform: none !important;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        width: 100%;
        overflow: visible;
    }
    
    .hero-date {
        font-size: 16px;
        margin-bottom: 6px;
        width: 100%;
    }
    
    .hero-location {
        font-size: 14px;
        margin-bottom: var(--spacing-md);
        width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .hero-badge-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-badge {
        font-size: 13px;
        padding: 6px 16px;
        width: fit-content;
    }

    .hero-meta-bar {
        gap: 8px;
        margin-bottom: 14px;
        width: 100%;
        justify-content: center;
    }

    .hero-meta-item {
        font-size: 13px;
        padding: 0 14px;
        height: 36px;
        min-height: 36px;
    }

    .hero-description {
        margin: 6px auto 16px auto;
        padding: 8px 18px;
        width: fit-content;
        max-width: 95%;
        border-radius: 50px;
        text-align: center;
    }

    .hero-description p {
        font-size: 13.5px;
        line-height: 1.5;
        text-align: center;
    }
    
    .image-wrapper {
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        position: relative;
        transform: none !important;
    }
    
    .image-wrapper::before {
        display: none !important;
    }
    
    .image-wrapper::after {
        display: none !important;
    }
    
    .image-wrapper img {
        min-height: unset !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        height: auto !important;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-countdown {
        width: fit-content;
        max-width: 100%;
        box-sizing: border-box;
        align-items: center;
        padding: 14px 18px;
        margin: 6px auto 18px auto;
    }
    
    .countdown-header {
        justify-content: center;
    }

    .countdown-grid {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .countdown-box {
        width: 54px;
        min-width: 54px;
        height: 52px;
        padding: 0;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .countdown-num {
        font-size: 22px;
    }

    .countdown-sep {
        font-size: 18px;
        height: 52px;
        margin: 0;
        display: flex;
        align-items: center;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: 100%;
        overflow: visible;
    }
    
    .hero-actions .btn {
        flex: 1;
        min-width: 180px;
        max-width: 220px;
        height: 48px;
        text-align: center;
        padding: 0 20px;
        font-size: 14.5px;
        box-sizing: border-box;
    }
    
    /* Speakers */
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        width: 100%;
        max-width: 100%;
    }
    
    .speaker-card {
        padding: var(--spacing-lg);
        width: 100%;
        max-width: 100%;
    }
    
    /* Videos */
    .video-card {
        flex: 0 0 300px;
        min-width: 300px;
        max-width: 350px;
    }
    
    .auto-slider-wrapper {
        gap: 0;
        margin-top: var(--spacing-lg);
    }

    .slider-nav-btn {
        display: none;
    }

    .videos-section {
        padding: var(--spacing-xl) 0;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .videos-grid {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }
    
    .videos-section .section-title {
        font-size: 28px;
        margin-bottom: var(--spacing-lg);
        width: 100%;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        width: 100%;
        max-width: 100%;
    }
    
    .blog-card {
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }
    
    /* Gallery Grid */
    .gallery-grid {
        gap: var(--spacing-sm);
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-item {
        flex: 0 0 calc((100% - var(--spacing-sm)) / 2);
        min-width: 150px;
    }
    
    .lightbox__close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: var(--spacing-md);
        left: var(--spacing-md);
    }
    
    .lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .lightbox__nav--prev {
        right: var(--spacing-sm);
    }
    
    .lightbox__nav--next {
        left: var(--spacing-sm);
    }
    
    /* Seminars Grid */
    .seminars-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
        overflow-x: clip;
        overflow-y: visible !important;
        width: 100%;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: var(--spacing-lg);
        width: 100%;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        width: 100%;
        max-width: 100%;
    }
    
    .footer {
        margin-top: 60px;
        padding: var(--spacing-xl) 0 var(--spacing-md);
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        overflow-y: visible !important;
    }
    
    /* Search Form */
    .search-form {
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        padding: 8px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 12px 18px;
        width: 100%;
        max-width: 100%;
    }
    
    .search-btn {
        padding: 10px;
        width: 40px;
        height: 40px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .search-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        width: 100%;
        max-width: 100%;
    }
    
    /* Blog List */
    .blog-listing-section .container {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    
    .blog-sidebar {
        margin-bottom: var(--spacing-xl);
        width: 100%;
    }
}

/* Small mobile devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    :root {
        --font-size-3xl: 28px;
        --font-size-2xl: 24px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
        --spacing-2xl: 40px;
    }
    
    html {
        overflow-x: clip !important;
        overflow-y: auto !important;
    }
    body {
        overflow-x: clip !important;
        overflow-y: visible !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    * {
        max-width: 100%;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
        max-width: 100% !important;
    }
    
    .nav-menu {
        width: 100%;
        max-width: 100%;
        padding: 84px 16px 20px;
        gap: 10px;
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu .nav-menu-logo {
        padding-bottom: 16px;
        margin-bottom: 4px;
    }
    
    .nav-menu .nav-menu-logo .logo-text {
        font-size: 24px;
    }
    
    .nav-menu a {
        padding: 15px 16px;
        font-size: 15px;
        color: rgba(255, 255, 255, 0.9);
        display: block;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 28px;
        width: 100%;
    }
    
    .image-wrapper img {
        max-height: none !important;
        height: auto !important;
    }
    
    .hero-countdown {
        padding: 12px 12px;
        margin: 4px auto 16px auto;
        width: fit-content;
        max-width: 100%;
    }

    .countdown-title {
        font-size: 12px;
    }

    .countdown-grid {
        gap: 6px;
    }

    .countdown-box {
        width: 48px;
        min-width: 48px;
        height: 46px;
        padding: 0;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .countdown-num {
        font-size: 18px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .countdown-sep {
        font-size: 16px;
        height: 46px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .section-title {
        font-size: 24px;
        width: 100%;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 100%;
    }
    
    .speaker-image-wrapper {
        width: 120px;
        height: 120px;
    }
    
    /* Alert responsive for small screens */
    .alert {
        padding: 10px 14px;
        gap: 6px;
        font-size: 13px;
    }
    
    .alert-error::before,
    .alert-success::before {
        width: 18px;
        height: 18px;
        min-width: 18px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0 28px 0;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .page-header p {
        font-size: 14px;
    }

    /* Seminars List & Search */
    .search-box {
        margin: 0 auto 28px auto;
        width: 100%;
    }

    .search-form {
        padding: 6px 8px;
    }

    .search-input {
        padding: 8px 12px;
        font-size: 14px;
    }

    .search-btn {
        width: 38px;
        height: 38px;
    }

    .seminars-grid {
        gap: 16px;
    }

    .seminar-card {
        min-height: auto;
        border-radius: 18px;
    }

    .seminar-card-image {
        height: 175px;
        width: calc(100% - 16px);
        margin: 8px 8px 0 8px;
        border-radius: 14px;
    }

    .seminar-card-content {
        padding: 14px;
    }

    .seminar-card-title {
        font-size: 17px;
        margin-bottom: 5px;
        min-height: auto;
    }

    .seminar-card-excerpt {
        font-size: 13.5px;
        margin-bottom: 12px;
        min-height: auto;
    }

    /* Seminar Detail & Registration */
    .seminar-detail-hero {
        padding: 36px 0;
    }

    .detail-header h1 {
        font-size: 23px;
        line-height: 1.45;
    }

    .detail-date {
        font-size: 14px;
    }

    .detail-location {
        font-size: 13px;
    }

    .detail-poster {
        border-radius: 16px;
        margin-bottom: 24px;
    }

    .detail-poster img {
        border-radius: 16px;
        max-height: 380px;
        min-height: auto;
    }

    .registration-card {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .registration-badge {
        font-size: 11.5px;
        padding: 4px 12px;
    }

    .registration-title {
        font-size: 19px;
        line-height: 1.4;
    }

    .registration-subtitle {
        font-size: 13px;
    }

    .registration-form .form-group {
        margin-bottom: 14px;
    }

    .registration-form .form-group label {
        font-size: 13px;
    }

    .registration-form .form-control {
        padding: 11px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* Description Cards */
    .desc-card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .desc-card-title {
        font-size: 16px;
    }

    .desc-card-body {
        font-size: 13.5px;
        line-height: 1.8;
    }

    .desc-lead-badge {
        font-size: 13.5px;
        padding: 7px 16px;
    }

    /* Videos & Gallery */
    .video-card {
        flex: 0 0 calc(100vw - 36px) !important;
        min-width: 240px !important;
        max-width: calc(100vw - 36px) !important;
        border-radius: 16px;
    }

    .video-wrapper {
        border-radius: 14px;
    }

    .video-title {
        font-size: 15px;
        padding: 12px 14px;
    }

    .gallery-item {
        flex: 0 0 calc((100% - 10px) / 2);
        min-width: 120px;
        height: 130px;
        border-radius: 14px;
    }

    /* Blog List & Detail */
    .blog-post-card {
        border-radius: 16px;
    }

    .blog-post-image {
        height: 165px;
    }

    .blog-post-content {
        padding: 16px 14px;
    }

    .blog-post-title {
        font-size: 17px;
    }

    .blog-post-excerpt {
        font-size: 13.5px;
    }

    .blog-detail-image {
        border-radius: 16px;
        margin-bottom: 18px;
    }

    .blog-detail-image img {
        border-radius: 16px;
        max-height: 230px;
        min-height: auto;
    }

    .blog-detail-meta h1 {
        font-size: 22px;
        line-height: 1.4;
    }

    .blog-detail-info {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .blog-detail-content {
        padding: 20px 14px;
        border-radius: 16px;
        font-size: 14.5px;
        line-height: 1.85;
    }

    .sidebar-box {
        padding: 18px 14px;
        border-radius: 16px;
    }

    /* Contact Page */
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .contact-form-wrapper h2,
    .contact-info-wrapper h2 {
        font-size: 19px;
    }

    .contact-map {
        margin-top: 14px;
        border-radius: 12px;
        overflow: hidden;
    }

    .contact-map iframe {
        width: 100% !important;
        height: 220px !important;
        border-radius: 12px;
    }

    /* Login Panel */
    .login-panel {
        padding: 24px 16px;
        border-radius: 18px;
        max-width: 100%;
    }

    .login-panel__icon {
        width: 54px;
        height: 54px;
        margin-bottom: 14px;
    }

    .login-panel__title {
        font-size: 22px;
    }

    .login-panel__subtitle {
        font-size: 13.5px;
        margin-bottom: 20px;
    }

    /* General Elements */
    img, iframe, video {
        max-width: 100% !important;
    }

    table {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
    }

    pre, code {
        max-width: 100% !important;
        overflow-x: auto;
        word-break: break-all;
    }
}

/* ==================== Tablet & Mobile Navigation / Layout ==================== */
@media screen and (max-width: 1024px) {
    .blog-listing-section .container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .blog-sidebar {
        order: 2;
        position: static;
        width: 100%;
    }
    
    .blog-main {
        order: 1;
        width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-form-wrapper {
        order: 1;
    }
    
    .contact-info-wrapper {
        order: 2;
        position: static !important;
        top: auto !important;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .navbar,
    .footer,
    .btn,
    .pagination {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}

/* Contact page responsive */
@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 32px 24px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-form-wrapper h2 {
        font-size: 24px;
        width: 100%;
    }
    
    .contact-info-wrapper {
        padding: 24px 20px;
        position: relative !important;
        top: auto !important;
        order: -1;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info-wrapper h2 {
        font-size: 18px;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .contact-info-list {
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .social-links a svg {
        width: 18px;
        height: 18px;
    }
    
    /* Alert responsive */
    .alert {
        padding: 12px 16px;
        gap: 8px;
        font-size: 14px;
    }
    
    .alert-error::before,
    .alert-success::before {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: 13px;
        flex-shrink: 0;
    }
}

/* Blog listing responsive */
@media screen and (max-width: 1024px) {
    .blog-listing-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
        overflow-x: clip;
        overflow-y: visible !important;
    }
    
    .blog-sidebar {
        order: 2;
        width: 100%;
    }
    
    .blog-main {
        order: 1;
        width: 100%;
    }
    
    .sidebar-box {
        padding: 24px;
        width: 100%;
    }
    
    .blog-post-card {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }
    
    .blog-post-image {
        height: 250px;
        min-height: auto;
        width: 100%;
    }
    
    .blog-post-content {
        padding: 24px;
        width: 100%;
    }
    
    .blog-post-title {
        font-size: 22px;
        width: 100%;
    }
}

/* Detail pages responsive */
@media screen and (max-width: 768px) {
    .detail-poster,
    .blog-detail-image {
        border-radius: 20px;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }
    
    .detail-poster img {
        min-height: auto;
        max-height: 480px;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .blog-detail-image img {
        min-height: auto;
        max-height: 380px;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        object-fit: cover;
    }
    
    .detail-header h1,
    .blog-detail-meta h1 {
        font-size: clamp(24px, 5vw, 32px);
        width: 100%;
        word-break: break-word;
        line-height: 1.4;
    }
    
    .detail-date {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .detail-location {
        font-size: 14px;
        margin-bottom: var(--spacing-md);
    }
    
    .registration-card {
        padding: 32px 20px;
        border-radius: 20px;
    }
    
    .registration-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .registration-title {
        font-size: 22px;
    }
    
    .blog-detail-content {
        padding: var(--spacing-xl) var(--spacing-md);
        border-radius: 20px;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .description-content {
        padding: var(--spacing-xl) var(--spacing-md);
        border-radius: 20px;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
    }

    .description-content-wrap {
        width: 100%;
        max-width: 100%;
    }

    .desc-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .desc-card {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .desc-card-title {
        font-size: 17px;
    }

    .desc-lead-badge {
        font-size: 15px;
        padding: 8px 20px;
    }
    
    .description-section {
        padding: var(--spacing-2xl) 0;
        overflow-x: clip;
        overflow-y: visible !important;
        width: 100%;
        max-width: 100%;
    }
}

/* Page header responsive */
@media screen and (max-width: 768px) {
    .page-header {
        padding: 60px 0;
        overflow-x: clip;
        overflow-y: visible !important;
        width: 100%;
        max-width: 100%;
    }
    
    .page-header h1 {
        font-size: 36px;
        width: 100%;
    }
    
    .page-header p {
        font-size: 16px;
        width: 100%;
    }
}

/* Sponsors Responsive */
@media screen and (max-width: 768px) {
    .sponsors-section {
        padding: var(--spacing-2xl) 0;
        overflow-x: clip;
        overflow-y: visible !important;
    }
    
    .sponsor-card {
        flex: 0 0 170px;
        padding: 18px 14px;
        border-radius: 16px;
    }
    
    .sponsor-logo-wrap {
        height: 52px;
    }
    
    .sponsor-logo {
        max-height: 44px;
        max-width: 120px;
    }
    
    .sponsor-name {
        font-size: 13px;
        margin-top: 8px;
    }
    
    .sponsor-nav-btn {
        width: 36px;
        height: 36px;
    }
}

@media screen and (max-width: 480px) {
    .sponsor-card {
        flex: 0 0 145px;
        padding: 14px 10px;
        border-radius: 14px;
    }
    
    .sponsors-slider-track {
        gap: 12px;
        padding: 10px 4px;
    }
    
    .sponsor-logo-wrap {
        height: 44px;
    }
    
    .sponsor-logo {
        max-height: 36px;
        max-width: 105px;
    }
    
    .sponsor-nav-btn {
        display: none;
    }
}

/* 404 Error Page Responsive */
@media screen and (max-width: 768px) {
    .error-card {
        padding: 32px 18px;
        border-radius: 24px;
    }
    
    .error-title {
        font-size: 22px;
    }
    
    .error-desc {
        font-size: 14px;
        margin-bottom: 22px;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .error-btn {
        width: 100%;
        max-width: 320px;
    }
    
    .error-quick-grid {
        grid-template-columns: 1fr;
    }
}

