/* ============================================
   GLOBAL RESPONSIVE FIXES FOR SMALL SCREENS
   ============================================ */
@media (max-width: 375px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 0.75rem;
        box-sizing: border-box;
    }

    section {
        overflow-x: hidden;
        max-width: 100%;
    }
}

/* waving animation */

.wave-container {
    overflow: hidden;
}

.ocean {
    height: 5%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: #663c61;
}

.wave {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='198'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='50%25' x2='50%25' y1='-10.959%25' y2='100%25'%3E%3Cstop stop-color='%23A16B8A' stop-opacity='.25' offset='0%25'/%3E%3Cstop stop-color='%23663c61' offset='100%25'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23a)' fill-rule='evenodd' d='M.005 121C311 121 409.898-.25 811 0c400 0 500 121 789 121v77H0s.005-48 .005-77z' transform='matrix(-1 0 0 1 1600 0)'/%3E%3C/svg%3E") repeat-x;
    position: absolute;
    top: -198px;
    width: 6400px;
    height: 198px;
    animation: wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    transform: translate3d(0, 0, 0);
}

.wave:nth-of-type(2) {
    top: -175px;
    animation: wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) -.125s infinite, swell 7s ease -1.25s infinite;
    opacity: 1;
}

/* .wave:nth-of-type(2) {
    top: -175px;
    animation: wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) -.125s infinite, swell 7s ease -1.25s infinite;
    opacity: 1;
} */

@keyframes wave {
    0% {
        margin-left: 0;
    }

    100% {
        margin-left: -1600px;
    }
}

@keyframes swell {

    0%,
    100% {
        transform: translate3d(0, -25px, 0);
    }

    50% {
        transform: translate3d(0, 5px, 0);
    }
}

/* waving animation */





.testimonial {
    width: 100%;
    /* min-height: 100vh; */
    color: hsl(240, 38%, 20%);
    font-size: 32px;
    font-family: "Inter", sans-serif;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 280px 72px;
    background-image: url(https://alcs-slider.netlify.app/images/pattern-curve.svg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    padding-top: 3rem;
}

html body main {
    width: 100%;
    max-width: 1440px;
    padding: 16px;
    position: relative;
}

/* Slider Buttons */
html body main .slider .buttons {
    z-index: 1;
    right: 50%;
    top: 261px;
    width: 80px;
    height: 40px;
    position: absolute;
    border-radius: 50px;
    transform: translateX(50%);
    background-color: #ffffff;
}

html body main .slider .buttons .previous,
html body main .slider .buttons .next {
    width: 50%;
    height: 100%;
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

html body main .slider .buttons .previous {
    left: 0;
    background-image: url("https://alcs-slider.netlify.app/images/icon-prev.svg");
}

html body main .slider .buttons .previous:hover {
    transform: scale(1.25);
}

html body main .slider .buttons .next {
    right: 0;
    background-image: url("https://alcs-slider.netlify.app/images/icon-next.svg");
}

html body main .slider .buttons .next:hover {
    transform: scale(1.25);
}

/* Slide */
html body main .slider .slide {
    display: flex;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
}

html body main .slider .slide .testimonial {
    padding: 32px 51px;
    background-size: 60px;
    background-position: top;
    background-repeat: no-repeat;
    background-image: url(https://alcs-slider.netlify.app/images/pattern-quotes.svg);
}

.testimonial-paragraph {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-top: 0.75rem;
    color: var(--gray-600);
}

html body main .slider .slide .testimonial blockquote {
    font-size: 18px;
    font-weight: 300;
    line-height: 24px;
    margin-bottom: 20px;
}

html body main .slider .slide .testimonial .testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    justify-content: center;
}

html body main .slider .slide .testimonial .testimonial-rating .star {
    font-size: 18px;
    line-height: 1;
}

html body main .slider .slide .testimonial .testimonial-rating .star-filled {
    color: #FBBF24;
}

html body main .slider .slide .testimonial .testimonial-rating .star-empty {
    color: #E5E7EB;
}

html body main .slider .slide .testimonial .author {
    font-size: 15px;
    font-weight: 700;
    margin-top: 8px;
}

html body main .slider .slide .testimonial .author span {
    display: block;
    color: hsl(240, 18%, 77%);
    font-weight: 500;
    margin-top: 4px;
}

html body main .slider .slide .slider-img {
    width: 100%;
    padding: 30px;
    display: flex;
    margin-bottom: 40px;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(https://alcs-slider.netlify.app/images/pattern-bg.svg);
}

html body main .slider .slide .slider-img img {
    width: 240px;
    height: 240px;
    display: block;
    border-radius: 10px;
    box-shadow: 0px 16px 40px 0px rgba(135, 105, 210, 0.4);
    object-fit: cover;
    object-position: center;
}

html body main .slider .slide .active {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.4s;
}



html body .hide {
    display: none;
}

/* Media Queries */
@media screen and (min-width: 600px) {
    html body main {
        max-width: 800px;
    }

    html body main .slider .buttons {
        top: 280px;
    }
}

@media screen and (min-width: 900px) {
    html body main {
        width: 100%;
        max-width: 1054px;
        /* padding: 64px 64px 64px 0; */

    }

    html body main .slider .buttons {
        right: 39%;
        top: 445px;
    }

    html body main .slider .slide {
        position: relative;
        text-align: left;
        flex-direction: row;
    }

    html body main .slider .slide .testimonial {
        padding: 32px 0 0 0;
        background-size: 80px;
        background-position: 19% -7%;
        transform: translateX(100px);
    }

    html body main .slider .slide .testimonial blockquote {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 20px;
    }

    html body main .slider .slide .testimonial .testimonial-rating {
        justify-content: flex-start;
        margin-bottom: 16px;
    }

    html body main .slider .slide .testimonial .testimonial-rating .star {
        font-size: 20px;
    }

    html body main .slider .slide .testimonial .author {
        margin-top: 8px;
    }

    html body main .slider .slide .testimonial .author span {
        display: contents;
    }

    html body main .slider .slide .slider-img {
        padding: 55px;
    }

    html body main .slider .slide .slider-img img {
        width: 400px;
        height: 400px;
        object-fit: cover;
        object-position: center;
    }
}

/* ============================================
   MODAL CUSTOM STYLING
   ============================================ */
#contactModal .modal-dialog {
    max-width: 600px;
    margin: 1rem auto;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

#contactModal .modal-content {
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    background: var(--white);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

#contactModal .modal-header {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1A4B8C 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
    flex-shrink: 0;
}

#contactModal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--coral);
}

#contactModal .modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

#contactModal .btn-close {
    /* background: rgba(255, 255, 255, 0.2); */
    border-radius: var(--radius-full);
    padding: 0.5rem;
    opacity: 1;
    transition: all var(--transition-normal);
    filter: brightness(0) invert(1);
}

#contactModal .btn-close:hover {
    /* background: var(--coral); */
    transform: rotate(90deg);
    opacity: 1;
}

#contactModal .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.25);
}

#contactModal .modal-body {
    padding: 2rem;
    background: var(--soft-white);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    overflow: visible;
}

#contactModal .form-label {
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#contactModal .form-control,
#contactModal .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--white);
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

#contactModal .form-control:focus,
#contactModal .form-select:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.15);
    outline: none;
    background: var(--white);
}

#contactModal .form-control::placeholder {
    color: var(--gray-400);
    opacity: 1;
}

#contactModal textarea.form-control {
    resize: vertical;
    min-height: 100px;
    max-height: 120px;
}

#contactModal .row.g-3 {
    margin-bottom: 0.75rem;
}

#contactModal .mt-3 {
    margin-top: 0.75rem !important;
}

#contactModal .mt-4 {
    margin-top: 1rem !important;
}

#contactModal .btn-primary {
    background: var(--coral);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
}

#contactModal .btn-primary:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 57, 53, 0.3);
}

#contactModal .btn-primary:active {
    transform: translateY(0);
}

#contactModal .btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.25);
}

#contactModal .btn-primary svg {
    width: 20px;
    height: 20px;
}

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(10, 45, 106, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

.modal-backdrop.show {
    opacity: 1;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Modal Animation */
#contactModal.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

#contactModal.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* Responsive Modal */
@media (max-width: 768px) {
    #contactModal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
        max-height: calc(100vh - 1rem);
    }

    #contactModal .modal-content {
        max-height: calc(100vh - 1rem);
    }

    #contactModal .modal-header {
        padding: 1rem 1.25rem;
    }

    #contactModal .modal-title {
        font-size: 1.125rem;
    }

    #contactModal .modal-body {
        padding: 1rem 1.25rem;
        overflow: visible;
    }

    #contactModal .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }

    #contactModal .form-control,
    #contactModal .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    #contactModal textarea.form-control {
        min-height: 60px;
        max-height: 80px;
    }

    #contactModal .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        margin-top: 0.75rem;
    }

    #contactModal .row.g-3 {
        margin-bottom: 0.375rem;
        --bs-gutter-y: 0.375rem;
    }

    #contactModal .mt-3 {
        margin-top: 0.375rem !important;
    }

    #contactModal .mt-4 {
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    #contactModal .modal-dialog {
        max-width: 100%;
        margin: 0;
        max-height: 100vh;
        height: 100vh;
    }

    #contactModal .modal-content {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #contactModal .modal-header {
        padding: 0.75rem 1rem;
        flex-shrink: 0;
    }

    #contactModal .modal-title {
        font-size: 1rem;
    }

    #contactModal .modal-body {
        padding: 0.75rem 1rem;
        overflow: visible;
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    #contactModal .form-label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    #contactModal .form-control,
    #contactModal .form-select {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }

    #contactModal textarea.form-control {
        min-height: 50px;
        max-height: 70px;
    }

    #contactModal .btn-primary {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        margin-top: 1.5rem;
    }

    #contactModal .row.g-3 {
        margin-bottom: 0.25rem;
        --bs-gutter-y: 0.25rem;
    }

    #contactModal .mt-3 {
        margin-top: 0.25rem !important;
    }

    #contactModal .mt-4 {
        margin-top: 0.375rem !important;
    }

    #contactModal .btn-close {
        padding: 0.375rem;
    }
}

/* ============================================
   BLOG SECTION STYLING
   ============================================ */
.blog {
    position: relative;
    background: var(--soft-white);
    overflow: hidden;
}

.blog-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.blog-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--coral);
    top: -100px;
    right: -100px;
}

.blog-blob-2 {
    width: 300px;
    height: 300px;
    background: var(--navy-blue);
    bottom: -50px;
    left: -50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    z-index: 1;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    width: 100%;
    max-width: 100%;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;

    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--coral);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.blog-card-date,
.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-card-date svg,
.blog-card-author svg {
    width: 14px;
    height: 14px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
}

.blog-card-excerpt {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--coral);
    font-weight: 600;
    font-size: 0.875rem;
    transition: gap var(--transition-normal);
}

.blog-card:hover .blog-card-read-more {
    gap: 0.75rem;
}

/* Blog Hero (Listing Page) */
.blog-hero {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1A4B8C 100%);
    padding: 8rem 0 4rem;
    /* margin-top: 5rem; */
    text-align: center;
    color: var(--white);
}

.blog-hero-content {
    max-width: 48rem;
    margin: 0 auto;
}

.blog-hero h1 {
    color: var(--white);
    margin: 1.5rem 0;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.blog-filter-btn {
    padding: 0.625rem 1.5rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.blog-filter-btn:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.blog-filter-btn.active {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
}

/* Blog Detail Page */
@media (max-width: 768px) {
    .blog-detail-hero-content {
        margin-top: 2rem;
    }
}

.blog-detail-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1A4B8C 50%, var(--navy-blue) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 8rem 0 4rem;
    /* margin-top: 5rem; */
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.blog-detail-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.blog-detail-hero-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--coral);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.blog-detail-hero-blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.blog-detail-hero-content {
    position: relative;
    z-index: 1;
}

.blog-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.blog-detail-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.blog-detail-breadcrumb a:hover {
    color: var(--coral);
}

.blog-detail-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.blog-detail-hero-text {
    max-width: 48rem;
}

.blog-detail-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    padding: 0.625rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

.blog-detail-hero-badge svg {
    width: 18px;
    height: 18px;
}

.blog-detail-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-detail-hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 42rem;
}

.blog-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

.blog-detail-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.blog-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-100);
}

.blog-detail-category {
    display: inline-block;
    background: var(--coral);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.blog-detail-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-detail-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-detail-author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--coral);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.blog-detail-author-name {
    font-weight: 600;
    color: var(--navy-blue);
}

.blog-detail-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.blog-detail-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-detail-share span {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
}

.blog-share-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.blog-share-btn:hover {
    background: var(--coral);
    color: var(--white);
    transform: translateY(-2px);
}

.blog-detail-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    height: 400px;
}

.blog-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.blog-detail-body p {
    margin-bottom: 1.5rem;
}

.blog-detail-body h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--navy-blue);
}

.blog-intro {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy-blue);
    margin-bottom: 2rem;
}

.blog-detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-100);
}

.blog-detail-tags span {
    font-weight: 600;
    color: var(--gray-600);
}

.blog-tag {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--navy-blue);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.blog-tag:hover {
    background: var(--coral);
    color: var(--white);
}

/* Blog Sidebar */
.blog-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.blog-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
}

.blog-search {
    display: flex;
    gap: 0.5rem;
}

.blog-search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: border-color var(--transition-normal);
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--coral);
}

.blog-search-btn {
    padding: 0.875rem 1.25rem;
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background var(--transition-normal);
}

.blog-search-btn:hover {
    background: var(--coral-dark);
}

.blog-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-categories li {
    margin-bottom: 0.75rem;
}

.blog-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-700);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-normal);
}

.blog-categories a:hover {
    color: var(--coral);
}

.blog-categories span {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.blog-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-recent-post {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-normal);
}

.blog-recent-post:hover {
    transform: translateX(5px);
}

.blog-recent-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.blog-recent-post h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.blog-recent-post span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.blog-sidebar-cta {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1A4B8C 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.blog-sidebar-cta h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.blog-sidebar-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

/* Related Posts */
.blog-related {
    background: var(--soft-white);
}

/* Responsive Blog Styles */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .blog-detail-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .blog-card {
        max-width: 100%;
    }

    .blog-hero {
        padding: 6rem 0 3rem;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-filters {
        gap: 0.5rem;
    }

    .blog-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .blog-detail-hero {
        padding: 6rem 0 3rem;
    }

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

    .blog-detail-hero-description {
        font-size: 1rem;
    }

    .blog-detail-content {
        padding: 2rem;
    }

    .blog-detail-content h1 {
        font-size: 1.75rem;
    }

    .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-detail-image {
        height: 250px;
    }

    .blog-detail-body {
        font-size: 1rem;
    }

    .blog-detail-body h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-card-content {
        padding: 1.25rem;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-detail-hero {
        padding: 5rem 0 2rem;
    }

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

    .blog-detail-hero-description {
        font-size: 0.9375rem;
    }

    .blog-detail-hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .blog-detail-content {
        padding: 1.5rem;
    }

    .blog-detail-content h1 {
        font-size: 1.5rem;
    }

    .blog-sidebar-widget {
        padding: 1.5rem;
    }
}

@media (min-width: 640px) and (max-width: 768px) {
    .blog-hero-content {
        margin-top: 1rem;
    }
}

/* Extra Small Screens - 355px and below */
@media (max-width: 375px) {

    /* Blog Hero */
    .blog-detail-hero {
        padding: 4rem 0 1.5rem;
    }

    .blog-detail-hero-content {
        padding: 0 0.75rem;
    }

    .blog-detail-breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .blog-detail-hero-badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .blog-detail-hero-badge svg {
        width: 14px;
        height: 14px;
    }

    .blog-detail-hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin: 1rem 0;
    }

    .blog-detail-hero-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* Blog Cards */
    .blog-card {
        border-radius: 12px;
        margin: 0 0.5rem;
    }

    .blog-card-content {
        padding: 1rem;
    }

    .blog-card-image {
        height: 180px;
    }

    .blog-card-category {
        padding: 0.35rem 0.75rem;
        font-size: 0.7rem;
        top: 0.75rem;
        left: 0.75rem;
    }

    .blog-card-title {
        font-size: 1.125rem;
        line-height: 1.4;
        margin: 0.75rem 0 0.5rem;
        -webkit-line-clamp: 2;
    }

    .blog-card-excerpt {
        font-size: 0.8125rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    .blog-card-meta {
        font-size: 0.75rem;
        gap: 0.75rem;
        margin: 0.75rem 0;
    }

    .blog-card-read-more {
        font-size: 0.8125rem;
        padding: 0.5rem 0;
    }

    /* Blog Detail Content */
    .blog-detail-wrapper {
        gap: 1.5rem;
        padding: 0 0.75rem;
    }

    .blog-detail-content {
        padding: 1rem;
        border-radius: 12px;
    }

    .blog-detail-header {
        margin-bottom: 1.25rem;
    }

    .blog-detail-category {
        padding: 0.35rem 0.75rem;
        font-size: 0.7rem;
    }

    .blog-detail-content h1 {
        font-size: 1.375rem;
        line-height: 1.3;
        margin: 0.75rem 0 1rem;
    }

    .blog-detail-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .blog-detail-author {
        font-size: 0.8125rem;
    }

    .blog-detail-author-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .blog-detail-date {
        font-size: 0.8125rem;
    }

    .blog-detail-share {
        margin-top: 0.5rem;
    }

    .blog-detail-share span {
        font-size: 0.8125rem;
    }

    .blog-share-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .blog-share-btn svg {
        width: 14px;
        height: 14px;
    }

    .blog-detail-image {
        margin: 1.25rem 0;
        border-radius: 12px;
    }

    .blog-detail-body {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .blog-detail-body p {
        margin-bottom: 1rem;
    }

    .blog-detail-body h2 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
    }

    .blog-intro {
        font-size: 1rem;
        line-height: 1.6;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .blog-detail-tags {
        padding: 1rem;
        margin-top: 1.5rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .blog-tag {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Blog Sidebar */
    .blog-sidebar-widget {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .blog-sidebar-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .blog-search-input {
        padding: 0.65rem 0.85rem;
        font-size: 0.875rem;
    }

    .blog-search-btn {
        padding: 0.65rem 1rem;
        font-size: 0.875rem;
    }

    .blog-categories a {
        padding: 0.65rem 0;
        font-size: 0.875rem;
    }

    .blog-recent-post {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .blog-recent-post img {
        width: 60px;
        height: 60px;
    }

    .blog-recent-post h4 {
        font-size: 0.875rem;
    }

    .blog-recent-post span {
        font-size: 0.75rem;
    }

    .blog-sidebar-cta {
        padding: 1.25rem;
    }

    .blog-sidebar-cta h3 {
        font-size: 1.125rem;
    }

    .blog-sidebar-cta p {
        font-size: 0.875rem;
    }

    .blog-sidebar-cta .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Blog Grid */
    .blog-grid {
        gap: 1.25rem;
        padding: 0 0.75rem;
    }

    /* Related Posts Section */
    .blog-related .section-header h2 {
        font-size: 1.5rem;
    }

    /* Fix overflow issues */
    .blog-detail-hero,
    .blog-detail,
    .blog-related {
        overflow-x: hidden;
    }
}

/* Ultra Small Screens - 355px and below */
@media (max-width: 355px) {

    /* Hero adjustments */
    .blog-detail-hero {
        padding: 3.5rem 0 1.5rem;
    }

    .blog-detail-hero-title {
        font-size: 1.375rem;
        line-height: 1.25;
    }

    .blog-detail-hero-description {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    /* Card extra small adjustments */
    .blog-card {
        margin: 0 0.25rem;
    }

    .blog-card-content {
        padding: 0.875rem;
    }

    .blog-card-image {
        height: 160px;
    }

    .blog-card-title {
        font-size: 1rem;
        margin: 0.5rem 0;
    }

    .blog-card-excerpt {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }

    .blog-card-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    /* Content adjustments */
    .blog-detail-wrapper {
        padding: 0 0rem;
    }

    .blog-detail-content {
        padding: 0.875rem;
    }

    .blog-detail-content h1 {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .blog-detail-body {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .blog-detail-body h2 {
        font-size: 1.125rem;
        margin: 1.25rem 0 0.625rem;
    }

    .blog-intro {
        font-size: 0.9375rem;
        padding: 0.875rem;
    }

    /* Sidebar adjustments */
    .blog-sidebar-widget {
        padding: 1rem;
    }

    .blog-sidebar-title {
        font-size: 0.9375rem;
    }

    /* Tags adjustments */
    .blog-detail-tags {
        padding: 0.875rem;
        gap: 0.375rem;
    }

    .blog-tag {
        padding: 0.35rem 0.65rem;
        font-size: 0.7rem;
    }

    /* Grid adjustments */
    .blog-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    /* Breadcrumb adjustments */
    .blog-detail-breadcrumb {
        font-size: 0.7rem;
    }

    /* Meta adjustments */
    .blog-detail-author {
        font-size: 0.75rem;
    }

    .blog-detail-author-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .blog-detail-date {
        font-size: 0.75rem;
    }

    .blog-share-btn {
        width: 28px;
        height: 28px;
    }

    .blog-share-btn svg {
        width: 12px;
        height: 12px;
    }
}