/* === Luxury Blue Theme Variables === */
:root {
    /* Color Palette */
    --primary-blue: #1a3a6e;
    --dark-blue: #0d2b52;
    --medium-blue: #2a5a8a;
    --light-blue: #4a90e2;
    --pale-blue: #d4ebfc;
    --accent-gold: #d4af37;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-color: #333333;
    --romantic-pink: #ffb6c1;
    --soft-lavender: #e6e6fa;

    /* Fonts */
    --header-font: 'Great Vibes', cursive;
    --body-font: 'Quicksand', sans-serif;
    --admin-font: 'Poppins', sans-serif;

    /* Measurements */
    --border-radius: 15px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
}

/* === Base Styles === */
body {
    font-family: var(--body-font);
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-image: url('https://www.transparenttextures.com/patterns/dimension.png');
}

body,
html {
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3 {
    font-family: var(--header-font);
    color: var(--primary-blue);
}

h3 {
    font-size: 24px;
}

a {
    transition: all 0.3s ease;
}

/* === Layout Components === */
/* Admin Bar */
.admin-bar {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 12px 30px;
    text-align: right;
    font-family: var(--admin-font);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-bar a,
.admin-bar button {
    color: var(--white);
    margin-left: 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    background: none;
    border: none;
    cursor: pointer;
}

.admin-bar a:hover {
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.admin-bar button {
    background: #6483a5;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
}

.admin-bar button:hover {
    background: #91A8C0;
}

.admin-info {
    text-align: right;
}

.admin-info a {
    margin-left: 10px;
    color: #d9534f;
    text-decoration: none;
}

.admin-info a:hover {
    text-decoration: underline;
}

/* Hero Section */
.fancy-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 2rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, var(--medium-blue) 0%, var(--light-blue) 100%);
}

.clouds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>');
    background-size: cover;
    opacity: 0.15;
    animation: cloudMove 120s linear infinite;
}

.fancy-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.7" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    animation: waveAnimation 20s linear infinite;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

/* Main Content */
.fun-sections {
    padding: 2rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.baby-bio {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.baby-bio h2 {
    color: var(--light-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Grid Layout */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: auto;
    max-height: 365px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--light-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-date {
    color: var(--light-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    border-left: 0px solid var(--light-blue);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    font-family: var(--header-font);
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

.timeline-content p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.timeline-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.timeline-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.timeline-content::after {
    content: attr(data-raw-date);
    position: absolute;
    top: 12px;
    right: 20px;
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display:none;
}

.timeline-like-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.timeline-like-btn:hover {
    color: var(--light-blue);
    transform: scale(1.1);
}

.timeline-like-btn.liked {
    color: #e74c3c;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.photo-card {
    position: relative;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: scale(1.03);
}

.photo-card p {
    font-family: 'Great Vibes';
    padding: 0 15px;
    font-size: 26px;
}

.photo-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

/* Message Board */
.message-board {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.message-card {
    position: relative;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.message-author {
    font-weight: 600;
    color: var(--light-blue);
    margin-bottom: 0.5rem;
}

.message-date {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
    margin-top: 0.5rem;
}

/* Forms */
.message-form,
.upload-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.message-form h2,
.upload-form h2 {
    color: var(--light-blue);
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    box-sizing: border-box;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--body-font);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--white);
    color: var(--primary-blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: var(--light-blue);
    color: var(--white);
}

.btn.danger {
    background: #e74c3c;
    color: white;
}

.btn.danger:hover {
    background: #c0392b;
}

.btn.small {
    padding: 5px 10px;
    font-size: 0.8em;
}

.home-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Like Button */
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px 10px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.like-btn.liked {
    opacity: 1;
    color: #e74c3c;
}

.like-btn:hover {
    transform: scale(1.1);
}

.like-container {
    position: absolute;
    right: 20px;
    bottom: 10px;
}

.like-container.story {
    right: 60px;
    bottom: 14px;
}

.like-container.message {
    right: 18px;
    top: 14px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 380px;
    height: 360px;
}

.play-button,
.play-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.play-button:hover,
.play-buttons:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    margin-top: 2rem;
}

footer a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

/* Modals */
.modal,
.modal-user,
.image-modal,
.login-modal,
.confirmation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content,
.modal-user-content,
.login-box,
.confirmation-box {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.modal-contents {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close,
.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close-modal:hover {
    color: #000;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #fff;
    padding: 10px 0;
}

/* Messages */
.error,
.error-message {
    color: #e74c3c;
    margin: 10px 0;
}

.success,
.success-message {
    color: #2ecc71;
    margin: 10px 0;
}

.note {
    font-style: italic;
    color: #888;
    text-align: center;
    margin-top: 1.5rem;
}

/* Admin Specific */
.admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.admin-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 14px;
    transition: all 0.2s ease;
}

.delete-btn {
    background: #ff6b6b;
    color: white;
    order: 3;
}

.delete-btn:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.admin-actions .edit-btn {
    background: #4a89dc;
    color: white;
    order: 2;
}

.admin-actions .edit-btn:hover {
    background: #3a70c2;
    transform: scale(1.1);
}

.gallery-entry:hover .delete-btn {
    opacity: 1;
}

.gallery-entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-entry {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
}

.gallery-entry:hover {
    transform: translateY(-5px);
}

.gallery-entry img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.gallery-entry .entry-content {
    padding: 15px;
}

.gallery-entry h3 {
    margin: 0 0 10px;
}

.gallery-entry .meta {
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Contact Section */
.contact-section {
    padding: 3rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--romantic-pink);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    font-family: var(--header-font);
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Wishlist Section */
.wishlist-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 0 auto 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.wishlist-section h2 {
    font-family: var(--header-font);
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.wishlist-items {
    list-style-type: none;
    padding: 0;
    text-align: left;
    max-width: 500px;
    margin: 1.5rem auto;
}

.wishlist-items li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
}

.wishlist-items li::before {
    content: '??';
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* Gallery */
.gallery {
    padding: 3rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.gallery h2 {
    font-family: var(--header-font);
    color: var(--primary-blue);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--light-blue), var(--romantic-pink));
    border-radius: 3px;
}

/* Login Modal */
.login-box {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.login-box h3 {
    font-family: var(--header-font);
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.login-box input[type='text'],
.login-box input[type='password'] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--pale-blue);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--light-gray);
}

.login-box input[type='text']:focus,
.login-box input[type='password']:focus {
    border-color: var(--light-blue);
    outline: none;
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.login-box button[type='submit'] {
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.login-box button[type='submit']:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 58, 110, 0.4);
}

.login-box .close-btn {
    background-color: #e0e0e0;
    color: #555;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.login-box .close-btn:hover {
    background-color: #d0d0d0;
    color: #333;
}

/* Confirmation Modal */
.confirmation-box {
    max-width: 450px;
    text-align: center;
}

.confirmation-box h3 {
    font-family: var(--header-font);
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.confirmation-box p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
}

#confirmDeleteBtn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#confirmDeleteBtn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(192, 57, 43, 0.4);
}

/* Modal User */
.modal-user-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-input {
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition:
        border 0.3s,
        box-shadow 0.3s;
}

.modal-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    outline: none;
}

.modal-button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        background 0.3s,
        transform 0.2s;
    width: 100%;
}

.modal-button:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
}

/* Animations */
@keyframes cloudMove {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1000px;
    }
}

@keyframes waveAnimation {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1000px;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce-in {
    animation: bounceIn 1s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

.fade-in {
    animation: fadeIn 1.5s ease;
}

/* News System Styles */
.news-listing {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-info {
    padding: 15px;
}

.article-info h3 {
    margin: 0 0 10px;
    color: #333;
}

.article-info .excerpt {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.article-info .meta {
    color: #888;
    font-size: 0.8em;
}

/* Single Article View */
.single-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.single-article article {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.single-article h2 {
    margin-top: 0;
    color: #333;
}

.single-article .meta {
    color: #888;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.single-article .featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.single-article .article-content {
    line-height: 1.6;
    color: #333;
}

.single-article .article-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.single-article .back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

/* Admin Controls */
.admin-controls {
    text-align: center;
    margin: 20px 0;
}

/* Link Styling */
.article-card a {
    text-decoration: none;
    color: inherit;
}

.single-article a:not(.btn) {
    text-decoration: none;
}

.single-article a:not(.btn):hover {
    text-decoration: underline;
}

.btn-danger {
    background: #ff6b6b;
}

.btn-danger:hover {
    background: #ff5252;
}

/* Article Form */
.article-form {
    max-width: 600px;
    margin: 0 auto;
}

.article-form .form-group {
    margin-bottom: 20px;
}

.article-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.article-form input[type="text"],
.article-form textarea,
.article-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Quicksand', sans-serif;
}

.article-form textarea {
    min-height: 200px;
}

/* Media Container */
.media-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.media-container img,
.media-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-video {
    background: #000;
}

/* Send to News button */
.send-to-news-btn {
    background-color: #2c5e9e;
    color: white;
}

.send-to-news-btn:hover {
    background-color: #1e4a8a;
}

.send-to-news-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.highlight {
    animation: highlight-fade 10s ease-out;
    box-shadow: 0 0 0 8px rgba(123, 104, 238, 0.5);
}

@keyframes highlight-fade {
    0% { box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.5); }
    100% { box-shadow: 0 0 0 2px rgba(52, 152, 219, 0); }
}

html {
    scroll-padding-top: 80px; /* Adjust to your header height */
}

/* Mobile menu styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .admin-info {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #333;
        flex-direction: column;
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
        gap: 10px;
        display: none;
        z-index: 1000;
    }

    .admin-info.active {
        display: flex;
    }

    .admin-info button, .admin-info a {
        width: 100%;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }

    .grid-section {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
    }

    .video-container {
        width: 100%;
        height: auto;
    }

    .delete-btn {
        opacity: 1;
    }

    .fancy-hero {
        height: 50vh;
        min-height: 300px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .gallery-entries {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .gallery-entry img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .admin-bar {
        text-align: center;
        padding: 10px;
    }

    .admin-bar a,
    .admin-bar button {
        display: block;
        margin: 5px 0;
    }

    .home-links {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .home-links {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
        box-sizing: border-box;
        padding: 12px 10px;
        min-width: 0;
    }

    .gallery h2 {
        font-size: 2rem;
    }

    .gallery-entries {
        grid-template-columns: 1fr;
    }

    .like-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .confirmation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .confirmation-box .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        padding-left: 0;
        margin-left: 0;
    }
}

@media (max-width: 360px) {
    .admin-info span {
        font-size: 0.9rem;
    }

    #adminGreeting button,
    .admin-info button,
    .admin-info a {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
}

    .media-detail-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
        background: #fff;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        border-radius: 8px;
    }

    .media-wrapper {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
        background: #000;
        border-radius: 4px;
        overflow: hidden;
    }

    .media-content {
        display: block;
        max-width: 100%;
        max-height: 70vh;
        margin: 0 auto;
        object-fit: contain;
    }

    video.media-content {
        width: 100%;
        height: auto;
    }

    .media-info {
        padding: 0 10px;
    }

    .media-info h2 {
        margin: 0 0 15px 0;
        color: #333;
        font-size: 1.8em;
    }

    .media-description {
        margin-bottom: 20px;
        line-height: 1.6;
        color: #555;
        white-space: pre-line;
    }

    .media-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        align-items: center;
        color: #777;
        font-size: 0.9em;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    @media (max-width: 768px) {
        .media-detail-container {
            padding: 15px;
        }

        .media-info h2 {
            font-size: 1.5em;
        }

        .media-meta {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
        }
        .menu-bar{
            top:70px
        }
