/* ============================
   BLOG LISTING GRID
   ============================ */
.blog-grid,
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ============================
   BLOG TILE — MATCH INSTRUCTOR TILE STYLE
   ============================ */
.blog-tile {
    width: 210px;
    height: 210px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e6e9ef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 18px 15px;
    box-sizing: border-box;
    transition: 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Make tile + all text unselectable */
.blog-tile,
.blog-tile * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Accent bar at top */
.blog-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background: linear-gradient(90deg, #ff0000, #cc0000);
}

/* Hover effect */
.blog-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* Blog Title inside tile */
.blog-tile h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 0;
    margin-top: 10px;
}

/* Subtitle */
.blog-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #0073e6;
    text-align: center;
    margin-top: 8px;
}

/* ============================
   LOAD MORE BUTTON
   ============================ */
.load-more-btn {
    display: block;
    margin: 30px auto;
    padding: 10px 20px;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.25s ease;
}

.load-more-btn:hover {
    background: #005bb5;
}

/* ============================
   PDF VIEWER
   ============================ */
.pdf-frame {
    width: 100%;
    height: 900px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================
   BLOG DETAIL PAGE
   ============================ */
.blog-detail-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Modern Blue Back Link */
.blog-back-btn {
    display: inline-block;
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 700;
    color: #0073e6;
    text-decoration: none;
    padding: 6px 0;
    transition: 0.25s ease;
}

.blog-back-btn:hover {
    color: #005bb5;
}

/* Blog Title */
#blog-title {
    user-select: none;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: left;
    cursor: pointer;
}

/* Blog Date */
.blog-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* Blog Content */
#blog-content p {
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 18px;
    color: #2a2a2a;
}

/* Images inside blog */
#blog-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Headings inside blog */
#blog-content h1,
#blog-content h2,
#blog-content h3 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 12px;
}

/* Lists inside blog */
#blog-content ul,
#blog-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

#blog-content li {
    font-size: 17px;
    margin-bottom: 8px;
    color: #2a2a2a;
}

.pdf-fallback {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.pdf-fallback a {
    color: #0073e6;
    font-weight: 600;
    text-decoration: none;
}

.pdf-fallback a:hover {
    text-decoration: underline;
}

/* Responsive YouTube Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 720px; /* Medium rectangle on desktop */
    margin: 30px auto; /* Center horizontally */
    aspect-ratio: 16 / 9; /* Perfect rectangle */
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Responsive iframe */
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
}

.youtube-frame {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.video-heading {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

/* ============================
   MOBILE RESPONSIVE
   ============================ */
@media (max-width: 700px) {
    .blog-tile {
        width: 170px;
        height: 170px;
    }

    #blog-title {
        font-size: 26px;
    }

    #blog-content p {
        font-size: 16px;
    }

    .pdf-frame {
        width: 100%;
        height: 80vh;
        border: 1px solid #ddd;
        border-radius: 10px;
        margin-top: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

/* ============================
   FILTER BAR — SEARCH + CATEGORY
   ============================ */
.blog-filters {
    max-width: 1100px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    flex-wrap: wrap;
}

.blog-filters input,
.blog-filters select {
    width: 100%;
    max-width: 360px;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #d0d4da;
    border-radius: 8px;
    background: #f9fafb;
    outline: none;
    transition: 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.blog-filters input:focus,
.blog-filters select:focus {
    border-color: #0073e6;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(0,115,230,0.12);
}

@media (max-width: 700px) {
    .blog-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 0 12px;
    }

    .blog-filters input,
    .blog-filters select {
        width: 100%;
        max-width: 100%;
        font-size: 15px;
        padding: 9px 12px;
    }
}
