:root {
  --light-beige: #d4c9b0;
  --light-beige-soft: #f9f7f2;
  --dark-brown: #331515;
  --burgundy: #5a0c1f; /* More vibrant tone */
  --gray: #6e6a61;
  --brown: #8f654a;
  --white: #ffffff;
}

/* ===== Base Styles ===== */
body {
  font-family: "Open Sans", sans-serif;
  color: var(--dark-brown);
  background-color: var(--light-beige-soft);
  line-height: 1.6;
  margin: 0; /* Reset margin */
}

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--brown);
}

/* ===== Site Branding ===== */
.site-branding {
  margin: 15px auto 20px; /* Daha küçük margin değerleri */
  max-width: 700px;
  text-align: center;
  padding: 0 20px; /* Add some padding for responsiveness */
}

.site-branding .site-name {
  font: 300 40px "Fira Sans", sans-serif;
  color: var(--dark-brown);
  letter-spacing: -1px;
  text-transform: lowercase;
  position: relative;
  z-index: 5;
}

.site-branding span {
  display: inline-block;
  margin: 0 2px 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  color: var(--burgundy);
}

.site-branding .tag-line {
  margin: 5px 0 0;
  font: 500 10px "Fira Sans", sans-serif;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.site-branding .tag-line:before,
.site-branding .tag-line:after {
  display: inline-block;
  width: 40px;
  height: 1px;
  margin: 0 10px 0;
  content: "";
  vertical-align: middle;
  background: var(--brown);
}

/* ===== Header Styles ===== */
.site-header {
  position: relative;
  margin: 0 auto 0px !important;
  background-image: url("./imgs/header/header_2.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  text-align: center;
  display: block;
  width: 100%;
  max-width: 2000px;
  border-bottom: 1px solid var(--light-beige);
  height: 480px;
  margin: 10px;
  box-shadow: 0 21px 10px rgba(0, 0, 0, 0.05);
  border-radius: 0 0 10px 10px; /* Add rounded corners */
}

/* Mobil Header Düzenlemeleri */
@media screen and (max-width: 768px) {
  .site-header {
    height: 250px;
    margin-bottom: 10px !important;
    background-size: cover;
  }

  .site-branding {
    margin: 10px auto 15px;
  }

  .site-branding .site-name {
    font-size: 30px;
  }

  .cpg-nav {
    padding: 0.3rem 0;
  }
}

/* Çok küçük ekranlar için ek ayar */
@media screen and (max-width: 480px) {
  .site-header {
    height: 200px;
  }

  .site-branding .site-name {
    font-size: 24px;
  }
}
.site-footer-image {
  height: 400px;
  width: 100%;
  max-width: 2000px;
  overflow: hidden;
  text-align: center;
}

.site-footer-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* ===== Navigation ===== */
.cpg-nav {
  background-color: var(--dark-brown);
  padding: 0.5rem 0;
  text-align: center;
  border-radius: 10px 10px 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 10px;
  position: relative;
}

.admin_menu {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin_menu li {
  display: inline-block;
}

.admin_menu li a {
  font-family: "Inter", sans-serif;
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 500;
  color: #f1f1f1;
  text-decoration: none;
  position: relative;
  padding: 8px 10px;
  transition: color 0.2s ease;
  display: block;
  border-radius: 4px;
}

.admin_menu li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #ffcc00;
  transition: width 0.3s ease;
}

.admin_menu li a:hover {
  color: #ffcc00;
}

.admin_menu li a:hover::after {
  width: 100%;
}

/* Hamburger menu styling */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

/* Media queries for responsive nav */
@media screen and (max-width: 1024px) {
  .admin_menu {
    gap: 10px;
  }

  .admin_menu li a {
    padding: 6px 8px;
  }
}

@media screen and (max-width: 768px) {
  .cpg-nav {
    padding: 0.5rem 0;
    position: relative;
  }

  .hamburger-menu {
    display: block;
  }

  /* Hamburger animation */
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .menu-container {
    text-align: left;
    padding: 10px;
  }

  .admin_menu {
    position: absolute;
    flex-direction: column;
    background-color: var(--dark-brown);
    width: 100%;
    top: 100%;
    left: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding: 0;
    border-radius: 0 0 8px 8px;
  }

  .admin_menu.active {
    max-height: 500px;
    padding: 10px 0;
  }

  .admin_menu li {
    display: block;
    width: 100%;
    text-align: left;
  }

  .admin_menu li a {
    padding: 12px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .admin_menu li:last-child a {
    border-bottom: none;
  }

  .admin_menu li a::after {
    display: none;
  }

  .admin_menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* ===== Social Links ===== */
.soicialblock {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.sociallinks {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.sociallinks:hover {
  background-color: var(--brown);
  transform: translateY(-3px);
}

.sociallinks i {
  color: var(--white);
  font-size: 1.2rem;
}

/* ===== Welcome Block - Responsive Improvements ===== */
.welcome-block {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: var(--dark-brown);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center; /* Center text for better mobile readability */
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  .welcome-block {
    padding: 1.5rem;
    margin: 1rem auto;
    font-size: 1rem; /* Slightly smaller font for mobile */
    line-height: 1.6; /* Adjusted line height */
  }
}

@media screen and (max-width: 480px) {
  .welcome-block {
    padding: 1rem;
    margin: 0.5rem auto;
    font-size: 0.95rem; /* Even smaller font for very small devices */
    line-height: 1.5;
    border-radius: 6px; /* Slightly smaller border radius */
  }

  .welcome-block p {
    margin-bottom: 0.8rem; /* Reduce paragraph spacing */
  }
}

/* ===== Main Content Wrapper ===== */
.main-content-wrapper {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

/* ===== Content Area ===== */
#primary.content-area {
  flex: 3;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== Side Area ===== */
#secondary.side-area {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.side {
  margin-bottom: 20px;
}

.side-title {
  font: 700 19px/20px "Source Serif Pro", serif;
  position: relative;
  margin: 20px 0;
  padding: 0 0 10px 0;
  color: #212121;
  border-bottom: 1px solid #dedede;
}

.side-content {
  text-align: justify;
}

.side-content.side-cpg a {
  display: block;
  padding: 8px 10px;
  margin: 5px 0;
  color: #4d0b19;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: #fff;
  border: 1px solid #ddd;
}

.side-content.side-cpg a:hover {
  background-color: #4d0b19;
  color: #fff;
  border-color: #4d0b19;
}

/* ===== Responsive Styles ===== */
@media screen and (max-width: 1024px) {
  .main-content-wrapper {
    padding: 15px;
    gap: 15px;
  }

  #primary.content-area,
  #secondary.side-area {
    padding: 15px;
  }
}

@media screen and (max-width: 768px) {
  .main-content-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  #primary.content-area,
  #secondary.side-area {
    width: 100%;
    flex: none;
  }

  .side-title {
    font-size: 17px;
    margin: 15px 0;
  }

  .side-content {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .main-content-wrapper {
    padding: 10px;
    gap: 10px;
  }

  #primary.content-area,
  #secondary.side-area {
    padding: 15px 10px;
    border-radius: 6px;
  }

  .side {
    margin-bottom: 15px;
  }

  .side-title {
    font-size: 16px;
    margin: 10px 0 8px;
    padding-bottom: 8px;
  }

  .side-content.side-cpg a {
    padding: 6px 8px;
    font-size: 0.9rem;
  }
}

/* ===== Footer ===== */
.footer-block {
  background-color: var(--light-beige);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  clear: both; /* Float sorununu çözmek için eklendi */
}

.site-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  color: var(--dark-brown);
  font-size: 0.9rem;
}

/* ===== Coppermine Gallery Styles ===== */

/* Tables
-------------------------------------------------------------- */

.maintable {
  margin: 0 auto -1px auto;
  padding: 25px;
  background: #fff;
}

.maintable:first-child {
  border-top: 0;
}

.tableb {
  padding: 5px 10px;
}

.tableb_alternate {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

.tablef {
  padding: 10px;
  background: #e1e1e1;
}

/* Statlinks
-------------------------------------------------------------- */
.tableh1,
.statlink h2,
form {
  margin: 14px 0 !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2) !important;
  letter-spacing: 0.03em !important;
  color: #2d2d2d !important;
  text-transform: capitalize !important; /* Optional: Makes Each First Letter Capital */
}
/* Optional hover effect for interactive elements */
.statlink h2:hover {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
  color: #222;
}
.tableh1 {
  margin: 0 0;
  padding: 0;
  font-size: 24px;
  color: #1a1a1a;
  line-height: 120%;
  letter-spacing: -1px;
}

.tableh1 a {
  color: #1a1a1a;
}

.tableh1 a:hover,
.tableh1 a:focus,
.tableh1 .statlink a:hover,
.tableh1 .statlink a:focus {
  color: #331515;
}

.tableh1-small {
  font-size: 14px;
  letter-spacing: 0;
  display: none;
}

.stats {
  padding: 5px;
  background: #f3f3f3;
  font-weight: 700;
  font-size: 10px;
  color: #6e6e6e;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stats strong {
  font-weight: 700;
}

.statlink {
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0;
  color: #595959;
}

.statlink a,
.statlink a:hover,
.statlink a:focus {
  letter-spacing: -1px;
  color: #212121;
}

.statlink h2 {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -1px;
  color: #5d5d5d;
}

td .tableh1:last-child {
  font-size: 15px;
  font-weight: 400;
}

/* Categories
-------------------------------------------------------------- */

.catrow_noalb,
.catrow {
  padding: 10px 5px;
  background: #fff;
  font-style: italic;
  border-bottom: 1px solid #e1e1e1;
}

.catlink {
  display: block;
  font-style: normal;
  font-weight: 700;
}

.catlink a {
  color: #5a0c1f;
}

.catlink a:hover,
.catlink a:focus {
  color: #5a0c1f;
}

.catlink a:before {
  margin-right: 10px;
  content: "\f115";
  font-family: fontawesome;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  color: #2e2e2e;
}

/* Albums
-------------------------------------------------------------- */

.tableh2 {
  padding: 10px 10px;
  background: #efefef;
  color: #5d5d5d;
  font-weight: 700;
  line-height: 22px;
}

.alblink {
  color: #5b5b5b;
  font-weight: 700;
}

.alblink a,
.alblink a:hover,
.alblink a:focus {
  color: #5b5b5b;
}

.album_stat {
  margin: 5px 0;
  font-size: 85%;
}

.tableb p {
  margin: 0;
  padding: 5px 0 0 0;
  line-height: 1.5;
}

p.album_stat {
  padding: 5px 0 0 0;
}

/* Thumbnails
-------------------------------------------------------------- */

.thumbnails {
  padding: 10px 0;
}

.thumbnails img,
.thumbnails br {
  display: none;
}
.thumbnails a img {
  display: block;
}

.thumb_filename {
  display: block;
  font-size: 80%;
  line-height: 1.5;
}

.thumb_title {
  color: #3b3b3b;
  font-weight: 700;
}

.thumb_title,
.thumb_caption {
  display: block;
  margin: 6px 1px 0;
  padding: 0;
  width: auto;
  border: 0;
  line-height: 140%;
}

.thumb_caption_ctime {
  margin-top: -1px;
  font-family: "Playfair Display", sans-serif;
  font-size: 10px;
  font-weight: 700 !important;
  color: #1a1a1a;
  letter-spacing: 0px !important;
}

.thumb_resolution,
.thumb_title_views {
  margin: 0;
  display: inline;
  position: relative;
  padding: 5px 6px;
  font-size: 10px;
  color: #fff;
  text-transform: uppercase;
}

.thumb_resolution {
  background: #f02424;
}

.thumb_title_views {
  background: #8f654a;
  font-weight: 400;
}

.thumb_caption {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
}

.thumb_num_comments {
  font-size: 85%;
  font-weight: normal;
  font-style: italic;
  line-height: 1.5;
  display: block;
  padding: 2px;
}

/* Sort order
-------------------------------------------------------------- */

.sortorder_cell {
  font: 11px/1 "Fira Sans", sans-serif;
  letter-spacing: 0;
  color: #ccc;
}

.sortorder_options {
  white-space: nowrap;
}

/* About Page */
.about-page-content {
  padding: 60px 20px;
  background-color: #fdfdfd;
  font-family: "Open Sans", sans-serif;
  color: #333;
}

.about-introduction {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-introduction h1 {
  font-size: 32px;
  color: #222;
  margin-bottom: 20px;
}

.about-introduction p {
  font-size: 18px;
  margin-bottom: 20px;
}

.about-introduction p:last-of-type {
  margin-bottom: 40px;
}

/*Projects*/

.projects-section {
  padding: 50px 20px;
  text-align: center;
}

.projects-section h1 {
  font-size: 36px;
  color: #212121;
  margin-bottom: 20px;
}

.upcoming-projects {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.upcoming-projects li {
  background-color: #fff;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

h3 {
  font-size: 25px;
  color: #212121;
  margin-top: 40px;
}
.filmography {
  display: flex;
  flex-direction: column;
  align-items: center; /* Yatayda ortalamak için */
  justify-content: center; /* Dikeyde ortalamak için */
  width: 80%; /* Ekranın %80'ini kullan */
  max-width: 1000px; /* Maksimum genişlik */
  margin: 0 auto; /* Ortada yerleştirme */
}
.filmography h3 {
  font-size: 28px;
  color: #212121;
  margin-top: 40px;
  text-align: left;
}

.italic-heading {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 36px;
  color: #4d0b19;
  margin: 0 0 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8f654a;
  text-align: center;
}

@media only screen and (max-width: 481px), only screen and (max-width: 481px) {
  .tableh1 {
    padding: 5px 7px !important;
    font-size: 19px !important;
  }

  .thumbnail {
    max-width: 8vw !important;
    height: auto;
  }

  .statlink {
    line-height: 21px !important;
  }

  .catrow_noalb {
    padding: 5px 7px !important;
  }

  .catrow {
    padding: 5px 7px !important;
  }

  .catlink {
    font-size: 14px !important;
    line-height: 21px !important;
  }

  .catrow_noalb table,
  .catrow table {
    font-size: 15px !important;
    line-height: 21px !important;
  }

  .tableh2 {
    padding: 5px !important;
  }

  .alblink {
    font-size: 15px !important;
    line-height: 20px !important;
  }

  .tableb p {
    font-size: 10px !important;
    line-height: 1.5 !important;
  }

  .sortorder_cell {
    display: none;
  }
}
/* ===== NEWS SECTION & RELATED PHOTOS ===== */
.news-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  color: var(--burgundy);
  margin-bottom: 10px;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: var(--brown);
  margin: 0 auto;
}

.news-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-date {
  background: var(--burgundy);
  color: white;
  padding: 15px;
  min-width: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date .day {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.news-date .month {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 5px 0;
}

.news-date .year {
  font-size: 12px;
  opacity: 0.8;
}

.news-content {
  padding: 20px;
  flex: 1;
}

.news-source {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brown);
  margin-bottom: 8px;
}

.news-text {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 15px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray);
}

.news-social,
.news-tag {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-link {
  color: var(--burgundy);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: var(--brown);
  text-decoration: underline;
}

/* RELATED PHOTOS STYLES */
.news-photos {
  margin: 0;
  padding: 15px 20px 20px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}

.photos-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  color: var(--burgundy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.photos-title:before {
  content: "\f03e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 8px;
  font-size: 14px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}
.photo-thumb {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.photo-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Coppermine Thumbnail Overrides */
.photo-grid .thumbnail {
  border-radius: 4px !important;
  overflow: hidden !important;
  transition: transform 0.3s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.photo-grid .thumbnail:hover {
  transform: scale(1.05) !important;
  z-index: 2;
}

.photo-grid .thumbnail img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block !important;
}

.view-full-album {
  text-align: center;
  margin-top: 10px;
}

.view-more-button {
  display: inline-block;
  padding: 8px 16px;
  background: var(--light-beige);
  color: var(--dark-brown);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-more-button:hover {
  background: var(--burgundy);
  color: white;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  .news-date {
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
  }

  .news-date .day,
  .news-date .month,
  .news-date .year {
    margin: 0 5px;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .news-photos {
    padding: 12px 15px 15px;
  }
}

@media (max-width: 480px) {
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-link {
    align-self: flex-end;
  }

  .photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
  }
  .photos-title {
    font-size: 15px;
  }

  .view-more-button {
    padding: 6px 12px;
    font-size: 13px;
  }

  .news-content {
    padding: 15px;
  }
}
/* Responsive Adjustments */
@media (max-width: 200px) {
  .video-container {
    padding-bottom: 75%; /* 4:3 for smaller screens */
  }
}
   /* ================= BIRTHDAY WISHES STYLES ================= */
      .birthday-wishes-section {
        background: linear-gradient(135deg, #fdf2f2 0%, #fff9f9 100%);
        padding: 30px 0;
        margin: 30px 0;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      }

      .birthday-wishes-slider {
        position: relative;
        max-width: 800px;
        margin: 0 auto;
        min-height: 300px; /* Changed from fixed height to min-height */
        overflow: hidden;
      }

      .birthday-wishes-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 25px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.6s ease;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .birthday-wishes-card.active {
        opacity: 1;
        transform: translateX(0);
        z-index: 10;
        position: relative; /* Changed to allow height adjustment */
        min-height: 300px;
      }

      .birthday-wishes-card:before {
        content: """;
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 60px;
        color: #f8d7da;
        font-family: Georgia, serif;
        line-height: 1;
      }

      .birthday-wishes-user {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        color: #d63384;
      }

      .birthday-wishes-user i {
        font-size: 24px;
        margin-right: 10px;
      }

      .birthday-wishes-text {
        font-size: 18px;
        line-height: 1.6;
        color: #333;
        font-style: italic;
        margin: 0;
        padding: 0 20px;
        width:700px;
        max-height: 265px; /* Limit height and add scroll if needed */
        overflow-y: auto; /* Add scroll for overflow */
        scrollbar-width: thin; /* For Firefox */
        scrollbar-color: #d63384 #f8d7da; /* For Firefox */
      }

      /* Custom scrollbar for Webkit browsers */
      .birthday-wishes-text::-webkit-scrollbar {
        width: 6px;
      }

      .birthday-wishes-text::-webkit-scrollbar-track {
        background: #f8d7da;
        border-radius: 10px;
      }

      .birthday-wishes-text::-webkit-scrollbar-thumb {
        background-color: #d63384;
        border-radius: 10px;
      }

      .birthday-wishes-username {
        font-weight: 600;
        font-family: 'Josefin Sans', sans-serif;
      }

      .birthday-wishes-controls {
        text-align: center;
        margin-top: 20px;
      }

      .birthday-wishes-dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #ddd;
        margin: 0 5px;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .birthday-wishes-dot.active {
        background: #d63384;
        transform: scale(1.2);
      }

      .birthday-wishes-header {
        text-align: center;
        margin-bottom: 30px;
      }

      .birthday-wishes-title {
        font-family: 'Playfair Display', serif;
        font-size: 32px;
        color: #d63384;
        margin-bottom: 10px;
        position: relative;
        display: inline-block;
      }

      .birthday-wishes-title:after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(to right, #d63384, #f8bbd0);
      }

      /* Animation for new cards */
      @keyframes birthday-wishes-fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
      }

      .birthday-wishes-card {
        animation: birthday-wishes-fadeIn 0.8s ease forwards;
      }
      
      @media screen and (max-width: 768px) {
  /* Slider’ın aktif karta göre otomatik yükseklik alması */
  .birthday-wishes-slider {
    overflow: hidden;        /* Taşanı gizlemeye devam */
    height: auto !important; /* İçeriğe uyumlu yükselsin */
    min-height: 0 !important;
  }

  /* Kartın mutlak konumunu bozmadan, yüksekliği içeriğe uyumlu */
  .birthday-wishes-card {
    min-height: auto !important;
    padding: 15px !important;
  }

  /* Sadece metni serbest bırakıyoruz */
  .birthday-wishes-text {
    width: auto !important;      /* 700px yerine %100’e izin ver */
    max-height: none !important; /* artık sınır yok */
    overflow: visible !important;/* tam akış */
    padding: 0 10px !important;  /* kenar boşluğu */
    box-sizing: border-box;
  }
}
.birthday-wishes-text img {
    /* Ekranın %100’ünü geçmesin, yüksekliği otomatik */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto 0; /* Ortala ve biraz üst boşluk bırak */
  }
  
  /* ===== Responsive Video for News Section ===== */
.news-video .video-container {
  position: relative;
  width: 100%;
  height: 0;
  /* Yaygın 16:9 en-boy oranı için */
  padding-bottom: 56.25%;
  overflow: hidden;
}

.news-video .video-container iframe,
.news-video .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.news-video .video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 20px 0;
}

.news-video .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.responsive-image {
  max-width: 100%;  /* Resmin container'dan daha büyük olmamasını sağlar */
  height: auto;     /* Oranları korur */
  display: block;   /* Altındaki boşluğu önler */
  object-fit: cover; /* Resmi kırpmadan kaplamasını sağlar */
}

.responsive-image-link {
  display: inline-block; /* Linkin boyutunu resme göre ayarlar */
  max-width: 100%;      /* Linkin de çok büyük olmasını engeller */
}

@media screen and (max-width: 768px) {
  .site-header {
    height: 250px;
    background-size: cover;
  }
  
  .welcome-block {
    padding: 15px;
    margin: 15px;
  }
  
  .news-item {
    flex-direction: column;
  }
  
  .news-date {
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
  }
  
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .site-branding .site-name {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .news-content {
    padding: 15px;
  }
  
  .photo-grid {
    grid-template-columns: 1fr;
  }
}
