/* ===== PAL Academy Gallery - Red & White Theme ===== */
:root {
    --primary-red: #e74c3c;
    --primary-red-dark: #c0392b;
    --primary-red-light: #ff6b6b;
    --pure-white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #ecf0f1;
    --dark-gray: #2c3e50;
    --text-dark: #333333;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-medium: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-heavy: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION (Red & White Theme) ===== */
.navbar {
    background-color: var(--pure-white);
    box-shadow: var(--shadow-light);
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 22px;
    color: var(--primary-red);
    font-weight: 700;
    gap: 10px;
}

.logo span {
    color: var(--dark-gray);
}

.logo-img {
    border-radius: 5px;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.nav-links a.active {
    border-bottom: 2px solid var(--primary-red);
}

/* Login Button - Red Theme */
.nav-links a.login-btn {
    background-color: var(--primary-red);
    color: var(--pure-white) !important;
    padding: 8px 20px;
    border-radius: 4px;
    margin-left: 10px;
    white-space: nowrap;
    border: none;
}

.nav-links a.login-btn:hover {
    background-color: var(--primary-red-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 5px;
}

/* ===== GALLERY HERO SECTION ===== */
.gallery-hero {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.95)),
                url('https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-4.0.3&auto=format&fit=crop&w=1464&q=80') center/cover no-repeat;
    color: var(--pure-white);
    padding: 80px 0;
    text-align: center;
    min-height: 60vh;
}

.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--pure-white);
    font-weight: 700;
}

.gallery-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--off-white);
    opacity: 0.95;
}

/* ===== GALLERY FILTER ===== */
.gallery-filter {
    background-color: var(--pure-white);
    padding: 30px 0;
    box-shadow: var(--shadow-light);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.filter-btn:hover {
    background-color: #d5dbdb;
    color: var(--text-dark);
}

.filter-btn.active {
    background-color: var(--primary-red);
    color: var(--pure-white);
}

/* ===== GALLERY ITEMS ===== */
.gallery-items {
    padding: 60px 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-card {
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.card-image {
    height: 220px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(44, 62, 80, 0.8));
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .card-image::after {
    opacity: 1;
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-red);
    color: var(--pure-white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-weight: 600;
}

.card-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== LOAD MORE BUTTON ===== */
.load-more {
    text-align: center;
    margin-top: 50px;
}

#load-more-btn {
    background-color: var(--primary-red);
    color: var(--pure-white);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--primary-red);
}

#load-more-btn:hover {
    background-color: var(--primary-red-dark);
    border-color: var(--primary-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* ===== IMAGE MODAL (Red & White) ===== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--pure-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#modal-image {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    width: 100%;
    object-fit: cover;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--pure-white);
    font-size: 30px;
    cursor: pointer;
    background: var(--primary-red);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--primary-red-dark);
    transform: rotate(90deg);
}

.modal-info {
    padding: 20px;
    background: var(--pure-white);
}

.modal-info h3 {
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

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

/* ===== VIDEO TOUR SECTION ===== */
.video-tour {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.video-tour h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.video-tour p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(rgba(231, 76, 60, 0.85), rgba(192, 57, 43, 0.9)),
                url('https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-4.0.3&auto=format&fit=crop&w=1464&q=80') center/cover no-repeat;
    margin: 0 auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 3px solid var(--pure-white);
    box-shadow: var(--shadow-medium);
}

.video-placeholder:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-heavy);
}

.play-btn {
    width: 80px;
    height: 80px;
    background-color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.play-btn i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-left: 5px;
}

.video-placeholder:hover .play-btn {
    background-color: var(--primary-red);
    transform: scale(1.1);
}

.video-placeholder:hover .play-btn i {
    color: var(--pure-white);
}

.video-text {
    color: var(--pure-white);
    font-size: 1.2rem;
    font-weight: 500;
}

.video-player {
    display: none;
    width: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

#embedded-video {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

.close-video {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-red);
    color: var(--pure-white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 2;
}

.close-video:hover {
    background-color: var(--primary-red-dark);
}

/* ===== FOOTER (Red & White Theme) ===== */
footer {
    background-color: var(--dark-gray);
    color: var(--pure-white);
    padding: 70px 0 20px;
    border-top: 4px solid var(--primary-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: var(--pure-white);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
   /* background-color: var(--primary-red);*/
}

.footer-col p {
    margin: 15px 0;
    opacity: 0.9;
}

.footer-col ul {
    list-style-type: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--pure-white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-red);
    margin-top: 5px;
}

/* Social Links - Red Theme */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--pure-white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--pure-white);
}

/* Phone numbers & email container */
.phone-numbers {
    display: flex;
    flex-direction: column;
}

.phone-numbers a,
.email-container a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.phone-numbers a:hover,
.email-container a:hover {
    color: var(--pure-white);
}

/* ===== RESPONSIVE DESIGN (All Devices) ===== */
/* Large tablets & small desktops */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Mobile & tablets */
@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 74px;
        left: 0;
        width: 100%;
        background-color: var(--pure-white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    
    .nav-links a.login-btn {
        margin-left: 0;
        width: auto;
        padding: 10px 30px;
    }
    
    /* Hero */
    .gallery-hero {
        padding: 60px 0;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .gallery-hero p {
        font-size: 1rem;
    }
    
    /* Filter */
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    /* Video */
    .video-placeholder,
    #embedded-video {
        height: 300px;
    }
    
    .video-tour h2 {
        font-size: 1.8rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .gallery-hero {
        padding: 50px 0;
    }
    
    .gallery-hero h1 {
        font-size: 1.8rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .video-placeholder,
    #embedded-video {
        height: 250px;
    }
    
    .play-btn {
        width: 70px;
        height: 70px;
    }
    
    .play-btn i {
        font-size: 1.8rem;
    }
    
    .video-text {
        font-size: 1rem;
    }
    
    .video-tour h2 {
        font-size: 1.5rem;
    }
    
    .video-tour p {
        font-size: 0.95rem;
    }
    
    .gallery-items {
        padding: 40px 0;
    }
    
    .card-image {
        height: 200px;
    }
    
    #load-more-btn {
        padding: 10px 30px;
        font-size: 0.95rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .gallery-hero h1 {
        font-size: 1.5rem;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .logo span {
        display: none; /* Hide text logo on very small screens, keep icon/image */
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.center-text {
    text-align: center;
    margin: 0 auto;
}

/* ===== END OF STYLES ===== */