/* ===== BLOG PAGE HERO ===== */
.blog-hero {
    background: url("images/header/blog.jpg") center/cover no-repeat;
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.blog-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 28, 45, 0.8), rgba(11, 28, 45, 0.6));
    z-index: 1;
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.blog-hero .hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ffffff;
    opacity: 1 !important;
    transform: none !important;
}

.blog-hero .hero-content p {
    font-size: 18px;
    opacity: 0.92;
    line-height: 1.7;
    color: #fff;
    transform: none !important;
}

/* ===== FILTER SECTION ===== */
.blog-filter-section {
    padding: 24px 5%;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    text-align: center;
    position: sticky;
    top: 105px;
    /* Increased offset to completely clear the main site header */
    z-index: 99;
}

.blog-filter-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: var(--text-muted);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 188, 212, 0.3);
}

/* ===== BLOG CONTAINER ===== */
.blog-container {
    width: 90%;
    max-width: 1260px;
    margin: 0 auto;
}

/* ===== FEATURED POST ===== */
.featured-post-section {
    padding: 70px 5% 50px;
    background: #ffffff;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

.featured-image {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.featured-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1f44, #00bcd4);
    font-size: 90px;
    color: rgba(255, 255, 255, 0.18);
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-img-placeholder {
    transform: scale(1.04);
}

.post-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--accent-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    z-index: 2;
    text-transform: uppercase;
}

.featured-content {
    padding: 40px 40px 40px 0;
}

.featured-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 12px 0 18px;
    line-height: 1.35;
}

.featured-content>p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== CATEGORY TAGS ===== */
.post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.cloud-tag {
    background: rgba(0, 188, 212, 0.12);
    color: #0097a7;
}

.cyber-tag {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.digital-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.network-tag {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

/* ===== POST META ===== */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== BLOG GRID ===== */
.blog-grid-section {
    padding: 60px 5% 80px;
    background: #f8fafc;
}

.section-heading {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 50px;
}

/* ===== BLOG CARD ===== */
.blog-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.blog-card.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease;
}

.blog-card:hover .card-img-placeholder {
    transform: scale(1.05);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.blog-card:hover .card-img {
    transform: scale(1.05);
}

.cloud-bg {
    background: linear-gradient(135deg, #0a1f44, #00bcd4);
}

.cyber-bg {
    background: linear-gradient(135deg, #1a0a0a, #ef4444);
}

.digital-bg {
    background: linear-gradient(135deg, #0a2015, #10b981);
}

.network-bg {
    background: linear-gradient(135deg, #1a0a2e, #7c3aed);
}

/* New card backgrounds */
.infra-bg {
    background: linear-gradient(135deg, #0a1a2e, #0097a7);
}

.managed-bg {
    background: linear-gradient(135deg, #1a1a0a, #f59e0b);
}

/* New category tags */
.tecedge-tag {
    background: rgba(0, 151, 167, 0.12);
    color: #006064;
}

.teccore-tag {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.teccloud-tag {
    background: rgba(0, 188, 212, 0.12);
    color: #0097a7;
}

.tecsecure-tag {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.tecconnect-tag {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.tecapps-tag {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.tecserve-tag {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.tecwings-tag {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
}

/* Filter button icons */
.filter-btn i {
    margin-right: 6px;
    font-size: 13px;
}

.card-image .post-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-body>p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body .post-meta {
    display: none;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
}

.card-link:hover {
    color: var(--accent-hover);
    gap: 10px;
}

/* ===== NO RESULTS ===== */
.no-results {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 16px;
    gap: 16px;
}

.no-results i {
    font-size: 48px;
    opacity: 0.35;
}

/* ===== LOAD MORE ===== */
.load-more-wrap {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    padding: 12px 36px;
    font-size: 15px;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    padding: 90px 5%;
    background: linear-gradient(135deg, #0a1f44 0%, #0097a7 100%);
    text-align: center;
    color: #fff;
}

.newsletter-inner {
    max-width: 620px;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    display: block;
}

.newsletter-section h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
}

.newsletter-section>.newsletter-inner>p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 520px;
    margin: 0 auto 16px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.newsletter-form input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: #fff;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 14px 30px;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: none;
}

.newsletter-disclaimer {
    font-size: 13px;
    min-height: 20px;
}

/* ===== MEDIA SECTION ===== */
.media-section {
    padding: 60px 5% 80px;
    background: #f8fafc;
}

.media-subheading {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-top: -30px;
    margin-bottom: 44px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.media-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.media-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.media-thumb {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, #0a1f44, #00bcd4);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.media-card:hover .media-thumb {
    transform: scale(1.04);
}

.image-thumb {
    background: linear-gradient(135deg, #0a1f44, #00bcd4);
}

.video-thumb {
    background: linear-gradient(135deg, #1a0a2e, #7c3aed);
}

.video-thumb i.fa-circle-play {
    font-size: 72px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, color 0.3s ease;
}

.media-card:hover .video-thumb i.fa-circle-play {
    transform: scale(1.15);
    color: rgba(255, 255, 255, 0.85);
}

.media-type-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #0a1f44;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.video-badge {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.media-info {
    padding: 20px 22px 24px;
}

.media-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #0a1f44;
    margin-bottom: 8px;
    line-height: 1.45;
}

.media-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== FILTER ANIMATION ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 280px;
    }

    .featured-img-placeholder {
        min-height: 280px;
    }

    .featured-content {
        padding: 30px;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .blog-filter-section {
        top: 64px !important;
        padding: 16px 5% !important;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 35vh !important;
        padding: 0 15px 40px !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
    }

    .blog-hero .hero-content h1 {
        font-size: clamp(24px, 6vw, 36px) !important;
        margin-bottom: 10px !important;
    }

    .blog-hero .hero-content p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .blog-filter-section {
        padding: 12px 15px !important;
    }

    .filter-btn {
        padding: 6px 16px !important;
        font-size: 13px !important;
    }

    .featured-post-section {
        padding: 40px 15px 25px !important;
    }

    .featured-post {
        gap: 0 !important;
        border-radius: 16px !important;
    }

    .featured-image,
    .featured-img-placeholder {
        min-height: 220px !important;
    }

    .featured-content {
        padding: 20px !important;
    }

    .featured-content h2 {
        font-size: 20px !important;
        margin: 8px 0 12px !important;
    }

    .featured-content > p {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
    }

    .blog-grid-section {
        padding: 30px 15px 40px !important;
    }

    .section-heading {
        font-size: 24px !important;
        margin-bottom: 25px !important;
    }

    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .blog-card {
        border-radius: 14px !important;
    }

    .card-img,
    .card-img-placeholder {
        height: 170px !important;
    }

    .card-body {
        padding: 16px !important;
    }

    .card-body h3 {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }

    .card-body > p {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 12px !important;
    }

    .media-section {
        padding: 40px 15px 50px !important;
    }

    .media-subheading {
        margin-top: -15px !important;
        margin-bottom: 25px !important;
        font-size: 13.5px !important;
    }

    .media-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .media-card {
        border-radius: 14px !important;
    }

    .media-thumb {
        height: 170px !important;
    }

    .media-info {
        padding: 16px !important;
    }

    .media-info h4 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .media-info p {
        font-size: 12.5px !important;
    }

    .newsletter-section {
        padding: 50px 15px !important;
    }

    .newsletter-section h2 {
        font-size: 24px !important;
    }

    .newsletter-section > .newsletter-inner > p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 14px;
        box-shadow: none !important;
        gap: 10px !important;
        background: transparent !important;
    }

    .newsletter-form input {
        border-radius: 50px !important;
        padding: 12px 20px !important;
        width: 100% !important;
    }

    .newsletter-form .btn {
        border-radius: 50px !important;
        padding: 12px 20px !important;
        width: 100% !important;
    }

    /* Modal responsiveness */
    .article-modal-overlay {
        padding: 10px !important;
    }

    .article-modal-box {
        max-height: 95vh !important;
        border-radius: 16px !important;
    }

    .modal-hero {
        height: 200px !important;
    }

    .modal-hero i {
        font-size: 40px !important;
    }

    .modal-main-content {
        padding: 20px !important;
    }

    .modal-main-content h2 {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }

    .modal-main-content p {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 12px !important;
    }
}

/* ===== CARD DATE BAR ===== */
.card-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    background: rgba(0, 188, 212, 0.07);
    border-bottom: 1px solid rgba(0, 188, 212, 0.12);
    font-size: 12.5px;
    color: var(--text-secondary, #94a3b8);
    gap: 10px;
}

.card-date-bar span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-date-bar i {
    color: #00bcd4;
    font-size: 11px;
}

/* ===== CARD LOAD ANIMATION ===== */
.blog-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ARTICLE MODAL ===== */
.article-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.article-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.article-modal-box {
    background: var(--card-bg, #0e1a2e);
    border: 1px solid rgba(0, 188, 212, 0.18);
    border-radius: 20px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.93) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.article-modal-overlay.open .article-modal-box {
    transform: scale(1) translateY(0);
}

/* Modal hero banner */
.modal-hero {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-hero i {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Close button */
.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.7);
}

/* Modal content */
.modal-content-wrap {
    padding: 28px 36px 36px;
}

.modal-top-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.modal-category {
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.modal-date,
.modal-read {
    font-size: 13px;
    color: var(--text-secondary, #94a3b8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-date i,
.modal-read i {
    color: #00bcd4;
    font-size: 12px;
}

.modal-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary, #e2e8f0);
    line-height: 1.35;
    margin-bottom: 22px;
}

.modal-body p {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 18px;
}

.modal-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #00bcd4;
    margin: 26px 0 10px;
    padding-left: 12px;
    border-left: 3px solid #00bcd4;
}

.modal-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid rgba(0, 188, 212, 0.14);
    color: var(--text-secondary, #94a3b8);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

.modal-back-btn {
    font-size: 13px;
    padding: 9px 20px;
    border-radius: 50px;
}

@media (max-width: 600px) {
    .modal-content-wrap {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .article-modal-box {
        max-height: 95vh;
    }
}

/* ===== DYNAMIC MEDIA GALLERY FOLDER STYLES ===== */
.folder-card {
    cursor: pointer;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.folder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.folder-thumb {
    height: 200px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #0e1e38;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.folder-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 68, 0.45);
    transition: background 0.3s ease;
}

.folder-card:hover .folder-thumb::before {
    background: rgba(10, 31, 68, 0.3);
}

.folder-icon-overlay {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #00bcd4;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.folder-card:hover .folder-icon-overlay {
    transform: scale(1.15) rotate(5deg);
}

.folder-info {
    padding: 22px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.folder-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0a1f44;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.folder-card:hover .folder-info h3 {
    color: #00bcd4;
}

.folder-info span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== DYNAMIC MEDIA GALLERY ITEM CARD STYLES ===== */
.media-item-card {
    cursor: pointer;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.media-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}

.media-item-thumb {
    height: 180px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #0e1e38;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 68, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.media-item-card:hover .media-item-overlay {
    opacity: 1;
}

.media-item-overlay i {
    font-size: 32px;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.media-item-card:hover .media-item-overlay i {
    transform: scale(1.1);
}

.media-item-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #0a1f44;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.media-item-badge.video-badge {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.media-item-info {
    padding: 14px 16px;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.media-item-info h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: #0a1f44;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    transition: color 0.3s ease;
}

.media-item-card:hover .media-item-info h4 {
    color: #00bcd4;
}

/* ===== DYNAMIC LIGHTBOX STYLES ===== */
.media-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 21, 40, 0.96);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.media-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.media-lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-content img, 
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10005;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08) rotate(90deg);
}

.lightbox-caption {
    margin-top: 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 80%;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #00bcd4;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}