/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent text selection */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for form inputs and textareas */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

:root {
    --primary-color: #0f172a;
    /* Deep Slate */
    --secondary-color: #f59e0b;
    /* Amber/Gold */
    --accent-color: #3b82f6;
    /* Royal Blue */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

/* Increase logo font size on desktop */
@media (min-width: 769px) {
    .logo {
        font-size: 1.875rem;
        /* 25% increase from 1.5rem */
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.admin-link {
    color: var(--accent-color);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('Images/Patsy hero.jpeg');
    background-size: cover;
    background-position: center 80px;
    background-attachment: fixed;
    padding-top: 80px;
    color: white;
    text-align: center;
}

/* Reduce hero height on desktop to fit with magazine bar above fold */
@media (min-width: 769px) {
    .hero {
        height: 70vh;
        min-height: 800px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Magazine Covers Scrolling Bar */
.magazine-covers-bar {
    background: var(--bg-white);
    padding: 12px 0;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.magazine-covers-container {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    z-index: 1;
}

.magazine-covers-container::before,
.magazine-covers-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 5;
    pointer-events: none;
}

.magazine-covers-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}

.magazine-covers-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

.magazine-covers-scroll {
    display: flex;
    gap: 20px;
    animation: scrollMagazines 40s linear infinite;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.magazine-covers-scroll:hover {
    animation-play-state: paused;
}

.magazine-cover {
    height: 80px;
    width: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    transform-origin: center center;
    display: block;
}

.magazine-cover:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

@keyframes scrollMagazines {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Desktop: Larger covers, above the fold */
@media (min-width: 769px) {
    .magazine-covers-bar {
        padding: 20px 0;
        position: relative;
        z-index: 10;
        background: var(--bg-white);
    }

    .magazine-cover {
        height: 80px;
    }

    .magazine-cover:hover {
        transform: scale(2);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        position: relative;
    }

    .magazine-covers-scroll {
        gap: 15px;
        padding: 40px 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .magazine-covers-bar {
        padding: 12px 0;
    }

    .magazine-cover {
        height: 70px;
    }

    .magazine-covers-scroll {
        gap: 12px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Styles */
section {
    padding: 25px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
}

/* Gallery Section */
.gallery {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 3/4;
    /* 1200x1600 = 3:4 portrait ratio */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-white);
    transition: var(--transition);
}

.gallery-item:nth-child(6) img {
    object-fit: cover;
}

.gallery-overlay {
    display: none !important;
}

/* Hover effects */
@media (min-width: 769px) {
    .gallery-item:hover img {
        transform: scale(1.05);
    }
}

.gallery-zoom {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Blog Section */
.blog {
    background: var(--bg-white);
}

.blog-preview {
    padding: 25px 0;
}

.blog-preview-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.blog-preview-title {
    flex-shrink: 0;
    min-width: 200px;
}

.blog-preview-title .section-title {
    margin-bottom: 10px;
    text-align: left;
}

.blog-preview-title .title-underline {
    margin: 0;
}

.blog-preview-cta {
    flex-shrink: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    flex: 1;
}

.blog-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    flex: 1;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-grid-compact .blog-card {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.blog-grid-compact .blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-light);
}

.blog-grid-compact .blog-card-image {
    height: 180px;
}

.blog-card-content {
    padding: 30px;
}

.blog-grid-compact .blog-card-content {
    padding: 20px;
}

.blog-card-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-grid-compact .blog-card-date {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.blog-grid-compact .blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-grid-compact .blog-card-excerpt {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-author {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.blog-page {
    background: var(--bg-white);
    min-height: calc(100vh - 200px);
}

.blog-post-detail {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 20px;
}

/* Compact contact section for desktop */
@media (min-width: 769px) {
    .contact .section-header {
        margin-bottom: 20px;
    }

    .contact .section-title {
        font-size: 2rem;
        margin-bottom: 6px;
    }

    .contact .title-underline {
        margin-bottom: 0;
    }
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item strong {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-item span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #cbd5e1;
    /* Darker border for better visibility */
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Admin Section */
.admin {
    background: var(--bg-white);
    min-height: 80vh;
    display: none;
    /* Hidden by default - shown via JS when auth'd */
}

.admin-panel {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.admin-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.tab-btn.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-form {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-item-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.post-item-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.post-item-actions {
    display: flex;
    gap: 10px;
}

/* User Management */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-item {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.user-item-info {
    flex: 1;
}

.user-item-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.user-item-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 2px 0;
}

.user-item-actions {
    display: flex;
    gap: 10px;
}

.btn-edit {
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-edit:hover {
    background: #e67e22;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* About Page Styles */
.about-page {
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
    min-height: calc(100vh - 200px);
    padding: 80px 0 60px;
}

.about-page .section-header {
    margin-bottom: 50px;
}

.about-page .section-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Representation page specific styles */
.representation-page .about-intro {
    background: transparent;
    border-left: none;
    padding: 0;
    margin-bottom: 40px;
}

.representation-page .about-intro p {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.02) 0%, rgba(245, 158, 11, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.representation-page .about-intro p:last-child {
    margin-bottom: 0;
}

.representation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
    align-items: start;
}

.representation-grid .about-content {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 3px solid var(--secondary-color);
}

.representation-grid .about-content h2 {
    margin-top: 0;
    margin-bottom: 8px;
    text-align: left;
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.representation-grid .about-content p {
    margin-bottom: 0.8em;
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
}

.representation-grid .about-content p:last-child {
    margin-bottom: 0;
}

.representation-grid .about-content p:last-child {
    margin-bottom: 0;
}

.representation-grid .about-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.representation-page .contact-info {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(245, 158, 11, 0.05) 100%);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--secondary-color);
}

.representation-page .contact-info h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.representation-page .logo-section {
    text-align: center;
    margin-bottom: 35px;
    padding: 25px 30px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.representation-page .logo-section img {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .representation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .representation-grid .about-content {
        padding: 25px;
    }
    
    .representation-page .contact-info {
        padding: 30px 20px;
    }
}

.about-page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.02) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.about-intro p {
    margin-bottom: 20px !important;
}

.about-intro p:last-child {
    margin-bottom: 0 !important;
}

/* About page specific timeline styling - more compact */
.career-timeline {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.about-page .timeline-container {
    position: relative;
    padding-left: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Two-column layout for desktop */
@media (min-width: 992px) {
    .about-page .timeline-container {
        grid-template-columns: 1fr 1fr;
        gap: 8px 50px;
        padding-left: 0;
        column-gap: 50px;
    }
    
    .about-page .timeline-container::before {
        display: none;
    }
    
    .about-page .timeline-item {
        padding-left: 0;
        margin-bottom: 6px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    
    .about-page .timeline-item::before {
        display: none;
    }
}

.about-page .timeline-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.about-page .timeline-item {
    position: relative;
    margin-bottom: 8px;
    padding: 12px 15px;
    padding-left: 25px;
    padding-right: 15px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-page .timeline-item:hover {
    background: rgba(245, 158, 11, 0.05);
    transform: translateX(5px);
}

/* About page timeline dots and year styling */
.about-page .timeline-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid var(--bg-white);
    box-shadow: 0 0 0 1px var(--secondary-color);
}

.about-page .timeline-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.about-page .timeline-content {
    font-size: 0.95rem;
    line-height: 1.5;
    display: inline-block;
    flex: 1;
}

.about-page .timeline-content p {
    margin: 0;
    display: inline;
}

.timeline-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.timeline-content em {
    font-style: italic;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .timeline-container {
        padding-left: 25px;
    }

    .timeline-item {
        padding-left: 25px;
        margin-bottom: 15px;
    }

    .timeline-item::before {
        left: -18px;
        width: 14px;
        height: 14px;
    }

    .timeline-year {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }

    .timeline-content {
        font-size: 1rem;
    }

    /* About page specific mobile styles */
    .about-page .timeline-container {
        padding-left: 20px;
        grid-template-columns: 1fr;
    }

    .about-page .timeline-item {
        padding-left: 20px;
        margin-bottom: 8px;
    }

    .about-page .timeline-item::before {
        left: -16px;
        width: 8px;
        height: 8px;
    }

    .about-page .timeline-year {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .about-page .timeline-content {
        font-size: 0.9rem;
    }
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #c82333;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    max-width: 200px;
}

@media (max-width: 768px) {
    .social-icons { 
        gap: 10px
    }
    .footer-bottom {
        padding-top: 0px;
    }
    .social-icons svg {
        width: 15px!important;
        height: 15px!important;
    }
    .social-icons a {
        width: 25px!important;
        height: 25px!important;
    } 
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.98)),
        url('Images/Patsy hero.jpeg') center center / cover no-repeat;
}

.coming-soon-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.9) 60%);
}

.coming-soon-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    padding: 32px 28px 28px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* Limit height so content scrolls inside the box, not the window */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    /* Nicer scrollbar in modern browsers */
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.9) rgba(15, 23, 42, 0.6);
}

/* WebKit scrollbar styling (Chrome, Edge, Safari) */
.coming-soon-inner::-webkit-scrollbar {
    width: 6px;
}

.coming-soon-inner::-webkit-scrollbar-track {
    background: transparent;
}

.coming-soon-inner::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.85);
    border-radius: 999px;
}

.coming-soon-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(209, 213, 219, 0.95);
}

/* Better behavior for very small screens: start content near top and allow full scroll */
@media (max-width: 768px) {
    .coming-soon-overlay {
        align-items: center;
        padding: 16px;
    }

    .coming-soon-inner {
        max-height: calc(100vh - 32px);
    }
}

@media (min-width: 769px) {
    .coming-soon-inner {
        padding: 40px 40px 32px;
        /* Wider card on desktop so ít phải scroll hơn */
        max-width: 760px;
    }
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    background: rgba(15, 23, 42, 0.85);
    color: rgba(248, 250, 252, 0.9);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.coming-soon-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.coming-soon-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #f9fafb;
}

.coming-soon-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: #e5e7eb;
    margin-bottom: 20px;
}

.coming-soon-highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

.coming-soon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 26px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.coming-soon-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.coming-soon-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.9);
}

.coming-soon-layout {
    display: grid;
    gap: 22px;
}

@media (min-width: 769px) {
    .coming-soon-layout {
        grid-template-columns: 1.2fr 1fr;
        gap: 28px;
        align-items: flex-start;
    }
}

.coming-soon-copy p {
    margin-bottom: 10px;
    font-size: 0.96rem;
    line-height: 1.7;
    color: #e5e7eb;
}

.coming-soon-copy p:last-child {
    margin-bottom: 0;
}

.coming-soon-login-card {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    border-radius: 14px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

.coming-soon-login-title {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5e7eb;
    margin-bottom: 3px;
}

.coming-soon-login-caption {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 14px;
}

.coming-soon-login-card .form-group {
    margin-bottom: 12px;
}

.coming-soon-login-card label {
    font-size: 0.8rem;
    color: #e5e7eb;
}

.coming-soon-login-card input {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.9);
    color: #f9fafb;
}

.coming-soon-login-card input::placeholder {
    color: #6b7280;
}

.coming-soon-login-card .btn {
    width: 100%;
    justify-content: center;
}

.coming-soon-login-card .form-message {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
}

.coming-soon-login-card .form-message.success {
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(22, 163, 74, 0.6);
    color: #bbf7d0;
}

.coming-soon-login-card .form-message.error {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(239, 68, 68, 0.7);
    color: #fecaca;
}

.coming-soon-footer {
    margin-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.78rem;
    color: #9ca3af;
}

.coming-soon-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.coming-soon-footer a {
    color: #e5e7eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.coming-soon-footer a:hover {
    color: #ffffff;
}

.coming-soon-hidden {
    display: none !important;
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.login-modal.active {
    display: flex;
}

.login-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.login-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.login-close:hover {
    color: var(--primary-color);
}

.login-content h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.login-required {
    text-align: center;
    padding: 60px 20px;
}

.login-required h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.login-required p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Responsive Design */

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 0 20px;
    }

    .contact-content {
        gap: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-info h3 {
        font-size: 1.4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        height: 60vh;
        min-height: 600px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-page .timeline-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .magazine-cover {
        height: 70px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        margin-bottom: 20px;
    }

    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .contact-details {
        gap: 10px;
    }

    .gallery-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-preview-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .blog-preview-title {
        min-width: auto;
        width: 100%;
    }

    .blog-preview-title .section-title {
        text-align: center;
    }

    .blog-preview-title .title-underline {
        margin: 0 auto;
    }

    .blog-preview-cta {
        width: 100%;
        text-align: center;
    }

    .blog-grid-compact {
        grid-template-columns: 1fr;
    }

    /* Gallery overlay removed */

    .admin-tabs {
        flex-direction: column;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .post-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        height: 50vh;
        min-height: 400px;
        padding-top: 60px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-form,
    .admin-panel {
        padding: 20px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-group textarea {
        rows: 4; /* Reduced from 6 for mobile */
        min-height: 100px;
    }

    /* Touch-friendly button sizes */
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-height: 44px; /* Minimum touch target size */
    }

    /* Improve touch targets */
    .nav-link {
        padding: 12px 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .contact-info h3 {
        font-size: 1.2rem;
    }

    .contact-info p {
        font-size: 0.85rem;
    }

    .gallery-grid {
        gap: 15px;
    }

    .blog-grid {
        gap: 20px;
    }

    .magazine-covers-bar {
        padding: 10px 0;
    }

    .magazine-cover {
        height: 60px;
    }

    .navbar {
        padding: 10px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
        text-align: left;
    }

    /* Cột 1: Patsy Kensit + Connect */
    .footer-section:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-section:last-child {
        grid-column: 1;
        grid-row: 2;
    }

    /* Cột 2: Quick Links */
    .footer-section:nth-child(2) {
        grid-column: 2;
        grid-row: 1 / 3; /* Span 2 hàng để cân bằng */
    }

    .footer-section {
        width: 100%;
    }
}