body {
  font-family: "Open Sans", Arial, sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

.blog-container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.blog-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

.blog-featured-image, .blog-image {
  width: 100%;
  margin: 20px 0;
  border-radius: 8px;
}

.blog-content h2 {
  margin-top: 30px;
  font-size: 1.5rem;
  color: #444;
}

.blog-content p {
  line-height: 1.7;
  color: #555;
  margin: 15px 0;
}

/* ---------- PDF Section ---------- */
.blog-pdf-container {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.blog-pdf-container .pdf-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-pdf-container .pdf-title i {
    color: #e74c3c;
    font-size: 24px;
}

/* Responsive iframe wrapper */
.pdf-frame-wrapper {
    position: relative;
    width: 100%;
    padding-top: 65%; /* Aspect ratio (16:10) */
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.pdf-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Actions below PDF */
.pdf-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #3498db;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.2);
}

.pdf-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.pdf-btn i {
    font-size: 16px;
}

.download-btn {
    background: #27ae60;
    box-shadow: 0 3px 8px rgba(39, 174, 96, 0.2);
}

.download-btn:hover {
    background: #1e8449;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-pdf-container {
        padding: 15px;
    }

    .blog-pdf-container .pdf-title {
        font-size: 18px;
    }

    .pdf-actions {
        flex-direction: column;
        gap: 10px;
    }

    .pdf-btn {
        width: 100%;
        justify-content: center;
    }
}

/*video i frame */
/* Modern Video Container */
.blog-video-container {
    margin: 50px auto;
    background: linear-gradient(135deg, #ffffff, #f3f6fa);
    border-radius: 16px;
    padding: 25px;
    max-width: 1000px; /* wider */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.blog-video-container:hover {
    transform: translateY(-4px);
}

/* Video Title */
.video-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.video-title i {
    color: #e63946;
    font-size: 22px;
}

/* Responsive Video Wrapper */
.video-frame-wrapper {
    position: relative;
    padding-bottom: 60%; /* slightly taller than 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-width: 90%; /* keep centered */
    margin: 0 auto;
}

/* Responsive Iframe */
.video-frame-wrapper iframe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .blog-video-container {
        padding: 15px;
    }

    .video-title {
        font-size: 1.2rem;
    }

    .video-frame-wrapper {
        max-width: 100%;
        padding-bottom: 65%; /* a bit taller for mobile */
    }
}


