/* =======================
   Root Variables
======================= */

:root {
  /* Fonts */
  --font-body: "Noto Sans", sans-serif;
  --font-heading: "Cormorant Garamond", serif;

  /* Colors */
  --color-bg: #f6f6f6;
  --color-text: #f0f0f0;
  --color-white: #ffffff;
  --color-gray-light: #d1d5db;
  --color-gray-soft: rgba(255, 255, 255, 0.6);
  --color-nav-bg: rgba(30, 41, 59, 0.95);

  /* Font Sizes */
  --fs-xs: 0.875rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-lg: 3rem;
  --fs-xl: 6rem;

  /* Letter Spacing */
  --ls-sm: 0px;
  --ls-md: 0.2em;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);

  /* Z-index */
  --z-header: 50;
  --z-menu: 99;
  --z-video: -1;

  /* Spacing */
  --sp-header-y: 2rem;
  --sp-header-x: 4rem;
  --sp-nav-item: 0.5rem 1rem;
}

.carousel-caption {
  bottom: 150px;
}
.carousel-caption h5 {
  font-family: var(--font-heading);
  font-size: 75px;
  font-weight: 400;
  line-height: 95%;
  color: #ffffff;
  opacity: 0.8;
}
.carousel-caption p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.2;
  color: #ffffff;
  opacity: 0.8;
  margin-top: 20px;
}

/* Adjusted styles for Owl Carousel integration */
.owl-carousel .item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: auto;
  height: 100px;
}
.logo-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  margin: 1rem;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}
.logo-item:hover {
  opacity: 1;
}



/* ≤992px */
@media (max-width: 992px) {
  .carousel-caption {
    bottom: 70px;
}
.carousel-caption h5{
    font-size: 50px;
}
}

/* ≤768px */
@media (max-width: 768px) {
 .carousel-caption {
    bottom: 40px;
}
.carousel-caption h5{
    font-size: 40px;
}
.carousel-caption p{
    font-size: 14px;
}
.carousel-item img{
      height: 500px;
}
}

/* ≤576px */
@media (max-width: 676px) {
  /* .carousel-caption {
    bottom: 20px;
} */
.carousel-caption h5{
    font-size: 30px;
}
.carousel-caption p{
    font-size: 14px;
}
.carousel-caption{
    text-align: center;
    display: flex;
    width: 100%;
    padding: 20px;
    flex-direction: column;
    justify-content: center; 
    left: 0;
    right: 0;
}
}

@media (max-width: 576px) {
  /* .carousel-caption {
    bottom: 10px;
} */
.carousel-caption h5{
    font-size: 28px;
}
.carousel-caption p{
    font-size: 14px;
}
}
@media (max-width: 476px) {
  /* .carousel-caption {
    bottom: 0px;
} */
.carousel-caption h5{
    font-size: 28px;
}
.carousel-caption p{
    font-size: 14px;
    margin-top: 25px;
}
}
@media (max-width: 430px) {
  /* .carousel-caption {
    bottom: 0px;
} */
.carousel-caption h5{
    font-size: 28px;
}
.carousel-caption p{
    font-size: 14px;
    margin-top: 25px;
}
}






/* Blogs section*/

.blog-section1 {
  display: flex;
  justify-content: center;
  align-items: center;
    /* margin-top: 10%; */
  width: 100%;
  height: 100%;
}
.blog-section{
  display: flex;
  justify-content: center;
  align-items: center;
    /* margin-top: 10%; */
  width: 100%;
  height: 100%;
}
.page-container {
  width: 90%;
  height: 100%;
}

.header-section {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.header-subtitle {
  font-size: 20px;
  font-weight: 400;
  font-family: var(--font-body);
  text-transform: uppercase;
  color: #353b3c;
  margin-bottom: 0.5rem;
}

.header-title {
  font-size: 50px !important;
  font-weight: 400;
  color: #353b3c;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0px;
}

@media (min-width: 768px) {
  .header-title {
    font-size: 1.875rem;
  }
}

.main-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .main-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-card {
  background-color: white;
  /* border-radius: 0.5rem; */
  overflow: hidden;
  /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
  transition: transform 0.3s ease-in-out;
}

.news-card:hover {
  transform: translateY(-0.3125rem);
}

.relative-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.overlay-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  font-family: var(--font-body);
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 20px;
  color: #fff;
  z-index: 2;
}

.card-content {
  padding: 1.5rem;
}

.card-meta {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.meta-source {
  margin-right: 0.5rem;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  opacity: 0.5;
}

.meta-divider {
  font-size: 1.25rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  opacity: 0.5;
}

.meta-date {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  opacity: 0.5;
}

.card-description {
  color: #353b3c;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 14px;
}

.button2 {
  width: 240px;
  height: 70px;
  background-color: black;
  color: white;
  /* border: 2px solid var(--color-bg); */
  padding: 0.75rem 2rem;
  border-radius: 0;
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
  z-index: 9999;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.button2:hover {
  background-color: #eac9c1;
  color: black;
}

.button2:hover span img {
  filter: grayscale(100%) brightness(0); /* pink → black */
  transition: filter 0.3s ease;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  column-gap: 1rem;
}

.pagination-link {
  color: #4b5563;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.pagination-link:hover {
  color: #1f2937;
}

.pagination-link.current {
  font-weight: 600;
  color: white;
  background-color: #333333; /* dark grey like your screenshot */
  border-radius: 4px;        /* small square look */
  display: inline-block;
  min-width: 2rem;
  text-align: center;
}

/* =========================
   Responsive Design Fixes
========================= */

/* Tablets (<= 991px) */
@media (max-width: 991px) {
  .header-title {
    font-size: 36px !important;
  }

  .header-subtitle {
    font-size: 18px;
  }

  .main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .overlay-text {
    font-size: 13px;
    padding: 15px;
  }

  .card-description {
    font-size: 13px;
  }

  .button2 {
    width: 200px;
    height: 60px;
    font-size: 11px;
    padding: 10px;
  }
  .card-meta{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .meta-divider{
    display: none;
  }
}

/* Mobile (<= 576px) */
@media (max-width: 576px) {
  .header-title {
    font-size: 26px !important;
    line-height: 1.2;
  }

  .header-subtitle {
    font-size: 16px;
  }

  .main-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .overlay-text {
    font-size: 12px;
    line-height: 1.3;
    padding: 10px;
  }

  .card-meta {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
  }

  .meta-divider {
    display: none; /* cleaner on mobile */
  }

  .card-description {
    font-size: 12px;
    line-height: 1.4;
  }

  .button2 {
    width: 100%;
    height: 55px;
    font-size: 11px;
    padding: 10px;
  }

  .pagination {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .meta-divider{
    display: flex;
  }
}




/* =======================
       Works Section
    ======================= */
.works-section {
  width: 100vw;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5%;
}
.works-section-wrapper {
  width: 100%;
  height: 50vh;
  background-image: url("../images/works-bg.png");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.works-section-inner {
  width: 50%;
  gap: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.works-section-inner-heading h3 {
  font-size: 70px;
  font-weight: 700;
  font-family: var(--font-heading);
}
.works-section-inner-paragraph {
  display: flex;
  justify-content: center;
  align-items: center;
 
}
.works-section-inner-paragraph p {
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font-body);
  /* text-transform: uppercase; */
  line-height: 95%;
  width: 83%;
}
.works-section-inner-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 1;
}
.works-section-inner-buttons button {
  width: 240px;
  height: 70px;
  background-color: transparent;
  color: white;
  border: 2px solid var(--color-bg);
  padding: 0.75rem 2rem;
  border-radius: 0;
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
  z-index: 9999;
  opacity: 1;
}
.works-section-inner-buttons button:hover {
  background-color: white;
  color: black;
}

/* =======================
   RESPONSIVE FIXES (Works Section)
   ======================= */

/* ≤1366px screens */
@media (max-width: 1366px) {
  .works-section-inner-heading h3 {
    font-size: 60px;
  }
  .works-section-inner-paragraph p {
    font-size: 15px;
    width: 90%;
  }
  .works-section-inner-buttons button {
    width: 220px;
    height: 65px;
  }
}

/* ≤1200px (large tablets, small laptops) */
@media (max-width: 1200px) {
  .works-section-inner {
    width: 70%;
    gap: 40px;
    flex-direction: column;
    text-align: center;
  }
  .works-section-inner-heading h3 {
    font-size: 50px;
  }
  .works-section-inner-paragraph p {
    font-size: 15px;
    width: 100%;
  }
}

/* ≤992px (tablets) */
@media (max-width: 992px) {
  .works-section-wrapper {
    height: auto;
    padding: 60px 20px;
  }
  .works-section-inner {
    width: 85%;
    gap: 30px;
  }
  .works-section-inner-heading h3 {
    font-size: 42px;
  }
  .works-section-inner-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .works-section-inner-buttons button {
    width: 200px;
    height: 60px;
  }
}

/* ≤768px (small tablets / phablets) */
@media (max-width: 768px) {
  .works-section-inner {
    width: 100%;
    gap: 25px;
  }
  .works-section-inner-heading h3 {
    font-size: 36px;
  }
  .works-section-inner-paragraph p {
    font-size: 14px;
  }
}

/* ≤576px (mobile phones) */
@media (max-width: 576px) {
  .works-section-wrapper {
    padding: 40px 15px;
  }
  .works-section-inner {
    width: 100%;
    gap: 20px;
  }
  .works-section-inner-heading h3 {
    font-size: 28px;
  }
  .works-section-inner-paragraph p {
    font-size: 13px;
    line-height: 1.4;
  }
  .works-section-inner-buttons button {
    width: 180px;
    height: 55px;
    font-size: 14px;
  }
}
