/* ==========================================================================
   Apollo Computer Education - Custom Blog Stylesheet (style.css)
   ========================================================================== */

/* Blog Page layout and grid */
.blog-section {
  padding: 80px 0;
  background-color: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* Premium Blog Card styling */
.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 79, 68, 0.06);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 79, 68, 0.12);
}

.blog-card-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.blog-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.08);
}

.blog-card-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--theme-2);
  color: var(--body);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(255, 167, 41, 0.3);
}

.blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-meta i {
  color: var(--theme);
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0;
  color: var(--body);
  transition: color 0.3s ease;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--theme-2);
}

.blog-card-description {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.blog-read-more-btn {
  color: var(--theme);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.blog-read-more-btn:hover {
  gap: 10px;
  color: var(--theme-2);
}

/* ==========================================================================
   Blog Details Page Styling
   ========================================================================== */
.blog-details-section {
  padding: 80px 0;
  background-color: #fcfdfe;
}

.blog-details-wrapper {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 79, 68, 0.05);
  margin-bottom: 40px;
}

.blog-details-main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.blog-details-header {
  margin-bottom: 30px;
}

.blog-details-cat {
  display: inline-block;
  background: rgba(0, 79, 68, 0.1);
  color: var(--theme);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.blog-details-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--body);
  line-height: 1.3;
  margin-bottom: 20px;
}

.blog-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  color: #666;
}

.blog-details-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-details-meta i {
  color: var(--theme-2);
}

.blog-details-body {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.blog-details-body p {
  margin-bottom: 20px;
}

.blog-details-body h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--body);
  margin-top: 35px;
  margin-bottom: 15px;
}

.blog-details-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--body);
  margin-top: 35px;
  margin-bottom: 15px;
}

.blog-details-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: #3c1a5b;
  margin-top: 35px;
  margin-bottom: 15px;
}

.blog-details-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--body);
  margin-top: 30px;
  margin-bottom: 12px;
}

.blog-details-body h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--body);
  margin-top: 25px;
  margin-bottom: 10px;
}

/* Bullet list icon customization */
.blog-details-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
}

.blog-details-body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Service/Course page list item transitions */
.program-details-wrapper ul li,
.details-content ul li,
.bt-about-content ul li {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-details-body ul li:hover,
.program-details-wrapper ul li:hover,
.details-content ul li:hover,
.bt-about-content ul li:hover {
  transform: translateX(6px);
}

.blog-details-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background-color: var(--theme-2);
  border-radius: 50%;
}

/* Double Images Row */
.blog-double-images {
  display: flex;
  gap: 24px;
  margin: 35px 0;
}

.blog-details-body .blog-double-images img,
.blog-double-images img {
  flex: 1 !important;
  width: 50% !important;
  height: 250px !important;
  min-height: 250px !important;
  max-height: 250px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
  cursor: pointer;
}

.blog-double-images img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .blog-double-images {
    flex-direction: column;
    gap: 16px;
  }
  .blog-details-body .blog-double-images img,
  .blog-double-images img {
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    border-radius: 16px !important;
  }
}

/* Blog & Course Detail Main Images Zoom */
.blog-details-main-img,
.details-image img {
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
  cursor: pointer;
}

.blog-details-main-img:hover,
.details-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


.blog-blockquote {
  background: var(--bg);
  border-left: 5px solid var(--theme);
  padding: 25px 30px;
  border-radius: 0 12px 12px 0;
  margin: 30px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--body);
}

.blog-blockquote p {
  margin-bottom: 0;
}

.blog-blockquote-author {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--theme);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sidebar Styling */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 992px) {
  .blog-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    align-self: flex-start;
  }
}

.blog-widget {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 79, 68, 0.05);
}

.blog-widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--body);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.blog-widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--theme-2);
  border-radius: 3px;
}

.blog-widget-search {
  position: relative;
}

.blog-widget-search input {
  width: 100%;
  padding: 12px 20px;
  padding-right: 50px;
  border: 1px solid #ddd;
  border-radius: 30px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.blog-widget-search input:focus {
  border-color: var(--theme);
}

.blog-widget-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  background: var(--theme);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.blog-widget-search button:hover {
  background: var(--theme-2);
}

.blog-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-categories-list li {
  margin-bottom: 12px;
}

.blog-categories-list li:last-child {
  margin-bottom: 0;
}

.blog-categories-list a {
  display: flex;
  justify-content: space-between;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.blog-categories-list a:hover {
  color: var(--theme-2);
  padding-left: 5px;
}

.blog-recent-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.blog-recent-post-item:last-child {
  margin-bottom: 0;
}

.blog-recent-post-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-recent-post-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-recent-post-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}

.blog-recent-post-title a {
  color: var(--body);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-recent-post-title a:hover {
  color: var(--theme-2);
}

.blog-recent-post-date {
  font-size: 12px;
  color: #888;
}

/* Share post footer styling */
.blog-details-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-details-tags {
  display: flex;
  gap: 8px;
  align-items: center;
}

.blog-details-tags span {
  font-weight: 700;
  font-size: 14px;
  color: var(--body);
}

.blog-tag-btn {
  background: var(--bg);
  color: var(--body);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.blog-tag-btn:hover {
  background: var(--theme);
  color: var(--white);
}

.blog-details-share {
  display: flex;
  gap: 10px;
  align-items: center;
}

.blog-details-share span {
  font-weight: 700;
  font-size: 14px;
  color: var(--body);
}

.blog-share-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.blog-share-social-btn:hover {
  transform: translateY(-3px);
  color: var(--white);
}

.blog-share-social-btn.facebook { background: #3b5998; }
.blog-share-social-btn.twitter { background: #1da1f2; }
.blog-share-social-btn.linkedin { background: #0077b5; }
.blog-share-social-btn.whatsapp { background: #25d366; }

/* Responsive adjustments */
@media (max-width: 991px) {
  .blog-details-wrapper {
    padding: 25px !important;
  }
  .blog-details-title {
    font-size: 28px !important;
  }
}

@media (max-width: 575px) {
  .blog-details-wrapper {
    padding: 15px !important;
  }
  .blog-details-title {
    font-size: 22px !important;
  }
  .blog-details-main-img {
    height: 220px !important;
    object-fit: cover !important;
    margin-bottom: 20px !important;
    border-radius: 8px !important;
  }
}

/* Breadcrumb Banner Text Color Adjustment */
.breadcrumb-wrapper h1,
.breadcrumb-wrapper h2,
.breadcrumb-wrapper h3,
.breadcrumb-wrapper h4,
.breadcrumb-wrapper .breadcrumb-items li,
.breadcrumb-wrapper .breadcrumb-items li a {
  color: var(--white) !important;
}

/* Custom Premium FAQ Accordion Styles */
.blog-faq-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid rgba(0, 79, 68, 0.08);
}

.blog-faq-title {
  margin-bottom: 25px;
  font-size: 26px;
  font-weight: 700;
  color: var(--body);
}

.custom-accordion .accordion-item {
  border: 1px solid rgba(0, 79, 68, 0.08);
  border-radius: 12px !important;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.custom-accordion .accordion-item:hover {
  box-shadow: 0 8px 25px rgba(0, 79, 68, 0.06);
  border-color: rgba(0, 79, 68, 0.2);
}

.custom-accordion .accordion-button {
  font-weight: 700;
  font-size: 16px;
  color: var(--body);
  background: var(--white);
  padding: 18px 24px;
  box-shadow: none !important;
  border: none;
  transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: rgba(0, 79, 68, 0.04);
  color: #3c1a5b;
}

.custom-accordion .accordion-button::after {
  background-size: 14px;
  transition: transform 0.3s ease;
}

.custom-accordion .accordion-body {
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  background: var(--white);
  border-top: 1px solid rgba(0, 79, 68, 0.08);
  text-align: justify;
}

/* Premium Table Styling and Hover Effects */
.blog-details-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 79, 68, 0.08);
}

.blog-details-body table th {
  background-color: var(--theme);
  color: var(--white) !important;
  font-weight: 700;
  text-align: left;
  padding: 14px 20px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-details-body table td {
  padding: 14px 20px;
  font-size: 15px;
  color: var(--body);
  border-bottom: 1px solid rgba(0, 79, 68, 0.05);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-details-body table tbody tr {
  transition: all 0.2s ease;
}

/* Hover effects for rows */
.blog-details-body table tbody tr:hover {
  background-color: rgba(0, 79, 68, 0.04);
  cursor: pointer;
}

.blog-details-body table tbody tr:hover td {
  color: #3c1a5b;
}

.blog-details-body table tbody tr:last-child td {
  border-bottom: none;
}
