/* ===== Content Half Column ===== */
@media (max-width: 991.98px) {
    .content-half-column .content-column {
        margin: 1rem;
    }
}

@media (max-width: 767.98px) {
    .content-half-column .content-column {
        padding: 1.5rem;
        max-width: 100%;
    }
}

/* ===== Responsive Typography ===== */
@media (max-width: 991.98px) {

    .h1,
    h1 {
        font-size: 2.2rem;
        line-height: 1.8em;
    }

    h2,
    .h2 {
        font-size: 2.0rem;
        line-height: 1.6em;
    }

    h3,
    .h3 {
        font-size: 1.8rem;
        line-height: 1.4em;
    }

    h4,
    .h4 {
        font-size: 1.6rem;
        line-height: 1.3em;
    }

    h5,
    .h5 {
        font-size: 1.4rem;
        line-height: 1.2em;
    }

    h6,
    .h6 {
        font-size: 1.2rem;
        line-height: 1.2em;
    }
}

/* Mobile devices */
@media (max-width: 767.98px) {

    .h1,
    h1 {
        font-size: 3.0rem !important;
        line-height: 1.4em;
    }

    h2,
    .h2 {
        font-size: 2.8rem;
        line-height: 1.3em;
    }

    h3,
    .h3 {
        font-size: 1.6rem;
        line-height: 1.2em;
    }

    h4,
    .h4 {
        font-size: 1.4rem;
        line-height: 1.2em;
    }

    h5,
    .h5 {
        font-size: 1.3rem;
        line-height: 1.2em;
    }

    h6,
    .h6 {
        font-size: 1.2rem;
        line-height: 1.2em;
    }

    /* Ensure spans inside headings inherit styles */
    .h1 span,
    h1 span,
    .h2 span,
    h2 span,
    .h3 span,
    h3 span,
    .h4 span,
    h4 span,
    .h5 span,
    h5 span,
    .h6 span,
    h6 span {
        font-size: inherit !important;
        line-height: inherit;
    }
}

/* ===== Desktop (min-width: 992px) ===== */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        margin-top: 0;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        justify-content: center;
        order: 2;
    }

    .navbar-nav {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        padding: 0 !important;
        margin: 0 auto;
    }

    .nav-item {
        margin: 0 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        color: var(--color-text) !important;
        transition: all 0.2s ease;
    }

    .nav-link:hover,
    .nav-link:focus {
        color: var(--color-primary) !important;
    }

    .reserve-button-container {
        margin-left: 1rem;
        order: 3;
    }

    .navbar-brand {
        margin-right: 2rem;
        order: 1;
    }
}

/* Reserve button container */
.reserve-button-container {
    order: 3;
    margin-left: auto;
}

/* Reserve button */
.btn-reserve {
    background-color: var(--color-primary);
    color: var(--color-secondary) !important;
    border: none;
    padding: 0.5rem 1.25rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 2rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

/* ===== Tablet (max-width: 1200px) ===== */
@media (max-width: 1200px) {
    .stamp-card h4 {
        font-size: 1.4rem;
    }

    .stamp-card p {
        font-size: 1rem;
    }
}

/* ===== Tablet (max-width: 991.98px) ===== */
@media (max-width: 991.98px) {

    /* Content Column */
    .content-column {
        padding: 2.5rem 1.5rem;
    }

    /* Video and Content Banners */
    .video-banner-section,
    .content-banner-section {
        min-height: 450px;
        padding: 3rem 0;
    }

    .flexible-banner {
        min-height: 350px;
        padding: 60px 0;
    }

    .flexible-banner .container {
        padding: 1.5rem;
    }

    .flexible-banner .content-wrapper {
        padding-top: 2rem;
    }

    /* Mobile Navigation */
    .min-height-350,
    .min-height-450,
    .min-height-550,
    .min-height-650 {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: #ffffff;
        margin: 0.5rem 0 0 0;
        padding: 0.5rem 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        text-align: left;
        z-index: 1000;
        overflow: hidden;
    }

    .navbar-nav {
        padding: 0.25rem 0;
        text-align: left;
    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .nav-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
        color: var(--color-text);
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .nav-link:hover,
    .nav-link:focus {
        background-color: rgba(var(--color-primary-rgb), 0.05);
        color: var(--color-primary);
        padding-left: 1.25rem;
    }

    .nav-link.active {
        background-color: rgba(var(--color-primary-rgb), 0.1);
        color: var(--color-primary);
        font-weight: 600;
    }

    .nav-link i {
        margin-right: 0.75rem;
        width: 1.25rem;
        text-align: center;
    }

    .stamp-card h4 {
        font-size: 1.4rem;
    }

    .stamp-card p {
        font-size: 1rem;
    }

    .menu-item {
        padding: 0.4rem 1rem;
        font-size: .75rem;
    }


    .footer-section .footer-column-bordered {
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(var(--color-primary-rgb), 0.25) !important;
        border-bottom: none !important;
        padding-left: .95rem !important;
        padding-bottom: 0rem;
        padding-top: 2.5rem;
        margin-top: 2.5rem;
    }
}

/* ===== Small Tablets (max-width: 768px) ===== */
@media (max-width: 768px) {
    .display-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    /* Video and Content Banners */
    .video-banner-section,
    .content-banner-section {
        min-height: 450px;
        padding: 100px 0;
    }

    .flexible-banner {
        min-height: 500px;
        padding: 100px 0;
    }

    .flexible-banner .content-wrapper {
        padding-top: 3rem;
    }

    .video-play-button a {
        width: 70px;
        height: 70px;
        font-size: 1.25rem;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .blog-detail-title {
        font-size: 1.8rem;
    }

    .related-post {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .design-images {
        flex-direction: column;
    }

    .sidebar {
        margin-top: var(--spacing-xl);
    }

    .search-box form {
        flex-direction: column;
    }

    .search-box input[type="text"] {
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .search-box button {
        border-radius: 0.5rem;
    }

    .tag-cloud {
        justify-content: center;
    }

    body.has-sticky-menu {
        padding-top: 130px;
    }

    /* Tablet Content Sections */
    .head-section {
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 3rem 0;
    }

    .head-section .container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .head-section .row {
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .head-title {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .head-description {
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Tablet Card Elements */
    .stamp-card {
        height: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 1.5rem;
        padding: 2.5rem 2rem;
    }

    .stamp-card h4 {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .stamp-card p {
        text-align: center;
        font-size: 1.2rem;
    }
}

/* ===== Mobile (max-width: 576px) ===== */
@media (max-width: 576px) {

    .flexible-banner {
        min-height: 300px;
        padding: 40px 0;
    }

    .flexible-banner .container {
        padding: 1rem;
    }

    .flexible-banner .content-wrapper {
        padding-top: 1.5rem;
    }

    .video-play-button a {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    body.has-sticky-menu {
        padding-top: 120px;
    }

    /* Mobile Content Sections */
    .head-section {
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem 0;
    }

    .head-section .container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .head-section .row {
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .head-title {
        text-align: center;
        margin-bottom: 1rem;
    }

    .head-description {
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Mobile Blog Sections */
    .blog-wrapper {
        min-height: 100vh;
    }

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

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

    .blog-meta {
        justify-content: center;
    }

    /* Mobile Card Elements */
    .stamp-card {
        height: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .stamp-card h4 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .stamp-card p {
        text-align: center;
    }

    /* Mobile Icon Cards */
    .icon-card {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Community Cards */
    .community-card {
        height: 100%;
        text-align: center;
    }

    .community-card-content {
        text-align: center;
    }
}