* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  
body {
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #fff;
    
}
  
  
/* ====== Header Styles ====== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #c1a164;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: clamp(70px, 8vw, 100px);
    padding: 0 clamp(15px, 2vw, 30px);
    transition: height 0.3s ease;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 20px;
}

/* ====== Branding Styles ====== */
.branding {
    display: flex;
    align-items: center;
    height: 100%;
    position: absolute;
    left: 5px;
    transition: all 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.church-logo {
    height: 5vw;
    width: 5vw;
    min-height: 50px;
    min-width: 50px;
    border-radius: 50%;
    border: 0.15vw solid rgb(36, 84, 218);
    cursor: pointer;
    animation: border-color-animation 3s infinite;
    margin-right: 1.5vw;
    object-fit: cover;
    transition: all 0.3s ease;
}

.church-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.church-name h1 {
    margin: 0;
    line-height: 1.2;
    font-size: clamp(18px, 2vw, 24px);
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-left: -15px;
}

.church-name h1 a {
    color: #111;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    font-weight: 700;
    display: block;
}

.church-name p {
    margin: 0.2vw 0 0 0;
    font-size: clamp(10px, 1vw, 14px);
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-left: -15px;
}

.church-name p a {
    color: #111;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.church-name p a:hover {
    color: #444;
}

/* ====== Navigation Styles ====== */
.main-navigation {
    position: absolute;
    left: 66%;
    transform: translateX(-50%);
    width: auto;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
    gap: 1.8vw;
}

.nav-menu > li {
    position: relative;
    padding: 0.7vw 0;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-menu > li:hover {
    transform: translateY(-2px);
}

.nav-menu > li > a {
    text-decoration: none;
    color: #111;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(12px, 1vw, 16px);
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Main Navigation Link Animation */
.nav-menu > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.3vw;
    width: 0;
    height: 0.2vw;
    background-color: #fff;
    transform: translateX(-50%);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-menu > li > a:hover::after {
    width: 50%;
}

/* ====== Submenu Styles ====== */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #c1a164;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 0 0 5px 5px;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.submenu li {
    padding: 0.7vw 1vw;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.has-submenu:hover .submenu li {
    opacity: 1;
    transform: translateY(0);
}

/* Submenu Link Animation */
.submenu li a {
    color: #111;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9em;
    white-space: nowrap;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5vw 0;
}

.submenu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.submenu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Staggered Submenu Animations */
.submenu li:nth-child(1) { transition-delay: 0.1s; }
.submenu li:nth-child(2) { transition-delay: 0.2s; }
.submenu li:nth-child(3) { transition-delay: 0.3s; }
.submenu li:nth-child(4) { transition-delay: 0.4s; }
.submenu li:nth-child(5) { transition-delay: 0.5s; }

.arrow {
    display: inline-block;
    margin-left: 5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.8em;
}

.has-submenu:hover .arrow {
    transform: rotate(180deg) scale(1.2);
}

/* ====== IELC Logo Styles ====== */
.denomination-logo {
    position: absolute;
    right: 5px;
    transition: all 0.3s ease;
}

.lutheran-logo {
    height: 5vw;
    width: 5vw;
    min-height: 50px;
    min-width: 50px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.3s ease;
}

.lutheran-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ====== Hamburger Menu Styles ====== */
.hamburger-menu {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 101;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #111;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamburger-menu:hover span {
    background-color: #444;
    transform: scaleX(1.1);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

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

/* ====== Mobile Menu Styles ====== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c1a164;
    z-index: 99;
    padding-top: 120px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .nav-menu {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.mobile-menu .nav-menu > li {
    padding: 0;
    height: auto;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.mobile-menu .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
}

.mobile-menu .has-submenu > a::after {
    content: "+";
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.mobile-menu .has-submenu.active > a::after {
    content: "-";
}

.mobile-menu .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding-left: 15px;
    background-color: rgba(0,0,0,0.05);
    margin: 5px -10px 0 -10px;
    border-radius: 5px;
    box-shadow: none;
}

.mobile-menu .has-submenu.active .submenu {
    max-height: 1000px;
    padding: 10px 15px;
}

.mobile-menu .submenu li {
    padding: 8px 0;
    opacity: 1 !important;
    transform: none !important;
}

.mobile-menu .submenu li a {
    display: block;
    padding: 8px 0;
    font-size: 16px;
    color: #111;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu .nav-menu > li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu .nav-menu > li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu .nav-menu > li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu .nav-menu > li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu .nav-menu > li:nth-child(5) { animation-delay: 0.5s; }

/* ====== Animations ====== */
@keyframes border-color-animation {
    0% { border-color: rgb(36, 84, 218); }
    33% { border-color: rgb(255, 0, 0); }
    66% { border-color: rgb(0, 255, 0); }
    100% { border-color: rgb(36, 84, 218); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


@media (max-width: 992px) {
    body.menu-open {
        overflow: hidden;
    }

    header {
        height: 100px;
        padding: 15px 20px;
    }
    
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }
    
    .branding {
        position: static;
        margin: 0;
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: auto;
        height: auto;
    }
    
    .logo-link {
        flex-direction: row;
        height: auto;
    }
    
    .church-logo {
        height: 60px;
        width: 60px;
        margin-right: 15px;
    }
    
    .church-name {
        align-items: flex-start;
    }
    
    .church-name h1 {
        white-space: normal;
        line-height: 1.2;
        font-size: 20px;
    }
    
    .church-name p {
        margin-top: 5px;
        text-align: left;
        font-size: 14px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .denomination-logo {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
        position: static;
        transform: none;
        width: 35px;
        height: 28px;
    }
    
    .hamburger-menu span {
        height: 4px;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    header {
        height: 90px;
    }
    
    .church-logo {
        height: 50px;
        width: 50px;
    }
    
    .church-name h1 {
        font-size: 18px;
         
    }
    
    .church-name p {
        font-size: 13px;
    }
    
    .hamburger-menu {
        width: 32px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px;
    }
    
    header {
        height: 100px;
        padding: 15px;
    }
    
    .church-logo {
        height: 60px;
        width: 60px;
        margin-right: 15px;
    }
    
    .church-name h1 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .church-name p {
        font-size: 14px;
        margin-top: 5px;
    }
    
    .hamburger-menu {
        width: 36px;
        height: 28px;
        right: 15px;
    }
    
    .hamburger-menu span {
        height: 4px;
    }
    
    .mobile-menu {
        padding-top: 120px;
    }
    
    .mobile-menu .nav-menu > li > a {
        font-size: 16px;
        padding: 10px 0;
    }
    
    .mobile-menu .submenu li a {
        font-size: 14px;
    }
}

@media (min-width: 990px) and (max-width: 1350px) {
  /* Adjust header height for mid-sized screens */
  header {
    height: clamp(80px, 7vw, 90px);
  }

  /* Center-align navigation with reduced gap */
  .main-navigation {
    left: 68%; /* Pull nav slightly left */
    transform: translateX(-50%);
  }

  /* Reduce gaps between nav items */
  .nav-menu {
    gap: 1.2vw;
  }

  /* Scale down logos */
  .church-logo,
  .lutheran-logo {
    height: 4.5vw;
    width: 4.5vw;
    min-height: 45px;
    min-width: 45px;
  }

  /* Adjust church name sizing */
  .church-name h1 {
    font-size: clamp(16px, 1.8vw, 22px);
  }

  .church-name p {
    font-size: clamp(9px, 0.9vw, 13px);
  }

  /* Compress submenu widths */
  .submenu {
    min-width: 160px;
  }

  /* Reduce padding in submenu items */
  .submenu li {
    padding: 0.5vw 0.8vw;
  }
}


.carousel-container {
    position: relative;
    top: 8vw;
    height: 40vw;
    width: 100%;
    margin: auto;
    overflow: hidden;
}
.carousel {
    display: flex;
    width: 100%;
    height: 100%;
}
.carousel img {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    transition: transform 9s ease-in-out;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}
.prev {
    left: 10px;
}
.next {
    right: 10px;
}

/* Ultra-wide screens (21:9) */
@media (min-aspect-ratio: 21/9) {
    .carousel-container {
        height: 30vw;
        top: 5vw;
    }
}

/* Standard Desktop (16:9) */
@media (min-width: 1200px) {
    .carousel-container {
        height: 49vw;
        top: 5vw;
    }
    .carousel img {
        transition: transform 7s ease-in-out; 
    }
}

/* Small Desktop/Tablet Landscape (4:3) */
@media (min-width: 992px) and (max-width: 1199px) {
    .carousel-container {
        height: 45vw;
    }
}

/* Tablet Portrait (3:4) */
@media (min-width: 768px) and (max-width: 991px) {
    .carousel-container {
        height: 50vw;
        top:8vw;
    }
    .prev, .next {
        padding: 8px; /* Smaller buttons */
    }
}

/* Large Mobile (1:1) */
@media (min-width: 576px) and (max-width: 767px) {
    .carousel-container {
        height: 45vw;
        top: 8vw;
    }
    .carousel img {
        transition: transform 5s ease-in-out; /* Faster transition */
    }
    .prev, .next {
        padding: 6px;
        font-size: 14px;
    }
}

/* Small Mobile (9:16) */
@media (max-width: 575px) {
    .carousel-container {
        height: 85vw;
        top: 10vw;
    }
    .prev, .next {
        padding: 5px;
        font-size: 12px;
    }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) {
    .carousel-container {
        height: 60vw; /* Taller in portrait */
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-width: 991px) {
    .carousel-container {
        height: 45vw;
    }
}

/* Square-ish screens (1:1) */
@media (max-aspect-ratio: 1/1) {
    .carousel-container {
        height: 100vw;
    }
}
  
  

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10vw;
    font-family: Cinzel;
}

.content-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    position: relative;
    z-index: 2;
    background-color: #eae5e5;
    padding: 1vw;
    margin-bottom: 2vw;
    border-radius: 10px;
}

.content-section img {
    width: 40%;
    height: 30%;
    object-fit: cover;
}

.text-box {
    width: 40%;
    text-align: center;
    font-size: 1.2rem;
}

.text-box p {
    font-family: Bodoni Moda;
    padding-right: 3vw;
}

/* Medium Desktops (992px - 1199px) */
@media (max-width: 1199px) {
    .content-section {
        width: 85%;
    }
    .text-box p {
        font-size: 1.1rem;
    }
}

/* Tablets and Below (≤ 991px) */
@media (max-width: 991px) {
    .content-wrapper {
        margin-top: 12vw;
    }

    .content-section {
        width: 90%;
        flex-direction: column !important; /* override any inline reverse */
        padding: 2vw;
    }

    .content-section img {
        width: 80%;
        height: auto;
        margin-bottom: 3vw;
        order: 1;
    }

    .content-section .text-box {
        width: 80%;
        order: 2;
    }

    .text-box p,
    .text-box h2 {
        padding-right: 0;
        font-size: 1rem;
        text-align: center;
    }
}

/* Large Phones (≤ 767px) */
@media (max-width: 767px) {
    .content-wrapper {
        margin-top: 15vw;
    }

    .content-section {
        width: 95%;
        padding: 3vw;
    }

    .content-section img,
    .content-section .text-box {
        width: 100%;
    }

    .text-box p,
    .text-box h2 {
        font-size: 1rem;
    }
}

/* Small Phones (≤ 575px) */
@media (max-width: 575px) {
    .content-wrapper {
        margin-top: 20vw;
    }

    .content-section {
        width: 98%;
        padding: 4vw;
    }

    .text-box p {
        font-size: 0.9rem;
    }
}

/* Extra Small Phones (≤ 479px) */
@media (max-width: 479px) {
    .content-wrapper {
        margin-top: 25vw;
    }

    .content-section {
        width: 100%;
    }

    .text-box p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Tall Screens */
@media (max-aspect-ratio: 1/1) {
    .content-wrapper {
        margin-top: 10vh;
    }
    .content-section {
        width: 90%;
    }
}

/* Very Wide Screens */
@media (min-aspect-ratio: 2/1) {
    .content-section img {
        height: 25vw;
    }
}

/* Mobile Landscape */
@media (max-width: 991px) and (orientation: landscape) {
    .content-section {
        flex-direction: column !important;
    }

    .content-section img,
    .content-section .text-box {
        width: 90%;
    }

    .content-section img {
        margin-bottom: 2vw;
    }
}




.slider-container {
    position: relative;
    width: 100%;
    height: 80vh;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Cinzel;
}
.slider-heading {
    position: relative;
    width: 100%;
    text-align: center;
    color: black;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    transform: translateY(0px);
    height: 3rem;
}
.slider-heading.active {
    opacity: 1;
    transform: translateY(0);
}
.slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide {
    position: absolute;
    width: 60%;
    height: 80%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    transform: scale(0.85);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
}
.slide.slide-left {
    transform: translateX(-110%) scale(0.85);
    opacity: 0.7;
    z-index: 1;
}
.slide.slide-right {
    transform: translateX(110%) scale(0.85);
    opacity: 0.7;
    z-index: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 2;
}
.nav-buttons button {
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-buttons button:hover {
    background: white;
    transform: scale(1.1);
}

/* Default styles (mobile first) */
.slider-container {
    height: 60vh;
}

.slider-heading {
    font-size: 1.8rem;
    height: 2.5rem;
}

.slider {
    height: 50vh;
}

.slide {
    width: 80%;
    height: 85%;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .slider-container {
        height: 65vh;
    }
    .slider {
        height: 55vh;
    }
    .slide {
        width: 75%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .slider-container {
        height: 70vh;
    }
    .slider-heading {
        font-size: 2rem;
    }
    .slider {
        height: 60vh;
    }
    .slide {
        width: 70%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .slider-container {
        height: 75vh;
    }
    .slider-heading {
        font-size: 2.3rem;
    }
    .slider {
        height: 65vh;
    }
    .slide {
        width: 65%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .slider-container {
        height: 80vh;
    }
    .slider-heading {
        font-size: 2.5rem;
    }
    .slider {
        height: 70vh;
    }
    .slide {
        width: 60%;
    }
}

/* Portrait orientation */
@media (orientation: portrait) {
    .slider-container {
        height: 50vh;
    }
    .slider {
        height: 40vh;
    }
    .slide {
        width: 85%;
    }
}

/* Landscape orientation */
@media (orientation: landscape) {
    .slider-container {
        height: 80vh;
    }
    .slider {
        height: 70vh;
    }
}

/* Very small screens (phones in portrait) */
@media (max-width: 400px) and (orientation: portrait) {
    .slider-container {
        height: 50vh;
    }
    .slider-heading {
        font-size: 1.5rem;
    }
    .slider {
        height: 40vh;
    }
    .slide {
        width: 90%;
    }
    .nav-buttons button {
        padding: 10px;
    }
}

/* Tall screens (like some tablets in portrait) */
@media (min-height: 1000px) {
    .slider-container {
        height: 60vh;
    }
    .slider {
        height: 50vh;
    }
}

/* Short screens (like some landscape phones) */
@media (max-height: 500px) {
    .slider-container {
        height: 90vh;
    }
    .slider {
        height: 80vh;
    }
    .slide {
        width: 70%;
    }
}

/* Ultra-wide screens (21:9 ratio) */
@media (min-aspect-ratio: 21/9) {
    .slide {
        width: 50%;
    }
}

/* Square-ish screens (1:1 ratio) */
@media (max-aspect-ratio: 1/1) {
    .slider-container {
        height: 70vh;
    }
    .slider {
        height: 60vh;
    }
    .slide {
        width: 90%;
        height: 90%;
    }
}

  
/* Default styles */
.container {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin: 20px auto;
    width: 90%;
    font-family: Cinzel;
}
.column {
    width: 23%;
    text-align: center;
    background-color: #eae5e5;
    position: relative;
    border-radius: 10px;
}
.column img {
    width: 100%;
    height: 13vw;
    padding: 0.5vw;
    transition: opacity 0.3s ease;
}
.column .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 13vw;
    opacity: 0;
    transition: opacity 1s ease;
}

.column:hover .hover-image {
    opacity: 1;
}
.column:hover img {
    opacity: 0;
}
.column p {
    font-size: 16px;
    line-height: 1.5;
    padding: 10px;
    margin-top: 1vw;
    font-family: Bodoni Moda;
}
 
/* Tablet Landscape (4:3) and Small Desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        width: 95%;
    }
    .column {
        width: 24%;
    }
    .column img,
    .column .hover-image {
        height: 15vw;
    }
    .column p {
        font-size: 15px;
        padding: 8px;
    }
}

/* Tablet Portrait (3:4) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        width: 98%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .column {
        width: 48%;
    }
    .column img,
    .column .hover-image {
        height: 20vw;
    }
    .column p {
        font-size: 15px;
    }
}

/* Large Mobile (1:1) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        width: 100%;
        gap: 12px;
        padding: 0 10px;
    }
    .column {
        width: 48%;
    }
    .column img,
    .column .hover-image {
        height: 25vw;
    }
    .column p {
        font-size: 14px;
        padding: 8px;
    }
}

/* Small Mobile (9:16) */
@media (max-width: 575px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 5%;
    }
    .column {
        width: 100%;
        max-width: 350px;
    }
    .column img,
    .column .hover-image {
        height: 50vw;
    }
    .column p {
        font-size: 15px;
        padding: 12px;
    }
}

/* Ultra-wide screens (21:9) */
@media (min-aspect-ratio: 21/9) {
    .container {
        max-width: 1400px;
    }
    .column img,
    .column .hover-image {
        height: 12vw;
    }
}

/* Square-ish screens (1:1) */
@media (max-aspect-ratio: 1/1) and (min-width: 768px) {
    .column img,
    .column .hover-image {
        height: 18vw;
    }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) and (min-width: 768px) {
    .column img,
    .column .hover-image {
        height: 22vw;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-width: 991px) {
    .column img,
    .column .hover-image {
        height: 18vw;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .column img,
    .column .hover-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

  
.video {
    width: 75%;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: #eae5e5;
    padding: 20px;
}

.video-section {
    flex: 0 0 auto;
    width: 50%;
}

.video-section iframe {
    width: 100%;
    max-width: 500px;
    height: 320px;
    border-radius: 0;
    display: block;
}

.text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.text-section h2 {
    text-align: left;
    margin-bottom: 1.5vw;
    padding-top: 0;
    font-size: 2vw;
    font-family: Cinzel;
}

.text-section p {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 1.1vw;
    font-family: Bodoni Moda;
    margin-top: 0;
}

.text-section button {
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 200px;
    margin: 15px 0 0 0;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.text-section button:hover {
    background-color: #1a252f;
}

/* Large Desktop (16:9 and wider) */
@media (min-width: 1600px) {
    .video-section iframe {
        height: 360px;
    }
    .text-section h2 {
        font-size: 1.8vw;
    }
    .text-section p {
        font-size: 1vw;
    }
}

/* Standard Desktop (16:9) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .video-section iframe {
        height: 320px;
    }
}

/* Small Desktop/Tablet Landscape (4:3) */
@media (min-width: 992px) and (max-width: 1199px) {
    .video {
        width: 85%;
    }
    .video-section iframe {
        height: 280px;
        max-width: 450px;
    }
}

/* Tablet View (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .video {
        width: 90%;
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .video-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .video-section iframe {
        height: 350px;
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

    .text-section {
        width: 100%;
        padding: 0 10px;
    }

    .text-section h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 15px;
        padding-top: 0;
    }

    .text-section p {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .text-section button {
        align-self: center;
        margin: 20px auto 0;
    }
}

/* Mobile View (up to 767px) */
@media (max-width: 767px) {
    .video {
        width: 95%;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 15px;
    }

    .video-section {
        width: 100%;
        order: 1;
    }

    .video-section iframe {
        height: 250px;
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

    .text-section {
        width: 100%;
        order: 2;
        padding: 0 5px;
    }

    .text-section h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 12px;
        padding-top: 0;
    }

    .text-section p {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 15px;
    }

    .text-section button {
        align-self: center;
        margin: 15px auto 0;
        width: 180px;
        padding: 10px 15px;
    }
}



.background-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    padding: 30px;
    max-width: 1300px;
    margin: 0 auto;
    margin-top: 5vw;
    background-color: #eae5e5;
    border-radius: 10px;
    margin-bottom: 1vw;
    font-family: Cinzel;
}
.bg-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}
.bg-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.bg-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}
.bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.bg-section:hover .bg-image img {
    transform: scale(1.05);
}
.image-heading {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px 20px;
    margin: 0;
    transform: translateY(100%);
    transition: transform 0.3s;
}
.bg-section:hover .image-heading {
    transform: translateY(0);
}
.bg-text {
    padding: 20px;
    max-height: 250px;
    overflow-y: auto;
}
.bg-text p {
    margin: 0;
    font-size: 15px;
    color: #111;
    font-family: Bodoni Moda;
}
.bg-1 { grid-column: 1; grid-row: 1; }
.bg-2 { grid-column: 2; grid-row: 1; }
.bg-3 { grid-column: 1; grid-row: 2; }
.bg-4 { grid-column: 2; grid-row: 2; }
.bg-5 { grid-column: 1; grid-row: 3; }
.bg-6 { grid-column: 2; grid-row: 3; }

/* Large Desktop (16:9 and wider) - 1440px+ */
@media (min-width: 1440px) {
    .background-grid {
        margin-top: 4vw;
        padding: 40px;
    }
    .bg-image {
        height: 280px;
    }
}

/* Standard Desktop (16:9) - 1200px-1439px */
@media (min-width: 1200px) and (max-width: 1439px) {
    .background-grid {
        gap: 18px;
        padding: 25px;
    }
}

/* Small Desktop/Tablet Landscape (4:3) - 992px-1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .background-grid {
        max-width: 95%;
        gap: 15px;
        padding: 20px;
    }
    .bg-image {
        height: 220px;
    }
    .bg-text {
        padding: 15px;
    }
}

/* Tablet Portrait (3:4) - 768px-991px */
@media (min-width: 768px) and (max-width: 991px) {
    .background-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
    }
    /* Reset all grid positions for single column */
    .bg-1, .bg-2, .bg-3, 
    .bg-4, .bg-5, .bg-6 {
        grid-column: 1;
    }
    .bg-1 { grid-row: 1; }
    .bg-2 { grid-row: 2; }
    .bg-3 { grid-row: 3; }
    .bg-4 { grid-row: 4; }
    .bg-5 { grid-row: 5; }
    .bg-6 { grid-row: 6; }
    
    .bg-image {
        height: 250px;
    }
    .image-heading {
        transform: translateY(0);
        padding: 10px 15px;
    }
}

/* Mobile View (1x1 Square Grid) - up to 767px */
@media (max-width: 767px) {
    .background-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: 1fr;
        gap: 15px;
        padding: 15px;
        max-width: 100%;
        margin: 5vw auto 0;
        background-color: #eae5e5;
        border-radius: 10px;
        font-family: Cinzel;
    }

    /* Reset all grid positions */
    .bg-section {
        grid-column: 1;
        grid-row: auto;
        height: 100%;
        min-height: 300px;
        display: flex;
        flex-direction: column;
    }

    /* Square grid items */
    .bg-section {
        aspect-ratio: 1/1;
        overflow: hidden;
    }

    .bg-image {
        height: 55%;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
    }
    
    .bg-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .bg-text {
        height: 45%;
        padding: 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .bg-text p {
        font-size: 14px;
        margin: 0;
        color: #111;
        font-family: Bodoni Moda;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        flex-grow: 1;
    }

    .image-heading {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 10px 12px;
        margin: 0;
        font-size: 14px;
        transform: none !important;
    }

    /* Remove hover effects on mobile */
    .bg-section:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .bg-section:hover .bg-image img {
        transform: none;
    }

    /* Ensure all sections have equal priority */
    .bg-1, .bg-2, .bg-3, .bg-4, .bg-5, .bg-6 {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Additional small mobile optimization */
@media (max-width: 480px) {
    .bg-text p {
        font-size: 13px;
    }
    .image-heading {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* Ultra-wide screens (21:9) */
@media (min-aspect-ratio: 21/9) {
    .background-grid {
        max-width: 1400px;
    }
    .bg-image {
        height: 300px;
    }
}

/* Square-ish screens (1:1) */
@media (max-aspect-ratio: 1/1) and (min-width: 768px) {
    .background-grid {
        grid-template-columns: 1fr;
    }

    .bg-1, .bg-2, .bg-3, 
    .bg-4, .bg-5, .bg-6 {
        grid-column: 1;
    }
    .bg-1 { grid-row: 1; }
    .bg-2 { grid-row: 2; }
    .bg-3 { grid-row: 3; }
    .bg-4 { grid-row: 4; }
    .bg-5 { grid-row: 5; }
    .bg-6 { grid-row: 6; }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) and (min-width: 768px) {
    .background-grid {
        gap: 15px;
    }
    .bg-image {
        height: 220px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-width: 991px) {
    .background-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bg-1 { grid-column: 1; grid-row: 1; }
    .bg-2 { grid-column: 2; grid-row: 1; }
    .bg-3 { grid-column: 1; grid-row: 2; }
    .bg-4 { grid-column: 2; grid-row: 2; }
    .bg-5 { grid-column: 1; grid-row: 3; }
    .bg-6 { grid-column: 2; grid-row: 3; }
    
    .bg-image {
        height: 200px;
    }
}


/* Base Footer Styles */
footer {
    background-color: #c1a164;
    color: white;
    padding: 2vw 2vw;
    font-family: 'Cinzel', serif;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  
  .footer-content a {
    color: #fff;
    text-decoration: none;
  }
  
  .footer-content div {
    width: 30%;
    padding: 10px;
    box-sizing: border-box;
  }
  
  .footer-content .contactus-info p {
    margin: 8px 0;
  }
  
  .footer-content .quick-links ul,
  .footer-content .legal ul {
    list-style-type: none;
    padding-left: 0;
  }
  
  .footer-content .quick-links li,
  .footer-content .legal li {
    margin: 8px 0;
  }
  
  .footer-content .quick-links a,
  .footer-content .legal a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
  }
  
  .footer-content .quick-links a:hover,
  .footer-content .legal a:hover {
    color: #444;
  }
  
  .footer-bottom {
    text-align: center;
    border-top: 1px solid #fff;
    padding-top: 10px;
  }
  
  .footer-bottom p {
    margin: 0;
    font-size: 14px;
    line-height: 1vw;
  }

  i {
    margin-right: 8px;
    color: #fff; /* optional: change icon color */
  }
  
  /* Media Queries for All Ratios */
  
  /* Ultra-wide screens (21:9 and wider) */
  @media (min-aspect-ratio: 21/9) {
    footer {
      padding: 1.5vw 4vw;
    }
    .footer-content div {
      width: 28%;
    }
  }
  
  /* Standard desktop (16:9) - base styles apply */
  
  /* Large tablets & small desktops (4:3) */
  @media (max-width: 1199px) {
    .footer-content {
      gap: 1rem;
    }
    .footer-content div {
      width: 30%;
      padding: 8px;
    }
  }
  
  /* Tablets (3:4) */
  @media (max-width: 991px) {
    .footer-content div {
      width: 45%;
      margin-bottom: 1rem;
    }
    .footer-bottom p {
      font-size: 13px;
    }
  }
  
  /* Large phones (9:16) */
  @media (max-width: 767px) {
    footer {
      padding: 3vw 4vw;
    }
    .footer-content {
      flex-direction: column;
    }
    .footer-content div {
      width: 100%;
      padding: 10px 0;
    }
    .footer-bottom p {
      font-size: 12px;
      line-height: 1.5;
    }
  }
  
  /* Small phones (narrow) */
  @media (max-width: 575px) {
    footer {
      padding: 4vw 5vw;
    }
    .footer-content a {
      font-size: 13px;
    }
    .footer-bottom {
      padding-top: 15px;
    }
  }
  
  /* Portrait orientation adjustments */
  @media (orientation: portrait) {
    /* Tablet portrait */
    @media (min-width: 768px) and (max-width: 991px) {
      .footer-content div {
        width: 48%;
      }
    }
    
    /* Phone portrait */
    @media (max-width: 575px) {
      .footer-content div {
        padding: 8px 0;
      }
    }
  }
  
  /* Landscape orientation adjustments */
  @media (orientation: landscape) {
    /* Tablet landscape */
    @media (max-width: 991px) {
      .footer-content div {
        width: 48%;
      }
    }
    
    /* Phone landscape */
    @media (max-width: 767px) {
      .footer-content div {
        width: 30%;
      }
    }
  }
  
  /* Square aspect ratio (1:1) */
  @media (max-aspect-ratio: 1/1) {
    .footer-content {
      flex-direction: column;
    }
    .footer-content div {
      width: 100%;
    }
  }
  
  /* Very small screens */
  @media (max-width: 399px) {
    footer {
      padding: 5vw;
    }
    .footer-content a,
    .footer-bottom p {
      font-size: 12px;
    }
  }
  
  /* High density displays */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .footer-content a {
      font-weight: 500;
    }
  }