/* ===== VARIABLES ===== */
:root {
    --maroon: #800000;
    --maroon-dark: #660000;
    --maroon-light: #a52a2a;
    --white: #ffffff;
    --off-white: #f8f8f8;
    --gray-light: #eaeaea;
    --gray: #666666;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(128,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--maroon);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-area h1 {
    font-size: 24px;
    color: var(--maroon);
    line-height: 1.2;
}

.logo-area h1 span {
    display: block;
    font-size: 14px;
    color: var(--gray);
    font-weight: normal;
}

.tagline {
    font-size: 12px;
    color: var(--maroon);
    font-style: italic;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--maroon);
}

.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--maroon);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--maroon);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    background: var(--white);
    padding: 20px;
    border-top: 1px solid var(--gray-light);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin: 15px 0;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    display: block;
    padding: 5px 0;
}

/* ===== VOICE TICKER ===== */
.voice-ticker {
    background: var(--maroon);
    color: var(--white);
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ticker-content i {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.ticker-content i:hover {
    transform: scale(1.1);
}

.ticker-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-text span {
    display: inline-block;
    animation: ticker 25s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== BANNER SLIDER WITH ZOOM EFFECT ===== */
.hero-section {
    padding: 0;
}

.banner-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomOut 10s ease-in-out infinite;
    transform-origin: center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(128,0,0,0.3), rgba(128,0,0,0.1));
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Pause animation on hover */
.banner-slider-container:hover .slide.active {
    animation-play-state: paused;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.slider-btn {
    background: var(--maroon);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--maroon-dark);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--maroon);
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header .subtitle {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 15px;
}

.underline {
    width: 80px;
    height: 3px;
    background: var(--maroon);
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-text p {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.8;
}

/* ===== SEVEN SEEDS - PERFECT SQUARE CARDS ===== */
.seven-seeds {
    margin-top: 40px;
}

.seven-seeds h3 {
    color: var(--maroon);
    margin-bottom: 20px;
    text-align: center;
}

/* Desktop - 7 square cards in a row */
.seeds-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

.seed-card {
    background: var(--maroon);
    color: var(--white);
    padding: 20px 10px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.seed-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.seed-letter {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.seed-word {
    font-size: 14px;
    text-transform: uppercase;
}

/* ===== SEVEN SEEDS - TABLET & MOBILE ===== */
@media (max-width: 992px) {
    .seeds-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .seed-card {
        aspect-ratio: 1 / 1 !important;
        width: 100%;
        padding: 30px 15px;
    }
    
    .seed-letter {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .seed-word {
        font-size: 22px;
        letter-spacing: 2px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .seeds-grid {
        max-width: 300px;
        gap: 18px;
    }
    
    .seed-card {
        padding: 25px 12px;
    }
    
    .seed-letter {
        font-size: 44px;
        margin-bottom: 12px;
    }
    
    .seed-word {
        font-size: 20px;
    }
}

/* ===== MESSAGES SECTION ===== */
.messages-section {
    background: linear-gradient(135deg, #fff 0%, #fdf5f5 100%);
    position: relative;
    overflow: hidden;
}

.messages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--maroon), #ff9999, var(--maroon));
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -1000px; }
    100% { background-position: 1000px; }
}

.message-card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(128,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(128,0,0,0.1);
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.message-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(128,0,0,0.15);
    border-color: var(--maroon);
}

/* Circular Profile Photos */
.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 8px 20px rgba(128,0,0,0.25);
    position: relative;
    background: linear-gradient(145deg, #fff0f0, #ffe0e0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.message-card:hover .profile-photo {
    transform: scale(1.1);
}

.avatar-circle::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid var(--maroon);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.message-card:hover .avatar-circle::after {
    opacity: 1;
}

/* Fallback for avatar initials */
.avatar-circle img[src*="ui-avatars"] {
    object-fit: contain;
    background: var(--maroon);
}

/* Message Header */
.message-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.title h3 {
    color: var(--maroon);
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.title p {
    color: #666;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 5px;
}

.title small {
    color: #888;
    font-size: 13px;
    display: block;
}

/* Message Preview */
.message-preview {
    position: relative;
}

.preview-text {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--maroon);
}

.read-more-btn {
    background: none;
    border: 2px solid var(--maroon);
    color: var(--maroon);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

.read-more-btn:hover {
    background: var(--maroon);
    color: var(--white);
    transform: translateX(5px);
}

/* Full Message */
.message-full {
    display: none;
}

.full-text {
    color: #444;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

.full-text.highlight {
    background: linear-gradient(120deg, #fff0f0 0%, #ffe0e0 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--maroon);
    font-weight: 500;
    color: #333;
}

.signature {
    margin: 30px 0 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    text-align: right;
    font-size: 16px;
    color: var(--maroon);
    border: 1px dashed var(--maroon);
}

.read-less-btn {
    background: var(--maroon);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(128,0,0,0.2);
}

.read-less-btn:hover {
    background: var(--maroon-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(128,0,0,0.3);
}

/* Message Footer */
.message-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.experience-badge,
.qualifications {
    background: #f8f8f8;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    color: var(--maroon);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* ===== VOICE BUTTON STYLES ===== */
.voice-btn,
.voice-message-btn,
#playAnnouncement {
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Default state */
.voice-btn,
.voice-message-btn,
#playAnnouncement {
    background: linear-gradient(145deg, var(--maroon), var(--maroon-dark)) !important;
    color: var(--white) !important;
}

/* Speaking state */
.voice-btn.speaking,
.voice-message-btn.speaking,
#playAnnouncement.speaking,
.voice-btn.bg-red,
.voice-message-btn.bg-red,
#playAnnouncement.bg-red {
    background: #dc3545 !important;
    animation: pulse-red 1.5s infinite !important;
    color: white !important;
}

/* Disabled state */
.voice-btn:disabled,
.voice-message-btn:disabled,
#playAnnouncement:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.voice-btn.speaking:disabled,
.voice-message-btn.speaking:disabled,
#playAnnouncement.speaking:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Hover effects */
.voice-btn:hover:not(.speaking):not(:disabled),
.voice-message-btn:hover:not(.speaking):not(:disabled),
#playAnnouncement:hover:not(.speaking):not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(128,0,0,0.3);
}

.voice-btn.speaking:hover:not(:disabled),
.voice-message-btn.speaking:hover:not(:disabled),
#playAnnouncement.speaking:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(220,53,69,0.3);
}

/* Mobile touch optimization */
@media (max-width: 768px) {
    .voice-btn,
    .voice-message-btn,
    #playAnnouncement {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .voice-btn i,
    .voice-message-btn i,
    #playAnnouncement i {
        font-size: 18px;
    }
}

/* ===== NOTICE SECTION - CENTERED CARDS ===== */
.notice-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
}

.notice-card {
    width: 350px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--maroon);
    transition: var(--transition);
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.notice-date {
    color: var(--maroon);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notice-card h3 {
    color: var(--maroon);
    margin-bottom: 15px;
    font-size: 20px;
}

.notice-details {
    margin: 15px 0;
    padding-left: 15px;
    border-left: 3px solid var(--maroon-light);
}

@media (max-width: 768px) {
    .notice-card {
        width: 100% !important;
    }
}

/* ===== GALLERY SECTION WITH COLLAGE ===== */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--white);
    color: #333;
    border: 2px solid var(--gray-light);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--maroon);
    color: var(--white);
    border-color: var(--maroon);
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.album-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.album-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

/* Single image */
.album-cover.single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Collage for multiple images */
.album-cover.collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    height: 200px;
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collage-img:hover {
    transform: scale(1.1);
    z-index: 2;
}

/* Different layouts based on number of images */
.album-cover.collage[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
}

.album-cover.collage[data-count="2"] .collage-img:first-child {
    grid-column: 1 / 2;
}

.album-cover.collage[data-count="2"] .collage-img:last-child {
    grid-column: 2 / 3;
}

.album-cover.collage[data-count="3"] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.album-cover.collage[data-count="3"] .collage-img:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.album-cover.collage[data-count="3"] .collage-img:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.album-cover.collage[data-count="3"] .collage-img:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.album-cover.collage[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.album-cover.collage[data-count="5"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.album-cover.collage[data-count="5"] .collage-img:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.album-cover.collage[data-count="5"] .collage-img:nth-child(2),
.album-cover.collage[data-count="5"] .collage-img:nth-child(3),
.album-cover.collage[data-count="5"] .collage-img:nth-child(4),
.album-cover.collage[data-count="5"] .collage-img:nth-child(5) {
    grid-column: 3 / 4;
}

.album-cover.collage[data-count="5"] .collage-img:nth-child(2) { grid-row: 1 / 2; }
.album-cover.collage[data-count="5"] .collage-img:nth-child(3) { grid-row: 2 / 3; }
.album-cover.collage[data-count="5"] .collage-img:nth-child(4) { grid-row: 3 / 4; }
.album-cover.collage[data-count="5"] .collage-img:nth-child(5) { grid-row: 4 / 5; }

/* Photo count badge */
.photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--maroon);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.album-card:hover .album-cover.single-image img {
    transform: scale(1.1);
}

.album-info {
    padding: 20px;
}

.album-info h3 {
    color: var(--maroon);
    margin-bottom: 10px;
}

.view-album {
    background: none;
    border: 2px solid var(--maroon);
    color: var(--maroon);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.view-album:hover {
    background: var(--maroon);
    color: var(--white);
}

/* Responsive collage adjustments */
@media (max-width: 768px) {
    .album-cover.collage[data-count="5"] {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .album-cover.collage[data-count="5"] .collage-img:first-child {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .album-cover.collage[data-count="5"] .collage-img:nth-child(2),
    .album-cover.collage[data-count="5"] .collage-img:nth-child(3),
    .album-cover.collage[data-count="5"] .collage-img:nth-child(4),
    .album-cover.collage[data-count="5"] .collage-img:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ===== LIGHTBOX MODAL WITH AUTO SLIDE ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
}

.lightbox-modal.active {
    display: block;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

.lightbox-header {
    padding: 20px;
    text-align: center;
}

.lightbox-header h3 {
    color: var(--white);
    font-size: 24px;
}

.lightbox-slider {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

#lightboxImage {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    animation: fadeZoom 5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes fadeZoom {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    25% {
        opacity: 1;
        transform: scale(1.05);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    75% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

/* Pause animation on hover */
.lightbox-slider:hover #lightboxImage {
    animation-play-state: paused;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(128,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--maroon);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-thumbnails {
    padding: 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    background: rgba(0,0,0,0.5);
}

.lightbox-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.lightbox-thumbnails img:hover,
.lightbox-thumbnails img.active {
    border-color: var(--maroon);
    transform: scale(1.05);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, #fdf5f5 0%, #fff 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(128,0,0,0.08);
    transition: var(--transition);
    border: 1px solid rgba(128,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(128,0,0,0.15);
    border-color: var(--maroon);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(128,0,0,0.2);
}

.contact-card h3 {
    color: var(--maroon);
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 15px;
    transition: var(--transition);
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--maroon);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(128,0,0,0.05);
}

.btn-submit {
    background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(128,0,0,0.2);
}

.btn-submit:hover {
    background: linear-gradient(145deg, var(--maroon-dark), #4d0000);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(128,0,0,0.3);
}

/* Contact Info Styles */
.info-item {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item i {
    font-size: 22px;
    color: var(--maroon);
    margin-top: 3px;
    width: 30px;
    text-align: center;
}

.info-item h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
}

.info-item p,
.info-item a {
    color: var(--gray);
    text-decoration: none;
    line-height: 1.7;
    font-size: 15px;
}

.info-item a:hover {
    color: var(--maroon);
    text-decoration: underline;
}

.address-detail {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.office-hours {
    display: flex;
    gap: 18px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
    background: #fef9f9;
    padding: 20px;
    border-radius: 15px;
}

/* Form Message */
.form-message {
    margin-top: 20px;
    padding: 12px 18px;
    border-radius: 10px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MAP SECTION ===== */
.map-container {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(128,0,0,0.08);
    margin-top: 30px;
    border: 1px solid rgba(128,0,0,0.1);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.map-header h3 {
    color: var(--maroon);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
}

.direction-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-direction {
    background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-direction:hover {
    background: linear-gradient(145deg, var(--maroon-dark), #4d0000);
    transform: translateX(5px);
}

.btn-direction-alt {
    background: linear-gradient(145deg, #4285F4, #3367D6);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 15px;
}

.btn-direction-alt:hover {
    background: linear-gradient(145deg, #3367D6, #2A56C6);
    transform: translateX(5px);
}

.direction-status {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
}

.direction-status.show {
    display: flex;
}

.direction-status.success {
    background: #d4edda;
    color: #155724;
}

.direction-status.error {
    background: #f8d7da;
    color: #721c24;
}

.direction-status.info {
    background: #d1ecf1;
    color: #0c5460;
}

.map-embed {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-about p {
    color: #ccc;
    margin-bottom: 10px;
}

.recognition {
    font-size: 14px;
    color: #999 !important;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--maroon);
    padding-left: 5px;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: 30px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 999;
}

.fab-wa,
.fab-top {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    text-decoration: none;
    pointer-events: auto;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
}

.fab-wa {
    background: #25D366;
    margin-right: auto;
}

.fab-top {
    background: var(--maroon);
    margin-left: auto;
    opacity: 0;
    visibility: hidden;
}

.fab-top.visible {
    opacity: 1;
    visibility: visible;
}

.fab-wa:hover,
.fab-top:hover {
    transform: scale(1.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        gap: 25px;
    }
    .contact-card {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .banner-slider-container {
        height: 350px;
    }
    .section {
        padding: 50px 0;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .messages-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .direction-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-direction,
    .btn-direction-alt {
        width: 100%;
        justify-content: center;
    }
    .map-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .map-embed {
        height: 350px;
    }
    .floating-buttons {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    .message-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .avatar-circle {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }
    .title {
        text-align: center;
    }
    .message-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .experience-badge,
    .qualifications {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-area h1 {
        font-size: 20px;
    }
    .banner-slider-container {
        height: 250px;
    }
    .albums-grid {
        grid-template-columns: 1fr;
    }
    .floating-buttons {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    .fab-wa,
    .fab-top {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .avatar-circle {
        width: 120px;
        height: 120px;
    }
    .full-text {
        text-align: left;
        font-size: 15px;
    }
    .signature {
        text-align: center;
    }
    .contact-card {
        padding: 25px 20px;
    }
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .contact-card h3 {
        font-size: 22px;
    }
    .info-item {
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }
    .info-item i {
        margin-bottom: 5px;
    }
    .office-hours {
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }
    .btn-direction,
    .btn-direction-alt {
        padding: 10px 20px;
        font-size: 14px;
    }
    .map-embed {
        height: 300px;
    }
}