/* BPME1013 Page Specific Styles */
/* Note: This file extends styles.css for BPME1013 page specific elements */

/* BPME1013 specific styles */
.page-title {
    text-align: center;
    margin-top: 120px; /* Account for fixed header */
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: gentle-rotate 20s linear infinite;
    z-index: 0;
}

.page-title h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.bpme-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 0; /* Remove top margin since page-title handles spacing */
}

.bpme-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFFACD 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.bpme-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
    animation: gentle-rotate 20s linear infinite;
    z-index: 0;
}

@keyframes gentle-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bpme-header h1 {
    font-family: 'Pacifico', cursive;
    color: #8B4513;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.bpme-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Comments Header Styles */
.comments-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comments-header h2 {
    font-family: 'Pacifico', cursive;
    color: #8B4513;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.comments-header p {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

.team-comments-grid {
    columns: 2; /* Create 2 columns for masonry layout */
    column-gap: 2rem;
    margin-bottom: 3rem;
}

/* For larger screens, use 3 columns */
@media (min-width: 1200px) {
    .team-comments-grid {
        columns: 3;
    }
}

/* For smaller screens, use 1 column */
@media (max-width: 768px) {
    .team-comments-grid {
        columns: 1;
        column-gap: 0;
    }
}

.comment-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #8B4513;
    position: relative;
    overflow: hidden;
    height: fit-content; /* Allow natural height based on content */
    min-height: auto; /* Remove any minimum height constraints */
    break-inside: avoid; /* Prevent cards from breaking across columns */
    margin-bottom: 2rem; /* Add space between cards in the same column */
    display: inline-block; /* Required for column layout */
    width: 100%; /* Take full width of the column */
}

.comment-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(139, 69, 19, 0.1), transparent);
    border-radius: 0 15px 0 50px;
}

.comment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    transition: transform 0.3s;
    overflow: hidden;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comment-card:hover .member-avatar {
    transform: scale(1.1);
}

.member-details h3 {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.member-details .role {
    color: #8B4513;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.comment-content {
    background: #fafafa;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    transition: all 0.3s;
    height: auto; /* Allow natural height expansion */
    min-height: auto; /* Remove minimum height constraints */
}

.comment-content p {
    margin: 0;
    text-align: align-left;
}

.comment-card:hover .comment-content {
    background: white;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.save-progress-btn {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 2rem auto;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
}

.save-progress-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.save-progress-btn:hover::before {
    left: 100%;
}

.save-progress-btn:hover {
    background: linear-gradient(135deg, #A0522D, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.back-to-home {
    text-align: center;
    margin-top: 2rem;
}

.back-to-home a {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-home a:hover {
    color: white;
    background: #8B4513;
    transform: translateX(-5px);
}

/* Progress indicator */
.progress-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #8B4513;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-indicator.show {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .page-title {
        margin-top: 80px;
        padding: 1.5rem 1rem;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .bpme-container {
        padding: 1rem;
        margin-top: 80px;
    }
    
    .bpme-header {
        padding: 2rem 1rem;
    }
    
    .bpme-header h1 {
        font-size: 2rem;
    }
    
    .bpme-header p {
        font-size: 1rem;
    }
    
    .comment-card {
        padding: 1.5rem;
    }
    
    .member-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .save-progress-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .progress-indicator {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    
    .bpme-container {
        padding: 1.5rem;
    }
}

/* Animation for cards on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-card {
    animation: fadeInUp 0.6s ease forwards;
}

.comment-card:nth-child(1) { animation-delay: 0.1s; }
.comment-card:nth-child(2) { animation-delay: 0.2s; }
.comment-card:nth-child(3) { animation-delay: 0.3s; }
.comment-card:nth-child(4) { animation-delay: 0.4s; }
.comment-card:nth-child(5) { animation-delay: 0.5s; }
.comment-card:nth-child(6) { animation-delay: 0.6s; }
.comment-card:nth-child(7) { animation-delay: 0.7s; }
.comment-card:nth-child(8) { animation-delay: 0.8s; }
.comment-card:nth-child(9) { animation-delay: 0.9s; }
.comment-card:nth-child(10) { animation-delay: 1.0s; }
.comment-card:nth-child(11) { animation-delay: 1.1s; }
/* Photos Section Styles */
.photos-section {
    margin: 4rem 0;
    padding: 2rem 0;
}

.photos-header {
    text-align: center;
    margin-bottom: 3rem;
}

.photos-header h2 {
    font-family: 'Pacifico', cursive;
    color: #8B4513;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.photos-header p {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

/* Photo Categories Filter */
.photo-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    color: #8B4513;
    border: 2px solid #8B4513;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.category-btn:hover,
.category-btn.active {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Photo Gallery Grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.photo-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease;
}

.photo-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.photo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    background: white;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.photo-card:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.photo-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.photo-date {
    font-size: 0.8rem;
    background: rgba(139, 69, 19, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(139, 69, 19, 0.8);
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
    text-align: center;
}

.modal-info h3 {
    color: #8B4513;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Pacifico', cursive;
}

.modal-info p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.modal-info span {
    background: #8B4513;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-prev,
.modal-next {
    background: rgba(139, 69, 19, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
}

.modal-prev:hover,
.modal-next:hover {
    background: #8B4513;
    transform: scale(1.1);
}

/* Photo Loading Animation */
.photo-card img {
    opacity: 0;
    animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Polaroid Card Styles */
/* Polaroid Card Styles */
.polaroid-card {
    background: white;
    border-radius: 0;
    padding: 15px 15px 5px 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    transform: rotate(-2deg);
    max-width: 280px;
    margin: 0 auto;
}

/* Natural Polaroid Scatter Effect - Varied Angles and Positions */
.photo-item:nth-child(1) .polaroid-card {
    transform: rotate(-3deg) translateX(-8px) translateY(5px);
    box-shadow: 2px 6px 12px rgba(0,0,0,0.15), 4px 8px 25px rgba(0,0,0,0.1);
}

.photo-item:nth-child(2) .polaroid-card {
    transform: rotate(1.5deg) translateX(6px) translateY(-3px);
    box-shadow: -1px 4px 10px rgba(0,0,0,0.12), 2px 6px 20px rgba(0,0,0,0.08);
}

.photo-item:nth-child(3) .polaroid-card {
    transform: rotate(-1deg) translateX(-4px) translateY(8px);
    box-shadow: 1px 5px 11px rgba(0,0,0,0.13), 3px 7px 22px rgba(0,0,0,0.09);
}

.photo-item:nth-child(4) .polaroid-card {
    transform: rotate(2.5deg) translateX(10px) translateY(-5px);
    box-shadow: -2px 4px 9px rgba(0,0,0,0.14), 1px 6px 18px rgba(0,0,0,0.1);
}

.photo-item:nth-child(5) .polaroid-card {
    transform: rotate(-2.5deg) translateX(-6px) translateY(3px);
    box-shadow: 3px 5px 13px rgba(0,0,0,0.16), 5px 8px 24px rgba(0,0,0,0.11);
}

.photo-item:nth-child(6) .polaroid-card {
    transform: rotate(1deg) translateX(8px) translateY(-8px);
    box-shadow: -1px 3px 8px rgba(0,0,0,0.11), 1px 5px 16px rgba(0,0,0,0.07);
}

.photo-item:nth-child(7) .polaroid-card {
    transform: rotate(-1.5deg) translateX(-10px) translateY(6px);
    box-shadow: 2px 4px 10px rgba(0,0,0,0.15), 4px 6px 21px rgba(0,0,0,0.1);
}

.photo-item:nth-child(8) .polaroid-card {
    transform: rotate(3deg) translateX(4px) translateY(-2px);
    box-shadow: -3px 5px 12px rgba(0,0,0,0.17), 2px 7px 23px rgba(0,0,0,0.12);
}

.polaroid-card:hover {
    transform: rotate(0deg) translateX(0) translateY(-10px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2), 0 15px 35px rgba(0,0,0,0.15);
}

.polaroid-photo {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFFACD 100%);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.polaroid-photo .placeholder-content {
    text-align: center;
    color: #8B4513;
}

.polaroid-photo .placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.polaroid-photo h4 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    color: #8B4513;
}

.polaroid-caption {
    text-align: center;
    font-family: 'Pacifico', cursive;
    margin-bottom: 10px;
}

.polaroid-caption p {
    font-size: 0.9rem;
    color: #333;
    margin: 0 0 5px 0;
    font-style: italic;
}

.polaroid-date {
    font-size: 0.8rem;
    color: #666;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

/* Photo Gallery Grid for Polaroids */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    align-items: start;
    transition: all 0.5s ease;
}

/* Dynamic Category Organization */
.photo-gallery.organized {
    display: block;
}

.photo-gallery.organized .category-group {
    margin-bottom: 4rem;
}

.photo-gallery.organized .category-title {
    font-family: 'Pacifico', cursive;
    color: #8B4513;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.6s ease forwards;
}

.photo-gallery.organized .category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border-radius: 2px;
}

.photo-gallery.organized .category-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem 2rem;
    align-items: start;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Placeholder Card Styles */
.placeholder-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFFACD 100%);
    border: 2px dashed #8B4513;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.2);
    border-color: #A0522D;
}

.placeholder-content {
    text-align: center;
    padding: 2rem;
    color: #8B4513;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.placeholder-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #8B4513;
}

.placeholder-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    color: #666;
}

.placeholder-content .photo-date {
    font-size: 0.8rem;
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

/* Mobile Responsive for Photos */
@media (max-width: 768px) {
    .photos-header h2 {
        font-size: 1.8rem;
    }
    
    .comments-header h2 {
        font-size: 1.8rem;
    }
    
    .photo-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .photo-card img {
        height: 200px;
    }
    
    .photo-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .photo-overlay h4 {
        font-size: 1rem;
    }
    
    .photo-overlay p {
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-info h3 {
        font-size: 1.2rem;
    }
    
    .modal-nav {
        padding: 0 10px;
    }
    
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Acknowledgment Styling */
.progress-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(139, 69, 19, 0.05);
    border-left: 3px solid #8B4513;
    border-radius: 0 8px 8px 0;
}

.progress-note p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* BPME1013 Link Styling - Make it stand out */
.nav-links a.bpme-link {
    font-weight: bold;
    color: #8B4513;
    background: rgba(139, 69, 19, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a.bpme-link:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

/* Mobile Menu Enhancement for BPME1013 */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
        justify-content: flex-start; /* Align items to start for left hamburger */
        gap: 1rem; /* Add gap between hamburger and logo */
        display: flex !important; /* Ensure flex display */
        align-items: center; /* Center items vertically */
    }
    
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #8B4513;
        padding: 0.5rem;
        transition: color 0.3s ease;
        order: 1; /* First item */
        z-index: 1001; /* Ensure it's above other elements */
        position: relative; /* Ensure positioning context */
    }
    
    .mobile-menu-toggle:hover {
        color: #A0522D;
    }
    
    .logo {
        order: 2; /* Second item */
        flex-grow: 1; /* Take remaining space */
        text-align: center; /* Center the logo */
    }
    
    .logo h1 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        order: 3; /* Third item (hidden) */
    }
    
    .nav-links.mobile-active {
        left: 0;
        display: flex !important;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        color: #333;
        text-decoration: none;
        transition: color 0.3s;
        border-radius: 8px;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        color: #8B4513;
        background: rgba(139, 69, 19, 0.1);
    }
    
    .nav-links a.bpme-link {
        font-weight: bold;
        color: #8B4513;
        background: rgba(139, 69, 19, 0.15);
    }
    
    .nav-links a.bpme-link:hover,
    .nav-links a.bpme-link.active {
        background: #8B4513;
        color: white;
    }
}