:root {
    --color-caffeine: #DC143C;
    --color-caffeine-accent: #D4AF37;

    --color-citrus: #78BE20;
    --color-citrus-accent: #FDE910;

    --color-lemonade: #FDE910;
    --color-lemonade-accent: #FFFFFF;

    --color-orange: #FF7F00;
    --color-orange-accent: #FFFFFF;

    --text-light: #FFFFFF;
    --text-dark: #1A1A1A;

    --current-bg: var(--color-caffeine);
    --current-accent: var(--color-caffeine-accent);

    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: white;
    color: var(--text-light);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    color: white;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.logo img {
    height: 90px;
    filter: brightness(0) invert(1);
}

.nav-links a {
    color: white;
    text-decoration: none !important;
    margin: 0 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-btn {
    padding: 0.8rem 2rem;
    background: white;
    color: black;
    border: none;
    border-radius: 50px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1001;
    gap: 4px;
}

.hamburger span {
    width: 20px;
    height: 2.5px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero-scroll-container {
    height: 100vh;
    position: relative;
    background-color: var(--current-bg);
    transition: background-color 0.5s ease;
}

.hero-sticky-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 12rem;
    font-weight: 900;
    line-height: 0.85;
    z-index: 10;
    position: relative;
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: -2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.title-word {
    display: block;
    position: relative;
}

#word-2 {
    z-index: 10;
}

.dynamic-flavor-text {
    position: absolute;
    top: 68%;
    left: 0;
    right: 0;
    margin: 0 auto;
    color: var(--current-accent);
    transition: color 0.3s ease;
    z-index: 25;
    font-size: 12rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    overflow: visible;
    pointer-events: none;
}

/* Can Display */
.can-display-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 520px;
    z-index: 20;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.can-display-area picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-can {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateY(-100vh) rotate(-15deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-can[loading="eager"] {
    will-change: transform, opacity;
}

.hero-can.active {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.hero-can.exit-down {
    transform: translateY(100vh) rotate(15deg);
    opacity: 0;
}

.hero-can.exit-up {
    transform: translateY(-100vh) rotate(-15deg);
    opacity: 0;
}

/* Doodles */
.doodles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.doodle {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.doodle-1 {
    top: 10%;
    left: 15%;
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.doodle-2 {
    top: 20%;
    right: 10%;
    width: 120px;
    height: 60px;
    animation-delay: 1s;
}

.doodle-3 {
    bottom: 25%;
    left: 8%;
    width: 90px;
    height: 90px;
    animation-delay: 2s;
}

.doodle-4 {
    top: 60%;
    right: 15%;
    width: 70px;
    height: 70px;
    animation-delay: 0.5s;
}

.doodle-5 {
    bottom: 15%;
    right: 20%;
    width: 85px;
    height: 85px;
    animation-delay: 1.5s;
}

.doodle-6 {
    top: 35%;
    left: 5%;
    width: 75px;
    height: 75px;
    animation-delay: 2.5s;
}

.doodle-7 {
    top: 70%;
    left: 25%;
    width: 95px;
    height: 95px;
    animation-delay: 3s;
}

.doodle-8 {
    top: 15%;
    left: 40%;
    width: 65px;
    height: 65px;
    animation-delay: 1.8s;
}

@keyframes float {

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

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

.cta-container {
    position: absolute;
    bottom: 5rem;
    z-index: 30;
}

.hero-cta {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: white;
    color: black;
}

/* Tablet styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 2rem 2.5rem;
    }

    .logo img {
        height: 70px;
    }

    .hamburger {
        display: none;
    }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        background: transparent;
        width: auto;
        height: auto;
        padding: 0;
        mix-blend-mode: difference;
    }

    .nav-links a {
        margin: 0 1.2rem;
        font-size: 0.95rem;
        width: auto;
        padding: 0;
        border-bottom: none;
    }

    .shop-btn {
        display: block;
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }

    #word-1,
    #word-2 {
        display: none;
    }

    .hero-title {
        font-size: 8rem;
        line-height: 0.9;
    }

    .dynamic-flavor-text {
        font-size: 7rem;
        top: 68%;
        letter-spacing: -1px;
    }

    .can-display-area {
        width: 240px;
        height: 450px;
    }

    .cta-container {
        display: none;
    }

    .scroll-text-item {
        font-size: 1.8rem;
        padding: 0 2.5rem;
    }

    .urban-image-container {
        width: 100%;
    }

    .wave-divider {
        height: 100px;
    }

    .urban-cta-btn {
        padding: 1.3rem 3.5rem;
        font-size: 1.3rem;
    }

    .misfit-white-section {
        padding: 3rem 2rem;
    }

    .misfit-title {
        font-size: 2.5rem;
    }

    .misfit-intro {
        font-size: 1.1rem;
    }

    .misfit-purple-section {
        padding: 3rem 2rem;
        margin: 0 1.5rem 2rem 1.5rem;
        border-radius: 25px;
    }

    .brothers-section {
        padding: 3rem 2rem;
    }

    .brothers-content {
        padding: 2.5rem;
    }

    .brothers-heading {
        font-size: 2rem;
    }

    .brothers-tagline p {
        font-size: 1.5rem;
    }

    .sip-up-image-container {
        min-height: 500px;
    }

    .sip-up-purple-section {
        padding: 3rem 2rem;
    }

    .sip-up-heading {
        font-size: 3rem;
    }


    .sip-up-character {
        width: 180px;
        height: 180px;
    }

    .story-section {
        padding: 3rem 2rem;
    }

    .story-question {
        font-size: 2.5rem;
    }

    .story-image-wrapper {
        min-height: 400px;
    }

    .story-journey-text {
        font-size: 2rem;
    }

    .misfit-purple-heading {
        font-size: 2.2rem;
    }

    .misfit-purple-text {
        font-size: 1rem;
        max-width: 600px;
        padding-right: 280px;
    }

    .misfit-spoon-container {
        width: 240px;
        height: 240px;
        right: 1.5rem;
    }
}

/* Hide CTA button and "SIP THE" text on desktop */
@media (min-width: 1025px) {
    .cta-container {
        display: none;
    }

    #word-1,
    #word-2 {
        display: none;
    }

    .dynamic-flavor-text {
        top: 68%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: none;
        padding: 0 2rem;
        box-sizing: border-box;
    }
}

/* Urban Section */
.urban-section {
    position: relative;
    min-height: auto;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #45B7D1 100%);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Auto-scrolling text container */
.auto-scroll-text-container {
    position: relative;
    width: 100%;
    background: white;
    padding: 1.5rem 0;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.auto-scroll-text {
    display: flex;
    white-space: nowrap;
    animation: scroll-text 5s linear infinite;
    will-change: transform;
}

.scroll-text-item {
    display: inline-block;
    font-size: 2rem;
    font-weight: 900;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 3rem;
    font-family: var(--font-main);
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.auto-scroll-text {
    display: flex;
    white-space: nowrap;
    animation: scroll-text 15s linear infinite;
    will-change: transform;
    width: fit-content;
}

/* Urban content area */
.urban-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 5;
}

/* Urban image container */
.urban-image-container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: block;
    overflow: hidden;
}

.urban-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    min-width: 100%;
}

/* Urban CTA Button */
.urban-cta-container {
    position: relative;
    z-index: 20;
    margin-top: -60px;
    margin-bottom: 3rem;
}

.urban-cta-btn {
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    font-weight: 900;
    background: #9B59B6;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-main);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.urban-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.urban-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.urban-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(155, 89, 182, 0.6);
}

.urban-cta-btn:active {
    transform: translateY(-1px);
}

/* Features Section */
.features-section {
    background: white;
    padding: 4rem 2rem;
    width: 100%;
    position: relative;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-heading {
    font-size: 3.5rem;
    font-weight: 900;
    color: #4ECDC4;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--font-main);
}

.features-ps {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A1A;
    text-transform: uppercase;
    margin-bottom: 4rem;
    font-family: var(--font-main);
}

.features-icons {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.feature-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
    font-family: var(--font-main);
}

/* SIP Section */
.sip-section {
    position: relative;
    min-height: 100vh;
    background: #FDE910;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    transition: background-color 0.5s ease;
}

.sip-wave-bg {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.sip-wave-top {
    top: 0;
}

.sip-wave-bottom {
    bottom: 0;
    transform: rotate(180deg);
}

.sip-wave-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sip-wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.sip-wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    min-width: 100%;
}

.sip-background-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    opacity: 1;
    pointer-events: none;
    transform: none;
    padding: 2rem 0;
}

.sip-text-item {
    font-size: 8rem;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 15px;
    white-space: normal;
    font-family: var(--font-main);
    line-height: 1.1;
    position: relative;
    transform: none;
    opacity: 1;
    width: 100%;
    text-align: center;
    display: block;
}

.sip-text-item:nth-child(1) {
    margin-top: 0;
    margin-bottom: auto;
}

.sip-text-item:nth-child(2) {
    display: none;
}

.sip-text-item:nth-child(3) {
    margin-top: auto;
    margin-bottom: 0;
}

.sip-text-item:nth-child(4) {
    display: none;
}

.sip-text-mobile {
    display: none;
}

.sip-content {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sip-character-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    min-height: 400px;
}

.sip-character {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sip-character.active {
    opacity: 1;
    position: relative;
}

/* Misfit Section */
.misfit-section {
    background: white;
    width: 100%;
    position: relative;
}

.misfit-white-section {
    background: white;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.misfit-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--font-main);
    text-align: left;
}

.misfit-intro {
    font-size: 1.2rem;
    font-weight: 400;
    color: #1A1A1A;
    line-height: 1.6;
    font-family: var(--font-main);
    text-align: left;
    max-width: 900px;
}

.misfit-purple-section {
    background: #9B59B6;
    padding: 4rem 2rem;
    margin: 0 2rem 2rem 2rem;
    border-radius: 30px;
    position: relative;
    overflow: visible;
    min-height: 400px;
}

.misfit-card-4 {
    background: #6A4C93;
}

.misfit-purple-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    min-height: 300px;
}

.misfit-purple-heading {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--font-main);
}

.misfit-purple-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: white;
    line-height: 1.7;
    font-family: var(--font-main);
    max-width: 700px;
    margin-bottom: 0;
    padding-right: 350px;
}

.misfit-spoon-container {
    position: absolute;
    bottom: 0;
    right: 2rem;
    width: 300px;
    height: 300px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.misfit-spoon-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: rotate(-15deg);
    opacity: 0.9;
}

.low-calorie-img {
    transform: rotate(0deg) !important;
    width: 80% !important;
    max-width: 240px !important;
}

/* Rebel Section */
.rebel-section {
    background: white;
    width: 100%;
    position: relative;
    padding: 4rem 0 0 0;
}

.rebel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.rebel-cans-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 520px;
    z-index: 1;
}

.rebel-can {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.rebel-can.active {
    opacity: 1;
    transform: scale(1);
}

.rebel-tape-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    max-width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rebel-tape-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 100%;
}

.rebel-purple-section {
    background: #E8D5F2;
    padding: 3rem 2rem;
    margin-top: 2rem;
    width: 100%;
}

.rebel-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: #1A1A1A;
    line-height: 1.7;
    font-family: var(--font-main);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Story Section */
.story-section {
    background: white;
    width: 100%;
    padding: 4rem 2rem;
    position: relative;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.story-question {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 3rem;
    line-height: 1.2;
    font-family: var(--font-main);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.story-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-doodles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.story-doodles svg {
    position: absolute;
    width: 60px;
    height: 60px;
}

.doodle-exclamation-1 {
    top: 10%;
    left: 45%;
    width: 40px;
    height: 60px;
}

.doodle-exclamation-2 {
    top: 10%;
    left: 50%;
    width: 40px;
    height: 60px;
}

.doodle-crown {
    top: 5%;
    right: 20%;
    width: 50px;
    height: 50px;
}

.doodle-lightning {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 50px;
}

.doodle-cloud-1 {
    top: 20%;
    left: 10%;
    width: 70px;
    height: 50px;
}

.doodle-cloud-2 {
    bottom: 25%;
    left: 15%;
    width: 60px;
    height: 45px;
}

.doodle-flower {
    top: 30%;
    left: 5%;
    width: 50px;
    height: 50px;
}


.doodle-quotes {
    bottom: 20%;
    right: 20%;
    width: 80px;
    height: 50px;
}

.doodle-squiggle-1 {
    top: 15%;
    left: 25%;
    width: 60px;
    height: 30px;
}

.doodle-squiggle-2 {
    bottom: 15%;
    right: 25%;
    width: 60px;
    height: 30px;
}

.story-brothers-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.brothers-main-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.story-journey-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-top: 2rem;
    line-height: 1.2;
    font-family: var(--font-main);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Brothers Section */
.brothers-section {
    background: white;
    width: 100%;
    padding: 1rem 2rem 4rem 2rem;
    position: relative;
    margin-top: -2rem;
}

.brothers-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
}

.brothers-heading {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: var(--font-main);
}

.brothers-text {
    margin-bottom: 3rem;
}

.brothers-text p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #1A1A1A;
    line-height: 1.7;
    font-family: var(--font-main);
    margin-bottom: 1.5rem;
}

.brothers-text p:last-child {
    margin-bottom: 0;
}

.brothers-tagline {
    text-align: center;
    margin-top: 3rem;
}

.brothers-tagline p {
    font-size: 2rem;
    font-weight: 900;
    color: #4ECDC4;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    font-family: var(--font-main);
    margin: 0.5rem 0;
}

/* SIP UP Section */
.sip-up-section {
    background: white;
    width: 100%;
    position: relative;
}

.sip-up-photo-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.sip-up-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 2;
    display: block;
}

.sip-up-image-container {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.sip-up-man-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.sip-up-purple-section {
    background: #5A8F18;
    width: 100%;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}


.sip-up-heading {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.2;
    font-family: var(--font-main);
}

.sip-up-characters {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.sip-up-character {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sip-up-char-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sip-up-help-section {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 2rem;
}

.sip-up-help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-bottom: 2px solid white;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.sip-up-help-header:hover {
    opacity: 0.8;
}

.sip-up-help-header.active {
    background: transparent;
}

.sip-up-help-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-main);
}

.sip-up-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sip-up-help-header.active .sip-up-chevron {
    transform: rotate(180deg);
}

.sip-up-faq-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: transparent;
}

.sip-up-faq-container.active {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.sip-up-faq-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sip-up-faq-item:last-child {
    border-bottom: none;
}

.sip-up-faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
    font-family: var(--font-main);
}

.sip-up-faq-answer {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-family: var(--font-main);
}

/* Spacer for scrolling */
.content-spacer {
    height: 100vh;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

/* Footer */
.footer {
    background: #1A1A1A;
    color: white;
    padding: 4rem 2rem 2rem 2rem;
    width: 100%;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-main);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-main);
}

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

.footer-list li {
    margin-bottom: 0.8rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-family: var(--font-main);
}

.footer-list a:hover {
    color: #4ECDC4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-main);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--font-main);
}

.footer-legal a:hover {
    color: #4ECDC4;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

.footer-developer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.developer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-main);
    margin: 0;
}

.developer-link {
    color: #5A8F18;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    font-family: var(--font-main);
}

.developer-link:hover {
    color: #78BE20;
}

@media (max-width: 768px) {
    .navbar {
        padding: 3rem 1.5rem 1rem 1.5rem;
        justify-content: center;
        position: fixed;
        mix-blend-mode: difference;
    }


    .logo {
        position: absolute;
        left: 50%;
        top: 60%;
        transform: translate(-50%, -50%);
    }

    .logo img {
        height: 150px;
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: 1.5rem;
        top: 60%;
        transform: translateY(-50%);
        align-items: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #FFFFFF !important;
        background-color: #FFFFFF !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        z-index: 10000 !important;
        mix-blend-mode: normal !important;
        isolation: isolate;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        will-change: right;
        transform: translateZ(0);
        backface-visibility: hidden;
        list-style: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #FFFFFF;
        z-index: -1;
        mix-blend-mode: normal;
    }

    body:has(.nav-links.active)::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 9999;
        pointer-events: none;
    }

    .nav-links a {
        display: block;
        margin: 0;
        font-size: 1.2rem;
        width: 100%;
        padding: 1rem 0;
        color: #1A1A1A;
        border-bottom: none !important;
        text-decoration: none !important;
        list-style: none;
    }

    .shop-btn {
        display: none;
    }

    .hero-title {
        font-size: 5rem;
        line-height: 0.9;
        justify-content: flex-start;
        padding-top: 5rem;
    }

    .dynamic-flavor-text {
        font-size: 3.2rem;
        top: 75%;
        letter-spacing: -2px;
        width: 100%;
        max-width: 100vw;
        padding: 0 1rem;
        box-sizing: border-box;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        overflow: hidden;
    }

    .can-display-area {
        width: 200px;
        height: 350px;
    }

    .auto-scroll-text-container {
        padding: 1rem 0;
    }

    .scroll-text-item {
        font-size: 1.2rem;
        padding: 0 2rem;
        letter-spacing: 1px;
    }

    .urban-content {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .urban-image-container {
        margin-bottom: 0;
        width: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        overflow: hidden;
    }

    .urban-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center bottom;
        display: block;
    }

    .wave-divider {
        height: 60px;
        width: 100vw;
        max-width: 100vw;
        left: 0;
    }

    .wave-divider svg {
        width: 100vw;
        max-width: 100vw;
    }

    .urban-cta-container {
        margin-top: -30px;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .urban-cta-btn {
        padding: 1.2rem 3rem;
        font-size: 1.2rem;
    }

    .features-section {
        padding: 2rem 1rem;
        margin-top: 0;
    }

    .features-heading {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }

    .features-ps {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .features-icons {
        gap: 1.5rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-label {
        font-size: 0.8rem;
    }

    .sip-section {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .sip-background-text {
        padding: 0.8rem 0;
        gap: 1rem;
        justify-content: center;
    }

    .sip-text-item {
        font-size: 3.5rem;
        letter-spacing: 10px;
        line-height: 0.88;
        margin: 0.5rem 0;
    }

    .sip-text-item:nth-child(1) {
        margin-bottom: 0.5rem;
    }

    .sip-text-item:nth-child(3) {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .sip-text-mobile {
        display: block;
    }

    .sip-text-item:nth-child(5) {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .sip-text-item:nth-child(6) {
        margin-top: 0.5rem;
    }

    .sip-character-container {
        max-width: 100%;
        width: 100%;
        min-height: 350px;
    }

    .sip-character {
        width: 110%;
        height: auto;
        object-fit: contain;
        margin-left: -5%;
    }

    .misfit-white-section {
        padding: 2rem 1.5rem;
    }

    .misfit-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .misfit-intro {
        font-size: 1rem;
        line-height: 1.5;
    }

    .misfit-purple-section {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem 1.5rem 1rem;
        border-radius: 20px;
    }

    .misfit-purple-heading {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .misfit-purple-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        max-width: 100%;
        padding-right: 0;
    }

    .misfit-purple-content {
        min-height: auto;
    }

    .misfit-purple-section {
        min-height: auto;
    }

    .rebel-section {
        padding: 2rem 0 0 0;
    }

    .rebel-container {
        max-width: 100%;
        min-height: 400px;
        padding: 0 1rem;
    }

    .rebel-cans-container {
        max-width: 250px;
        height: 400px;
    }

    .rebel-tape-img {
        max-width: 100%;
    }

    .rebel-purple-section {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }

    .rebel-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .brothers-section {
        padding: 2rem 1.5rem;
    }

    .brothers-content {
        padding: 2rem 1.5rem;
    }

    .brothers-heading {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .sip-up-image-container {
        min-height: 400px;
        overflow: hidden;
        position: relative;
    }

    .sip-up-man-img {
        width: 100%;
        height: 100%;
        min-height: 400px;
        object-fit: cover;
        object-position: center;
        position: absolute;
        top: 0;
        left: 0;
    }

    .sip-up-wave {
        height: 60px;
    }

    .sip-up-purple-section {
        padding: 2.5rem 1.5rem;
    }

    .sip-up-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
        letter-spacing: 1px;
    }

    .sip-up-characters {
        margin-bottom: 2rem;
    }

    .sip-up-character {
        width: 150px;
        height: 150px;
    }

    .sip-up-links-section {
        gap: 1rem;
    }

    .sip-up-link-item {
        padding: 1.2rem 1.5rem;
    }

    .sip-up-help-section {
        margin-top: 1.5rem;
    }

    .sip-up-help-header {
        padding: 1.2rem 1.5rem;
    }

    .sip-up-help-text {
        font-size: 1.2rem;
    }

    .sip-up-faq-item {
        padding: 1.2rem 1.5rem;
    }

    .sip-up-faq-question {
        font-size: 1.1rem;
    }

    .sip-up-faq-answer {
        font-size: 0.9rem;
    }

    .footer {
        padding: 3rem 1.5rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-legal {
        justify-content: center;
    }

    .brothers-text {
        margin-bottom: 2rem;
    }

    .brothers-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .brothers-tagline {
        margin-top: 2rem;
    }

    .brothers-tagline p {
        font-size: 1.2rem;
        letter-spacing: 1px;
        margin: 0.4rem 0;
    }

    .story-section {
        padding: 2rem 1.5rem;
    }

    .story-question {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .story-image-wrapper {
        min-height: 350px;
        margin-bottom: 2rem;
    }

    .story-doodles svg {
        width: 40px;
        height: 40px;
    }

    .doodle-exclamation-1,
    .doodle-exclamation-2 {
        width: 30px;
        height: 45px;
    }

    .story-journey-text {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .misfit-spoon-container {
        position: relative;
        width: 180px;
        height: 180px;
        bottom: auto;
        right: auto;
        margin-top: 1.5rem;
        margin-left: auto;
    }

    .misfit-spoon-img {
        transform: rotate(-10deg);
    }

    .low-calorie-img {
        transform: rotate(0deg) !important;
    }
}

/* Very small mobile devices */
@media (max-width: 375px) {
    .dynamic-flavor-text {
        font-size: 2.8rem;
        letter-spacing: -3px;
        width: calc(100% - 1rem);
        padding: 0 0.5rem;
    }
}

/* Contact Page Styles */
.contact-hero {
    background: #FF7F00;
    padding: 8rem 2rem 4rem 2rem;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-family: var(--font-main);
}

.contact-hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    font-family: var(--font-main);
}

.contact-section {
    background: white;
    padding: 4rem 2rem;
    width: 100%;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
}

.contact-form-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1A1A1A;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-family: var(--font-main);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    font-family: var(--font-main);
}

.form-input,
.form-textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4ECDC4;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    padding: 1.2rem 3rem;
    background: #4ECDC4;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    margin-top: 0.5rem;
}

.contact-submit-btn:hover {
    background: #5A8F18;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 143, 24, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-info-wrapper {
    display: flex;
    align-items: flex-start;
}

.contact-info {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
}

.contact-info-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1A1A1A;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-family: var(--font-main);
}

.contact-info-item {
    margin-bottom: 2.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4ECDC4;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-main);
}

.contact-info-item p {
    font-size: 1rem;
    color: #1A1A1A;
    line-height: 1.6;
    font-family: var(--font-main);
}

.contact-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-social-link {
    color: #1A1A1A;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    font-family: var(--font-main);
}

.contact-social-link:hover {
    color: #4ECDC4;
}

.contact-website-link {
    color: #4ECDC4;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
    font-family: var(--font-main);
}

.contact-website-link:hover {
    color: #5A8F18;
}

.contact-email-link {
    color: #1A1A1A;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
    font-family: var(--font-main);
}

.contact-email-link:hover {
    color: #4ECDC4;
}

/* Form Success Message */
.form-success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.success-icon {
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1A1A1A;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-family: var(--font-main);
}

.success-text {
    font-size: 1.1rem;
    color: #1A1A1A;
    line-height: 1.6;
    max-width: 500px;
    font-family: var(--font-main);
}

/* Contact Page Responsive */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-hero-title {
        font-size: 3rem;
    }

    .contact-hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 6rem 1.5rem 3rem 1.5rem;
        margin-top: 60px;
    }

    .contact-hero-title {
        font-size: 2.5rem;
    }

    .contact-section {
        padding: 3rem 1.5rem;
    }

    .contact-form-wrapper,
    .contact-info {
        padding: 2rem;
    }

    .contact-form-title,
    .contact-info-title {
        font-size: 1.8rem;
    }

    .form-success-message {
        padding: 2rem 1.5rem;
        min-height: 300px;
    }

    .success-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1.5rem;
    }

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

    .success-text {
        font-size: 1rem;
    }
}

/* ============================================
   BLOG SECTION STYLES
   ============================================ */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #4ECDC4 0%, #9B59B6 100%);
    padding: 8rem 2rem 4rem 2rem;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-family: var(--font-main);
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    font-family: var(--font-main);
}

/* Blog Section */
.blog-section {
    background: white;
    padding: 4rem 2rem;
    width: 100%;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-loading,
.blog-error {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
}

.blog-error {
    color: #DC143C;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 0.8rem;
    font-family: var(--font-main);
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: var(--font-main);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    font-family: var(--font-main);
}

.no-posts-message {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
    grid-column: 1 / -1;
}

/* Blog Post Page */
.blog-post-page {
    background: white;
    min-height: 100vh;
    padding-top: 80px;
}

.blog-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blog-back-link {
    display: inline-block;
    color: #4ECDC4;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: var(--font-main);
    transition: color 0.3s ease;
}

.blog-back-link:hover {
    color: #9B59B6;
}

.blog-post-header {
    margin-bottom: 3rem;
}

.blog-post-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--font-main);
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    font-family: var(--font-main);
}

.post-author,
.post-date {
    font-weight: 600;
}

.blog-post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-family: var(--font-main);
}

.blog-post-body {
    margin-bottom: 3rem;
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #1A1A1A;
}

.blog-post-body h1 {
    font-size: 2.5rem;
}

.blog-post-body h2 {
    font-size: 2rem;
}

.blog-post-body h3 {
    font-size: 1.5rem;
}

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

.blog-post-body a {
    color: #4ECDC4;
    text-decoration: none;
    font-weight: 600;
}

.blog-post-body a:hover {
    text-decoration: underline;
}

/* Styles for Quill-generated HTML content */
.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.blog-post-body li {
    margin: 0.5rem 0;
}

.blog-post-body blockquote {
    border-left: 4px solid #4ECDC4;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.blog-post-body code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-post-body pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-body pre code {
    background: none;
    padding: 0;
}

.blog-post-body strong {
    font-weight: 700;
}

.blog-post-body em {
    font-style: italic;
}

.blog-post-body u {
    text-decoration: underline;
}

.blog-post-body s {
    text-decoration: line-through;
}


/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

.admin-body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: var(--font-main);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* When showing login, make wrapper full screen */
body.showing-login .admin-wrapper {
    width: 100%;
    height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #1A1A1A;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    color: white;
}

.admin-nav {
    padding: 1rem 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: #333;
    color: white;
    border-left-color: #4ECDC4;
}

.admin-main-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
}

/* When showing login form, make main content full width and height */
.admin-main-content.login-mode {
    margin-left: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-section-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #1A1A1A;
    margin: 0;
}

.admin-posts-list {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-posts-section {
    margin-bottom: 2rem;
}

.admin-posts-section:last-child {
    margin-bottom: 0;
}

.admin-section-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.admin-post-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.admin-post-row:last-child {
    border-bottom: none;
}

.admin-post-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 0.5rem 0;
}

.admin-post-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-post-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-form-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

.admin-form-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
}

.admin-form {
    max-width: 800px;
}

.image-preview {
    border-radius: 10px;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #4ECDC4;
    color: white;
}

.btn-primary:hover {
    background: #3bb5ae;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(78, 205, 196, 0.3);
}

.btn-secondary {
    background: #666;
    color: white;
}

.btn-secondary:hover {
    background: #555;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-edit {
    background: #4ECDC4;
    color: white;
}

.btn-delete {
    background: #DC143C;
    color: white;
}

.btn-delete:hover {
    background: #b81235;
}

.btn-publish {
    background: #4ECDC4;
    color: white;
}

.btn-publish:hover {
    background: #3bb5ae;
}

.btn-unpublish {
    background: #FF7F00;
    color: white;
}

.btn-unpublish:hover {
    background: #e66f00;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: #4ECDC4;
    color: white;
}

.badge-draft {
    background: #999;
    color: white;
}

/* Admin Login */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: #f5f5f5;
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;
}

.admin-login-box {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.admin-login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-logo-image {
    height: 120px;
    width: auto;
    filter: brightness(0);
    object-fit: contain;
}

.admin-login-box h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #1A1A1A;
    margin-bottom: 2rem;
    text-align: center;
}

.admin-login-hint {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    margin-top: 1rem;
}

.admin-login-box .form-group {
    margin-bottom: 1.5rem;
}

.admin-login-box .form-group:last-of-type {
    margin-bottom: 2rem;
}

.admin-login-box label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1A1A1A;
    font-family: var(--font-main);
}

.admin-login-box input[type="text"],
.admin-login-box input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.admin-login-box input[type="text"]:focus,
.admin-login-box input[type="password"]:focus {
    outline: none;
    border-color: #4ECDC4;
}

/* Password input wrapper with toggle button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
    outline: none;
}

.password-toggle-btn:hover {
    color: #4ECDC4;
}

.password-toggle-btn:focus {
    color: #4ECDC4;
    outline: 2px solid #4ECDC4;
    outline-offset: 2px;
    border-radius: 4px;
}

.password-toggle-btn .eye-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.admin-login-box .btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .admin-post-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-post-actions {
        width: 100%;
        justify-content: flex-end;
    }

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

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

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

}

/* ============================================
   ENHANCED ADMIN PANEL STYLES
   ============================================ */

/* Enhanced Sidebar */
.admin-sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
}

.admin-logo h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    color: white;
}

.admin-username-display {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 0.25rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
}

.nav-icon {
    display: none;
}

/* Dashboard Stats */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4ECDC4 0%, #9B59B6 100%);
    border-radius: 15px;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1A1A1A;
    margin: 0 0 0.5rem 0;
    font-family: var(--font-main);
}

.stat-content p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-family: var(--font-main);
}

/* Enhanced Section Headers */
.admin-section-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: 400;
    font-family: var(--font-main);
}

/* Admin Toolbar */
.admin-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.admin-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.admin-search-input:focus {
    outline: none;
    border-color: #4ECDC4;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 50%;
}

.search-icon::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 8px;
    height: 2px;
    background: #999;
    transform: rotate(45deg);
}

.admin-filters {
    display: flex;
    gap: 0.5rem;
}

.admin-filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.admin-filter-select:focus {
    outline: none;
    border-color: #4ECDC4;
}

.btn-danger {
    background: #DC143C;
    color: white;
}

.btn-danger:hover {
    background: #b81235;
}

.btn-view {
    background: #9B59B6;
    color: white;
    text-decoration: none;
}

.btn-view:hover {
    background: #8e44ad;
}

/* Enhanced Post Cards */
.admin-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    gap: 1.5rem;
}

.admin-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    width: 200px;
    min-width: 200px;
    height: 150px;
    overflow: hidden;
    background: #f0f0f0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-post-card-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.admin-post-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    flex: 1;
    font-family: var(--font-main);
    line-height: 1.3;
}

.admin-post-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: var(--font-main);
}

.admin-post-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #999;
    font-family: var(--font-main);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}


/* Empty State */
.admin-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    font-family: var(--font-main);
}

.admin-empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Form Overlay */
.admin-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.admin-form-container {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.admin-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.admin-form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    font-family: var(--font-main);
}

.form-close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.form-close-btn:hover {
    background: #f0f0f0;
    color: #1A1A1A;
}

/* Quill Rich Text Editor Styles */
#blog-content-editor,
#blog-content-editor .ql-container {
    font-family: var(--font-main);
    font-size: 1rem;
    min-height: 300px;
}

#blog-content-editor .ql-editor {
    min-height: 300px;
    padding: 1.5rem;
    line-height: 1.6;
    color: #000000 !important;
}

#blog-content-editor .ql-editor p,
#blog-content-editor .ql-editor div,
#blog-content-editor .ql-editor span,
#blog-content-editor .ql-editor li,
#blog-content-editor .ql-editor h1,
#blog-content-editor .ql-editor h2,
#blog-content-editor .ql-editor h3,
#blog-content-editor .ql-editor h4,
#blog-content-editor .ql-editor h5,
#blog-content-editor .ql-editor h6 {
    color: #000000 !important;
}

#blog-content-editor .ql-editor.ql-blank::before {
    color: #999 !important;
    font-style: normal;
}

#blog-content-editor .ql-toolbar {
    background: #f8f9fa;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #ddd;
    padding: 12px;
}

#blog-content-editor .ql-toolbar button {
    padding: 6px 10px;
    margin: 2px;
    border-radius: 4px;
}

#blog-content-editor .ql-toolbar button:hover {
    background: #e9ecef;
}

#blog-content-editor .ql-toolbar button.ql-active {
    background: #1A1A1A;
    color: white;
}

#blog-content-editor .ql-stroke {
    stroke: #1A1A1A;
}

#blog-content-editor .ql-fill {
    fill: #1A1A1A;
}

#blog-content-editor .ql-picker-label {
    color: #1A1A1A;
}

/* Image Upload Tabs */
.image-upload-options {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.image-upload-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.upload-tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.upload-tab-btn:hover {
    background: #e9ecef;
    color: #1A1A1A;
}

.upload-tab-btn.active {
    background: white;
    color: #1A1A1A;
    border-bottom-color: #4ECDC4;
}

.image-upload-section {
    padding: 1rem;
    background: white;
}

.image-upload-section small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.admin-form {
    padding: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group-full {
    flex: 1;
}

.form-group {
    flex: 1;
}

.image-preview-container {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    display: block;
    margin-bottom: 0.5rem;
}

.remove-image-btn {
    background: #DC143C;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-main);
    transition: background 0.3s ease;
}

.remove-image-btn:hover {
    background: #b81235;
}

/* Enhanced Admin Post Row (Legacy support) */
.admin-post-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.admin-post-row:hover {
    background: #f8f9fa;
}

.admin-post-row:last-child {
    border-bottom: none;
}

.admin-post-info {
    flex: 1;
}

.admin-post-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 0.5rem 0;
    font-family: var(--font-main);
}

.admin-post-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--font-main);
}

.admin-post-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Responsive Admin Enhancements */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search-box {
        max-width: 100%;
    }

    .admin-post-card {
        flex-direction: column;
    }

    .post-thumbnail {
        width: 100%;
        height: 200px;
    }

    .admin-form-container {
        margin: 1rem;
        max-height: 95vh;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Tablet styles for Admin Panel (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .admin-sidebar-header {
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
        min-width: 250px;
        border-right: 1px solid #333;
        border-bottom: none;
        flex-shrink: 0;
    }

    .admin-logo {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .admin-logo h2 {
        font-size: 1.3rem;
        margin: 0;
    }

    .admin-username-display {
        font-size: 0.8rem;
        margin-top: 0;
    }

    #admin-logout {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .admin-nav {
        display: flex;
        flex-direction: row;
        padding: 0;
        overflow-x: auto;
        flex: 1;
    }

    .admin-nav-link {
        padding: 1rem 1.5rem;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        flex-direction: column;
        gap: 0.25rem;
        min-width: 100px;
        text-align: center;
    }

    .admin-nav-link:hover,
    .admin-nav-link.active {
        border-left: none;
        border-bottom-color: #4ECDC4;
        background: #333;
    }

    .admin-nav-link span:not(.nav-icon) {
        font-size: 0.85rem;
    }

    .nav-icon {
        font-size: 1.5rem;
    }

    .admin-main-content {
        margin-left: 0;
        padding: 1.5rem;
        width: 100%;
    }

    .admin-section-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .admin-section-header h2 {
        font-size: 1.75rem;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .admin-stat-card {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .stat-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .stat-content h3 {
        font-size: 2rem;
    }

    .admin-toolbar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .admin-search-box {
        flex: 1;
        min-width: 200px;
    }

    .admin-filters {
        flex-shrink: 0;
    }

    .admin-post-card {
        flex-direction: row;
        gap: 1.25rem;
    }

    .post-thumbnail {
        width: 180px;
        min-width: 180px;
        height: 140px;
    }

    .admin-post-card-content {
        flex: 1;
    }

    .admin-post-header h4 {
        font-size: 1.1rem;
    }

    .admin-post-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn-sm {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }

    /* Form Overlay adjustments for tablet */
    .admin-form-overlay {
        padding: 1.5rem;
    }

    .admin-form-container {
        max-width: 95%;
        max-height: 90vh;
    }

    .admin-form-header {
        padding: 1.25rem 1.5rem;
    }

    .admin-form-header h3 {
        font-size: 1.3rem;
    }

    .admin-form {
        padding: 1.5rem;
    }

    .form-row {
        gap: 1rem;
    }

    /* Quill editor adjustments */
    #blog-content-editor {
        min-height: 350px;
    }

    #blog-content-editor .ql-container {
        min-height: 350px;
    }

    #blog-content-editor .ql-editor {
        min-height: 350px;
        padding: 1.25rem;
    }

    /* Image upload tabs */
    .image-upload-tabs {
        flex-wrap: wrap;
    }

    .upload-tab-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    /* Section header adjustments */
    .admin-section-subtitle {
        font-size: 0.9rem;
    }

    /* Dashboard adjustments */
    .admin-posts-list {
        padding: 1.25rem;
    }

    .admin-post-card {
        padding: 1.25rem;
    }

    /* Form adjustments */
    .image-upload-section {
        padding: 0.75rem;
    }

    /* Better spacing for tablet */
    .admin-section {
        padding: 0;
    }

    /* Hide scrollbar on horizontal nav but keep functionality */
    .admin-nav::-webkit-scrollbar {
        height: 4px;
    }

    .admin-nav::-webkit-scrollbar-track {
        background: #333;
    }

    .admin-nav::-webkit-scrollbar-thumb {
        background: #4ECDC4;
        border-radius: 2px;
    }
}