/*
Theme Name:   RCS Studio Theme
Theme URI:    https://www.raldincasidar.studio
Author:       Raldin Casidar Studio
Author URI:   https://www.raldincasidar.studio
Description:  Custom theme for RCS Studio based on a static design.
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         custom-theme, responsive-layout
Text Domain:  rcsstudio
*/

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

html,
body {
  background-color: #0a0a0a;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: rgb(10 10 10 / 78%);
  backdrop-filter: blur(15px);
  padding: 15px;
}

.navbar-spacer {
  height: 85px;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding */
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1001; /* Ensure logo is above mobile menu */
}

.navbar .logo:active {
  transform: scale(0.9);
}

.navbar img {
  height: 50px;
}

.navbar .nav-links ul {
  display: flex;
  list-style: none;
  gap: 30px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.navbar .nav-links ul li a {
  color: #fff;
  text-decoration: none;
  font-family: "Space Mono";
  font-weight: bold;
  font-size: 18px;
  position: relative;
}

.navbar .nav-links ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background-color: #fff;
  bottom: -5px;
  left: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar .nav-links ul li a:hover::after {
  width: 100%;
}

.hamburger-menu {
  display: none; /* Hidden by default */
  cursor: pointer;
  z-index: 1001; /* Ensure hamburger is above mobile menu */
}

.hamburger-menu .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.4s;
}

.hero {
  padding: 100px 15px;
  color: #fff;
  position: relative;
}

/* 2. Create the video container */
.hero-video-background {
  position: relative;
  width: 100%;
  height: auto;
  margin: 89px 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  pointer-events: none;
}

/* 3. Style the iframe to cover the entire container */
.hero-video-background iframe {
  /* This combination ensures the video covers the area without distortion */
  position: absolute;
  width: 100%; /* Fills the viewport width */
  height: calc(100% + 120px);
  top: -60px;
  pointer-events: none; /* Prevents user from clicking on the video */
}

/* 4. (Recommended) Add a dark overlay for text readability */
.hero-video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 5. Ensure the hero content (text, button) sits on top */
.hero .container {
  position: relative;
  z-index: 2; /* Sits on top of the video and the overlay */
}


.hero h1 {
  font-size: 60px;
  margin: 20px 0;
  max-width: 80%;
}

.hero h1 span {
  color: #ffd500;
}

.hero .cta {
  display: inline-block;
  padding: 20px 40px;
  font-size: 20px;
  background-color: #fff;
  color: #0a0a0a;
  text-decoration: none;
  border-radius: 99999px;
  margin-top: 20px;
  font-family: "Space Mono";
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero .cta:hover {
  background-color: #ffd500;
  color: #0a0a0a;
}

.hero .cta:active {
  background-color: #ff8c00;
  transform: scale(0.9);
}

.hero img {
  margin-top: 100px;
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  max-height: 700px;
}

.section {
  padding: 100px 15px;
}

.section h3 {
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
  font-family: "Space Mono";
}

.section h2 {
  font-size: 50px;
  margin-bottom: 20px;
  color: white;
  max-width: 70%;
}

.section h2 span {
  color: #ffd500;
}

.services-group {
  margin: 20px 0;
}

.services-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 15px;
  color: white;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border-bottom: 2px solid white;
}

.services-item::before {
  background-color: rgba(255, 255, 255, 0.096);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: "";
  width: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.services-item:hover::before {
  width: 100%;
}

.services-item span {
  font-size: 25px;
  font-weight: bold;
  color: white;
  font-family: "Space Mono";
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.services-item svg {
  width: 45px;
  z-index: 1;
  flex-shrink: 0; /* Prevents SVG from shrinking */
}

.services-item:hover svg {
  color: #ffd500 !important;
}

.partners-group {
  margin: 50px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
}

.partner-items {
  width: 25%;
  padding: 20px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.partner-items img {
  max-height: 80px;
  max-width: 200px;
  object-fit: contain;
}

.partner-items svg {
  height: 30px;
  color: #ffd500;
  margin-right: 10px;
}

.partner-items span {
  color: white;
  font-size: 18px;
  font-family: "Space Mono";
}

.add-yours {
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.add-yours:hover {
  background-color: #ffd500 !important;
}

.add-yours:hover svg {
  color: #0a0a0a !important;
}

.add-yours:hover span {
  color: #0a0a0a !important;
}

.works-group {
  margin: 50px 0;
  margin-bottom: 0;
}

.works-group > div {
  display: block;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 15px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
}

.works-group > div img.wp-post-image {
  width: 100% !important;
  border-radius: 20px;
  height: auto !important;
}

.works-group > div .content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 15px;
}

.works-group > div .content .context {
  color: white;
}

.works-group > div .content .context h3 {
  font-family: "Poppins";
  font-size: 20px;
  margin-bottom: 20px;
  color: white;
  text-decoration: none;
}

.works-group > div .content .context h3 a {
  color: white;
  text-decoration: none;
}

.works-group > div .content .context p {
  font-size: 15px;
  opacity: 0.7;
  font-family: "Space Mono";
}

.works-group > div .content .category {
  color: white;
}

.works-group > div .content .category h3 {
  font-size: 16px;
}

.works-group > div .content .category p {
  font-size: 15px;
  opacity: 0.7;
  font-family: "Space Mono";
}

.works-group > div .content .context {
  width: calc(60% - 15px);
}

.works-group > div .content .category {
  width: 30%;
}

.works-group > div:hover {
  background-color: rgba(255, 255, 255, 0.068);
}

.slider-buttons {
  text-align: right;
  margin-top: 0px;
}

.slider-buttons a {
  color: white;
  text-decoration: none;
  display: inline-block;
  padding: 15px;
  vertical-align: middle;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-buttons a:hover {
  background-color: #ffd500;
  color: #0a0a0a;
  transform: scale(1.05);
}

.slider-buttons a svg {
  height: 30px;
  vertical-align: middle;
  width: 30px;
}

.tns-outer > button {
  display: none;
}

.form-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.form-section > div {
  width: calc(50% - 10px);
}

.form-section .context p {
  font-family: "Space Mono";
  color: white;
  opacity: 0.8;
  font-size: 20px;
}

.form-section .form-container {
  margin: 20px 0;
}

.form-section .form-container label {
  color: white;
  font-size: 16px;
  display: block;
  font-family: "Space Mono";
}

.form-section .form-container input,
.form-section .form-container textarea {
  width: 100%;
  padding: 15px 20px;
  margin: 5px 0;
  border-radius: 10px;
  border: none;
  background-color: rgba(255, 255, 255, 0.068);
  color: white;
  font-size: 18px;
  outline: 0;
}

.form-section .form-container textarea {
  min-height: 120px;
  resize: vertical;
}

.form-section .form-container button,
.form-section .form-container input[type="submit"] {
  padding: 15px 20px;
  border-radius: 10px;
  border: none;
  background-color: #fff;
  color: #0a0a0a;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  display: block;
  font-size: 20px;
  font-family: "Space Mono";
  font-weight: bold;
  border-radius: 999999px;
}

.form-section .form-container button:hover,
.form-section .form-container input[type="submit"]:hover {
  background-color: #ffd500;
  color: #0a0a0a;
}

.form-section .form-container button:active,
.form-section .form-container input[type="submit"]:active {
  background-color: #ff8c00;
  transform: scale(0.9);
}

.wpcf7-response-output {
  color :#ffd500;
  background-color: #ffd5001c;
  padding: 15px 15px !important;
  border-radius: 10px;
  border-color: #ffd500 !important;
  border: 0 !important;
}

.footer {
  background-color: black;
  border-top: 2px solid #4c4c4c;
  padding: 50px 0;
}

.footer .grid {
  display: flex;
  flex-wrap: wrap;
}

.footer .context {
  padding: 15px;
  width: 50%;
}
.footer .context .footer-logo {
  width: 200px;
}

.footer .context h3 {
  color: rgba(255, 255, 255, 0.452);
  font-size: 17px;
  font-family: "Space Mono";
  margin: 15px 0;
}

.footer .links {
  padding: 15px;
  width: 25%;
}

.footer .links h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 30px;
}

.footer .links ul {
  color: white;
  list-style-type: none;
}

.footer .links ul li {
  margin: 10px 0;
}

.footer .links ul a {
  color: white;
  text-decoration: none;
  font-family: "Space Mono";
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer .contacts {
  color: white;
  padding: 15px;
  width: 25%;
}

.footer .contacts p {
  color: white;
  margin: 10px 0;
  font-family: "Space Mono";
  font-weight: bold;
}

.footer .contacts p span {
  color: #ffd500;
}

.footer .contacts p.address {
  margin-top: 50px;
  opacity: 0.75;
}

/* --------------- Styles for Services Page --------------- */

.hero-subtitle {
  font-family: "Space Mono";
  font-size: 20px;
  color: white;
  opacity: 0.8;
  max-width: 60%;
  margin-top: 20px;
}

.detailed-services-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.08);
}

.service-icon {
  margin-bottom: 25px;
}

.service-icon svg {
  height: 45px;
  width: 45px;
  color: #ffd500;
}

.service-card h4 {
  font-size: 24px;
  color: white;
  margin-bottom: 15px;
}

.service-card p {
  font-family: "Space Mono";
  color: white;
  opacity: 0.7;
  line-height: 1.7;
}

.process-section {
  background-color: #000;
}

.process-timeline {
  margin-top: 60px;
  position: relative;
  border-left: 2px solid #ffd500;
  padding-left: 50px;
}

.process-step {
  margin-bottom: 50px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.process-number {
  font-size: 60px;
  font-weight: bold;
  color: #ffd500;
  font-family: "Space Mono";
  line-height: 1;
}

.process-content h4 {
  font-size: 28px;
  color: white;
  margin-bottom: 10px;
}

.process-content p {
  font-family: "Space Mono";
  color: white;
  opacity: 0.7;
  line-height: 1.7;
  max-width: 80%;
}

/* --------------- Styles for Works Page --------------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.portfolio-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.08);
}

.portfolio-item-link {
  text-decoration: none !important;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.portfolio-content {
  padding: 30px;
}

.portfolio-content h4 {
  font-size: 24px;
  color: white;
  margin-bottom: 15px;
}

.portfolio-content p {
  font-family: "Space Mono";
  color: white;
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 20px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-tags span {
  background-color: rgba(255, 213, 0, 0.1);
  color: #ffd500;
  padding: 5px 15px;
  border-radius: 99px;
  font-size: 14px;
  font-family: "Space Mono";
  font-weight: bold;
}

.cta.full-width {
  width: 100%;
  text-align: center;
}

/* --------------- New Styles for About Page --------------- */

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-content p {
  font-family: "Space Mono";
  color: white;
  opacity: 0.7;
  line-height: 1.8;
  margin-bottom: 20px;
}

.story-image img {
  width: 100%;
  border-radius: 20px;
}

.values-section {
  background-color: #000;
}

.values-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.value-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px;
  border-radius: 20px;
}

.value-card h4 {
  color: #ffd500;
  font-size: 24px;
  margin-bottom: 15px;
}

.value-card p {
  font-family: "Space Mono";
  color: white;
  opacity: 0.7;
  line-height: 1.7;
}

.team-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member-card {
  text-align: center;
}

.team-member-card img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
}

.team-member-card h4 {
  font-size: 22px;
  color: white;
}

.team-member-card .role {
  font-family: "Space Mono";
  color: #ffd500;
  margin-top: 5px;
}

/* --------------- Responsive Design --------------- */

/* -- Tablet View -- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 48px;
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 18px;
  }

  .section h2 {
    font-size: 40px;
    max-width: 100%;
  }

  .nav-links {
    display: none; /* Hide desktop nav */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex; /* Show mobile nav when active */
  }

  .nav-links ul {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .nav-links ul li a {
    font-size: 24px;
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu */
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .partner-items {
    width: 50%;
    height: 250px;
  }

  .works-group > div .content .context,
  .works-group > div .content .category {
    width: 100%;
  }

  .form-section {
    flex-direction: column;
  }

  .form-section > div {
    width: 100%;
  }

  .footer .grid {
    flex-direction: column;
    gap: 30px;
  }

  .footer .context,
  .footer .links,
  .footer .contacts {
    width: 100%;
    text-align: center;
  }

  .footer .context .footer-logo {
    margin: 0 auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .story-section {
    grid-template-columns: 1fr;
  }
}

/* -- Mobile View -- */
@media (max-width: 767px) {
  .hero {
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section {
    padding: 60px 15px;
  }

  .section h2 {
    font-size: 32px;
  }

  .services-item span {
    font-size: 20px;
  }

  .services-item svg {
    width: 35px;
  }

  .partner-items {
    width: 100%;
    height: 200px;
  }

  .detailed-services-group {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    padding-left: 20px;
  }

  .process-number {
    font-size: 48px;
  }

  .process-content h4 {
    font-size: 22px;
  }

  .process-content p {
    max-width: 100%;
  }
}

/* --------------- New Styles for Blog Page --------------- */

.featured-post {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.featured-post-image img {
  width: 100%;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.featured-post-image a:hover img {
  transform: scale(1.03);
}

.post-category {
  font-family: "Space Mono";
  color: #ffd500 !important;
  font-weight: bold;
  margin-bottom: 15px;
}

.post-category a {
  color: #ffd500;
  text-decoration: none;;
}

.featured-post-content h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.featured-post-content h3 a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-post-content h3 a:hover {
  color: #ffd500;
}

.post-excerpt, .post-excerpt, p, .post-excerpt ul li, .post-excerpt, ol li, .post-except i, .post-excerpt em {
  font-family: "Space Mono";
  color: #ffffffa6;
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-more {
  font-family: "Space Mono";
  font-weight: bold;
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.read-more:hover {
  color: #ffd500;
}

.blog-grid-section {
  background-color: #000;
}

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

.blog-post-card {
  background: #0a0a0a;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-10px);
}

.post-image-link img {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover;
  height: auto !important;
}

.post-card-content {
  padding: 30px;
}

.post-card-content h4 {
  font-size: 22px;
  margin-bottom: 15px;
}

.post-card-content h4 a {
  color: white;
  text-decoration: none;
}

/* --------------- New Styles for Single Blog Post --------------- */
.thin-container {
  max-width: 800px;
  margin: 0 auto;
}

.single-post-page .post-header {
  text-align: center;
  margin-bottom: 40px;
}

.single-post-page .post-header h1 {
  font-size: 52px;
  color: white;
  margin-top: 10px;
  margin-bottom: 20px;
}

.single-post-page .post-meta {
  font-family: "Space Mono";
  color: white;
  opacity: 0.7;
}

.post-meta .author {
  color: #ffd500;
}

.post-featured-image {
  margin-bottom: 50px;
}
.post-featured-image img {
  width: 100%;
  border-radius: 20px;
  height: auto;
}

.post-content {
  color: white;
  opacity: 0.9;
  font-size: 18px;
  line-height: 1.8;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content figure,
.post-content pre,
.post-content div {
  margin-bottom: 1.5em;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: white;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}
.post-content h2 {
  font-size: 36px;
}
.post-content h3 {
  font-size: 28px;
}
.post-content h4 {
  font-size: 22px;
}

.post-content a {
  color: #ffd500;
  text-decoration: none;
  border-bottom: 1px solid #ffd500;
  transition: background-color 0.3s;
}
.post-content a:hover {
  background-color: rgba(255, 213, 0, 0.1);
}

.post-content strong {
  font-weight: bold;
}
.post-content em {
  font-style: italic;
}
.post-content del {
  text-decoration: line-through;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
}
.post-content ul li,
.post-content ol li {
  margin-bottom: 0.5em;
}
.post-content ul ul,
.post-content ol ol {
  margin-top: 0.5em;
}

.post-content blockquote {
  border-left: 4px solid #ffd500;
  padding-left: 1.5em;
  font-style: italic;
  font-size: 20px;
  color: white;
}
.post-content blockquote p {
  margin-bottom: 0.5em;
}
.post-content blockquote cite {
  font-style: normal;
  font-size: 16px;
  font-weight: bold;
  opacity: 0.8;
}

.post-content hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 3em 0;
}

.post-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: "Space Mono", monospace;
  font-size: 0.9em;
}
.post-content pre {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5em;
  border-radius: 10px;
  overflow-x: auto;
  font-family: "Space Mono", monospace;
  font-size: 16px;
}
.post-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* WordPress Image Styles */
.post-content .wp-block-image {
  margin-bottom: 1.5em;
}
.post-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.post-content .wp-block-image figcaption {
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
  margin-top: 0.5em;
}
.post-content .alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
  max-width: 50%;
}
.post-content .alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1.5em;
  max-width: 50%;
}
.post-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* Clear floats after aligned images */
.post-content p:has(+ .alignleft),
.post-content p:has(+ .alignright) {
  overflow: hidden;
}

/* WordPress Gallery */
.post-content .wp-block-gallery {
  margin-bottom: 1.5em;
}
.post-content .blocks-gallery-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}
.post-content .blocks-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* WordPress Table */
.post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}
.post-content .wp-block-table th,
.post-content .wp-block-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75em;
  text-align: left;
}
.post-content .wp-block-table thead {
  background-color: rgba(255, 255, 255, 0.05);
}
.post-content .wp-block-table th {
  font-weight: bold;
}

/* WordPress Button */
.post-content .wp-block-buttons {
  display: flex;
  gap: 10px;
}
.post-content .wp-block-button__link {
  display: inline-block;
  padding: 15px 30px;
  font-size: 16px;
  background-color: #ffd500;
  color: #0a0a0a;
  text-decoration: none;
  border-radius: 999px;
  font-family: "Space Mono";
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-bottom: none;
}
.post-content .wp-block-button__link:hover {
  background-color: #fff;
}



.post-content p:has(img) {
  opacity: 1 !important;
}

.post-content a:has(img) {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.post-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px;
}

.post-content .wp-caption {
  max-width: 100%;
  text-align: center;
  opacity: 1 !important;
}

/* Post Footer */
.post-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.post-tags {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "Space Mono";
}
.post-tags span {
  font-weight: bold;
  color: white;
}
.post-tags a {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 5px;
  color: white;
  opacity: 0.8;
  border-bottom: none;
  font-size: 14px;
}
.post-tags a:hover {
  background: #ffd500;
  color: #0a0a0a;
}

/* --------------- Responsive Overrides for Blog --------------- */
@media (max-width: 992px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .featured-post-content h3 {
    font-size: 28px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .single-post-page .post-header h1 {
    font-size: 38px;
  }
  .post-content h2 {
    font-size: 30px;
  }
  .post-content h3 {
    font-size: 24px;
  }
  .post-content .alignleft,
  .post-content .alignright {
    float: none;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .post-content .blocks-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------- New Styles for Case Study Page --------------- */

.case-study-hero {
  padding-bottom: 50px;
}

.case-study-hero h3 {
  color: #ffd500;
  font-family: "Space Mono";
}

.case-study-hero h1 {
  font-size: 52px;
  color: white;
  max-width: 90%;
}

.project-hero-image {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 50px;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  background-color: #000;
  padding: 40px;
  border-radius: 20px;
}

.overview-item h4 {
  font-family: "Space Mono";
  color: #ffd500;
  font-size: 16px;
  margin-bottom: 10px;
}

.overview-item p {
  color: white;
  font-size: 18px;
}

.live-site-link {
  color: white;
  font-size: 18px;
  text-decoration: none;
  font-weight: bold;
}

.live-site-link:hover {
  color: #ffd500;
}

.case-study-content {
  padding-top: 50px;
  padding-bottom: 50px;
}

.case-study-section {
  margin-bottom: 60px;
}

.case-study-section h2 {
  font-size: 36px;
  color: white;
  max-width: 100%;
  margin-bottom: 30px;
}

.case-study-section p {
  color: white;
  opacity: 0.8;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.content-image {
  width: 100%;
  border-radius: 15px;
  margin-top: 30px;
}

.key-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
}

.feature-card h4 {
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 16px;
  margin-bottom: 0;
  opacity: 0.7;
}

.testimonial-block {
  margin-top: 40px;
  background-color: #000;
  padding: 40px;
  border-radius: 15px;
}

.testimonial-block blockquote {
  border-left: 4px solid #ffd500;
  padding-left: 1.5em;
  font-style: italic;
  font-size: 22px;
  color: white;
  margin: 0;
}

.testimonial-block cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-weight: bold;
  font-family: "Space Mono";
  color: white;
}

.project-gallery-section {
  background-color: #000;
}

.text-center {
  text-align: center;
}

.project-gallery-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-gallery-grid img {
  width: 100%;
  border-radius: 15px;
}

/* --------------- Responsive Overrides for Case Study --------------- */
@media (max-width: 992px) {
  .case-study-hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 767px) {
  .case-study-hero h1 {
    font-size: 34px;
  }
  .case-study-section h2 {
    font-size: 30px;
  }
  .testimonial-block blockquote {
    font-size: 18px;
  }
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------- Styles for 404 Page --------------- */

.error-404-section {
    /* This calculation ensures the content vertically centers in the available space */
    /* 100vh (full height) - navbar height - approximate footer height */
    min-height: calc(100vh - 85px - 250px);
    
    /* Flexbox properties to center the content perfectly */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Override max-width for centered headings and text to look right */
.error-404-section h1,
.error-404-section .hero-subtitle {
    max-width: 100%;
}

.error-404-section h1 {
    font-size: 60px; /* Or your preferred size */
    margin-bottom: 20px;
    color: white;
}

.error-404-section h1 span {
  color: #ffd500;
}

.error-404-section .hero-subtitle {
    margin-bottom: 30px;
}



.error-404-section a {
    display: inline-block;
    padding: 20px 40px;
    background-color: #ffd500;
    color: #0a0a0a;
    text-decoration: none;
    font-weight: bold;
    margin-top: 41px;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}