/* ========================================
   Custom Responsive Styles for Large Screens
   ======================================== */

/* Container Fluid Padding */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .px-lg-5 {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

@media (min-width: 1400px) {
    .px-lg-5 {
        padding-left: 5rem !important;
        padding-right: 5rem !important;
    }
}

@media (min-width: 1920px) {
    .px-lg-5 {
        padding-left: 8rem !important;
        padding-right: 8rem !important;
    }
}

@media (min-width: 2560px) {
    .px-lg-5 {
        padding-left: 12rem !important;
        padding-right: 12rem !important;
    }
}

/* Base Container Adjustments - Content Areas */
/* Remove max-width constraints for fluid layouts */
.container-fluid .row {
    width: 100%;
}

/* Only apply container max-width when explicitly needed */
@media (min-width: 1400px) {
    .container:not(.container-fluid > .container) {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .container:not(.container-fluid > .container) {
        max-width: 1400px;
    }
}

@media (min-width: 1920px) {
    .container:not(.container-fluid > .container) {
        max-width: 1600px;
    }
}

@media (min-width: 2560px) {
    .container:not(.container-fluid > .container) {
        max-width: 1920px;
    }
}

/* Ensure fluid container content uses available space */
.container-fluid > .row,
.container-fluid > .section-content > .row,
.container-fluid > .section-title {
    width: 100%;
    max-width: 100%;
}

/* Column responsive widths */
@media (min-width: 1600px) {
    .container-fluid .col-md-9 {
        width: 70%;
    }
    
    .container-fluid .col-md-3 {
        width: 30%;
    }
    
    .container-fluid .col-md-12 {
        width: 100%;
    }
}

/* Full Width Sections */
section {
    width: 100%;
    overflow-x: hidden;
}

/* Gallery Grid Responsive */
@media (min-width: 1600px) {
    #grid.grid-4 .gallery-item {
        width: 20% !important; /* 5 columns */
    }
}

@media (min-width: 1920px) {
    #grid.grid-4 .gallery-item {
        width: 16.66% !important; /* 6 columns */
    }
}

@media (min-width: 2560px) {
    #grid.grid-4 .gallery-item {
        width: 14.28% !important; /* 7 columns */
    }
}

/* Typography Adjustments for Large Screens */
@media (min-width: 1920px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 48px;
    }
    
    h2 {
        font-size: 38px;
    }
    
    h3 {
        font-size: 32px;
    }
    
    .font-60 {
        font-size: 70px !important;
    }
    
    .font-28 {
        font-size: 32px !important;
    }
    
    .font-20 {
        font-size: 24px !important;
    }
}

/* Content Sections Spacing */
@media (min-width: 1600px) {
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .pt-30 {
        padding-top: 50px !important;
    }
    
    .pb-30 {
        padding-bottom: 50px !important;
    }
    
    .pt-150 {
        padding-top: 180px !important;
    }
    
    .pb-150 {
        padding-bottom: 180px !important;
    }
}

/* Director Section Responsive */
@media (min-width: 1600px) {
    .post.media-post {
        padding: 20px;
    }
    
    .post.media-post img {
        max-width: 100%;
    }
}

/* Map Container */
@media (min-width: 1600px) {
    .map-container iframe {
        height: 600px !important;
    }
}

@media (min-width: 1920px) {
    .map-container iframe {
        height: 700px !important;
    }
}

/* Footer Responsive */
footer {
    width: 100%;
}

.footer-bottom {
    width: 100%;
}

/* Ensure no horizontal scroll */
body {
    overflow-x: hidden;
}

#wrapper {
    width: 100%;
    overflow-x: hidden;
}

.main-content {
    width: 100%;
    overflow-x: hidden;
}

/* Header Responsive */
.header-top,
.header-middle,
.header-nav {
    width: 100%;
}

/* Header Middle - White Section */
.header-middle {
    background-color: #ffffff !important;
}

.header-middle .d-flex {
    display: flex;
}

.header-middle .align-items-center {
    align-items: center;
}

.header-middle .justify-content-end {
    justify-content: flex-end;
}

.header-middle .flex-wrap {
    flex-wrap: wrap;
}

/* Contact Blocks Hover Effect */
.contact-block:hover {
    background: #0D4715 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 21, 0.2) !important;
}

.contact-block:hover .icon-wrapper i {
    color: #ffffff !important;
}

.contact-block:hover .contact-info p,
.contact-block:hover .contact-info h5 {
    color: #ffffff !important;
}

/* Responsive Header Layout */
@media (max-width: 991px) {
    .header-middle .d-flex.justify-content-end {
        justify-content: center !important;
        margin-top: 20px;
    }
    
    .header-middle .col-md-5,
    .header-middle .col-md-7 {
        text-align: center !important;
    }
    
    .header-middle .d-flex.align-items-center {
        justify-content: center;
    }
    
    .header-middle .container-fluid {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
}

@media (max-width: 767px) {
    .contact-block {
        margin-bottom: 15px;
        justify-content: center;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .header-middle .container-fluid {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .header-middle .header-title h3 {
        font-size: 24px !important;
    }
    
    .header-middle .header-title p {
        font-size: 16px !important;
    }
    
    .header-middle .menuzord-brand img {
        height: 70px !important;
    }
}

@media (min-width: 1400px) {
    .header-middle .container-fluid {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}

@media (min-width: 1600px) {
    .header-middle .container-fluid {
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }
    
    .header-middle .contact-block .icon-wrapper i {
        font-size: 52px !important;
    }
    
    .header-middle .contact-info h5 {
        font-size: 19px !important;
    }
    
    .header-middle .contact-info p {
        font-size: 14px !important;
    }
    
    .header-middle .header-title h3 {
        font-size: 32px !important;
    }
    
    .header-middle .header-title p {
        font-size: 20px !important;
    }
    
    .header-middle .menuzord-brand img {
        height: 95px !important;
    }
}

@media (min-width: 1920px) {
    .header-middle .container-fluid {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .header-middle .contact-block .icon-wrapper i {
        font-size: 56px !important;
    }
    
    .header-middle .contact-info h5 {
        font-size: 20px !important;
    }
    
    .header-middle .header-title h3 {
        font-size: 36px !important;
    }
    
    .header-middle .header-title p {
        font-size: 22px !important;
    }
    
    .header-middle .menuzord-brand img {
        height: 105px !important;
    }
    
    .contact-block {
        padding: 18px 25px !important;
    }
}

.header-nav-wrapper {
    width: 100%;
}

/* Navbar Full Width */
#menuzord {
    width: 100%;
}

.menuzord-menu {
    display: flex;
    justify-content: flex-start;
}

@media (min-width: 1400px) {
    .menuzord-menu > li {
        margin: 0 5px;
    }
    
    .menuzord-menu > li > a {
        padding: 25px 15px;
    }
}

@media (min-width: 1600px) {
    .menuzord-menu > li {
        margin: 0 8px;
    }
    
    .menuzord-menu > li > a {
        padding: 25px 18px;
    }
}

@media (min-width: 1920px) {
    .menuzord-menu > li {
        margin: 0 10px;
    }
    
    .menuzord-menu > li > a {
        padding: 25px 20px;
        font-size: 15px;
    }
}

/* Image Responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Video Background for Large Screens */
@media (min-width: 1920px) {
    .video-background {
        object-fit: cover;
        min-width: 100%;
        min-height: 100%;
    }
}

/* Content within fluid containers */
.container-fluid .container {
    margin-left: auto;
    margin-right: auto;
}

/* Ensure proper spacing in fluid layouts */
@media (min-width: 992px) {
    .container-fluid > .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .container-fluid .section-content > .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Better spacing for content on large screens */
@media (min-width: 1600px) {
    .container-fluid .post,
    .container-fluid .article,
    .container-fluid .info {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Sidebar Responsive */
@media (min-width: 1400px) and (max-width: 1599px) {
    .col-md-9 {
        width: 70%;
    }
    
    .col-md-3 {
        width: 30%;
    }
}

@media (min-width: 1600px) {
    .col-md-9 {
        width: 75%;
    }
    
    .col-md-3 {
        width: 25%;
    }
}

/* Breadcrumb Adjustments */
@media (min-width: 1600px) {
    .breadcrumb {
        font-size: 16px;
    }
}

/* Button Adjustments */
@media (min-width: 1600px) {
    .btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .btn-sm {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Portfolio Filter */
@media (min-width: 1600px) {
    .portfolio-filter a {
        padding: 10px 25px;
        font-size: 16px;
    }
}

/* Marquee Text */
@media (min-width: 1600px) {
    marquee {
        font-size: 18px !important;
    }
}

@media (min-width: 1920px) {
    marquee {
        font-size: 20px !important;
    }
}

/* Card and Info Box Adjustments */
@media (min-width: 1600px) {
    .info {
        padding: 25px !important;
    }
    
    .info h4 {
        font-size: 24px;
    }
    
    .info p {
        font-size: 16px;
    }
}

/* Ensure proper column gaps */
@media (min-width: 1600px) {
    .row {
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .row > [class*="col-"] {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Table Responsive Improvements */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

@media (min-width: 1600px) {
    .table {
        font-size: 15px;
    }
    
    .table th,
    .table td {
        padding: 12px 15px;
    }
}

@media (min-width: 1920px) {
    .table {
        font-size: 16px;
    }
    
    .table th,
    .table td {
        padding: 15px 20px;
    }
}
