/* ============================================
   HOMEPAGE SPECIFIC STYLES ONLY
   ============================================ */

/* ============================================
   PEACEFUL BOYS HOSTEL — COLOR THEME
   Overrides base.css theme variables with a warm
   maroon / gold / cream palette matching the hostel
   logo, instead of the original indigo/purple theme.
   ============================================ */
:root {
    --primary: #A61C1C;         /* deep maroon (logo red) */
    --primary-dark: #7A1414;    /* darker maroon for hovers/gradients */
    --accent: #E0A419;          /* gold (logo lettering) */
    --dark: #2B1B12;            /* warm near-black for headings */
    --gray: #7A6A5D;            /* warm muted brown-gray for body text */
    --light: #FBF3E7;           /* cream section background */
    --white: #FFFFFF;
    --success: #3F7A3F;         /* muted green for checkmarks */
    --gradient: linear-gradient(135deg, #A61C1C 0%, #7A1414 100%);
    --shadow-sm: 0 2px 8px rgba(43, 27, 18, 0.06);
    --shadow-md: 0 8px 20px rgba(43, 27, 18, 0.10);
    --shadow-lg: 0 12px 32px rgba(43, 27, 18, 0.14);
    --shadow-xl: 0 20px 48px rgba(43, 27, 18, 0.18);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(166, 28, 28, 0.10) 0%, rgba(224, 164, 25, 0.07) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(166, 28, 28, 0.10);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary);
    font-size: 1.2rem;
}

.float-1 {
    top: 10%;
    left: -10%;
}

.float-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 0.5s;
}

.float-3 {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}


/* Facilities / Categories Section */
.categories-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.category-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: rgba(224, 164, 25, 0.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.category-icon i {
    font-size: 2rem;
    color: var(--accent);
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.category-card span {
    color: var(--gray);
    font-size: 0.875rem;
}

.categories-footer {
    text-align: center;
}

/* ============================================
   PHOTO GALLERY SECTION (4 PHOTOS)
   ============================================ */

.gallery-section {
    padding: 80px 0;
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 20, 15, 0.88) 0%, rgba(43, 20, 15, 0.20) 55%, rgba(43, 20, 15, 0) 75%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin: 0;
}

.courses-footer {
    text-align: center;
}

/* Stats Section */
.stats-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(rgba(43, 20, 15, 0.78), rgba(43, 20, 15, 0.78)), url('https://placehold.co/1920x600/2B1B12/ffffff?text=Background');
    background-size: cover;
    background-attachment: fixed;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-card {
    text-align: center;
    color: var(--white);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-stack {
    position: relative;
}

.img-main {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.image-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card i {
    color: var(--primary);
    font-size: 2rem;
}

.features-list {
    margin: 32px 0;
}

.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-item i {
    color: var(--success);
    font-size: 1.2rem;
    margin-top: 4px;
}

.feature-item h4 {
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: var(--light);
}

.testimonials-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    cursor: grab;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    margin-bottom: 16px;
}

.testimonial-rating i {
    color: var(--accent);
    font-size: 1rem;
}

.testimonial-text {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--gray);
    font-size: 0.875rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.slider-controls button:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-wrapper {
    background: var(--gradient);
    text-align: center;
    padding: 60px;
    border-radius: 24px;
    color: var(--white);
}

.cta-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-wrapper p {
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: var(--light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--gray);
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

/* ============================================
   HOMEPAGE RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .hero-grid,
    .registration-wrapper,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .floating-card {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .registration-info,
    .registration-form {
        padding: 32px;
    }
    
    .cta-wrapper {
        padding: 40px 24px;
    }
    
    .cta-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .testimonial-card {
        min-width: 280px;
        padding: 24px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

/* Loading Animation for Cards */
.category-card, .blog-card, .gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Stagger animation delays */
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.15s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.25s; }
.category-card:nth-child(5) { animation-delay: 0.3s; }
.category-card:nth-child(6) { animation-delay: 0.35s; }

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }