/**
 * Frontpage Public Styles
 * Mobile First Responsive
 */

:root {
    --hipmi-navy: #1a365d;
    --hipmi-navy-dark: #0f2442;
    --hipmi-yellow: #f6c000;
    --hipmi-yellow-light: #ffeaa0;
    --hipmi-cyan: #0891b2;
    --hipmi-gray: #64748b;
    --hipmi-light: #f8fafc;
}

/* =========================================
   BASE STYLES - No Header/Footer
   ========================================= */
.frontpage-body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.frontpage-body .frontpage {
    margin: 0;
    padding: 0;
}

/* =========================================
   HERO SLIDER SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* Carousel Fullscreen */
.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-section .carousel-item {
    position: relative;
}

/* Hero Image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 54, 93, 0.5) 0%, rgba(26, 54, 93, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    padding-bottom: 5rem;
    text-align: center;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    padding: 0 1rem;
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 1.5rem;
}

.hero-logo img {
    max-width: 150px;
    height: auto;
}

/* Hero Title & Description */
.hero-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* Carousel Indicators */
.hero-section .carousel-indicators {
    bottom: 80px;
    margin-bottom: 0;
    z-index: 10;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-section .carousel-indicators button.active {
    background-color: var(--hipmi-yellow);
    transform: scale(1.2);
}

/* Carousel Controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-section .carousel-control-prev {
    left: 15px;
}

.hero-section .carousel-control-next {
    right: 15px;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Hero Fallback (no slides) */
.hero-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hipmi-navy) 0%, var(--hipmi-navy-dark) 100%);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* =========================================
   SECTIONS COMMON
   ========================================= */
.fp-section {
    padding: 3rem 0;
}

.fp-section-title {
    color: var(--hipmi-navy);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.fp-section-title.text-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--hipmi-yellow);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.fp-section-subtitle {
    color: var(--hipmi-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.fp-section-desc {
    color: var(--hipmi-gray);
    line-height: 1.8;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.fp-about {
    background: #fff;
}

.about-placeholder {
    background: var(--hipmi-light);
    border-radius: 1rem;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hipmi-gray);
    font-size: 4rem;
}

.visi-misi-item h5 {
    color: var(--hipmi-navy);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.visi-misi-item p {
    color: var(--hipmi-gray);
    margin-bottom: 0;
    line-height: 1.7;
}

.misi-list {
    padding-left: 1.25rem;
    margin: 0;
}

.misi-list li {
    color: var(--hipmi-gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* =========================================
   STATS SECTION
   ========================================= */
.fp-stats {
    background: var(--hipmi-navy);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-icon {
    font-size: 2rem;
    color: var(--hipmi-yellow);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* =========================================
   MANAGEMENT SECTION
   ========================================= */
.fp-management {
    background: var(--hipmi-light);
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.management-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.management-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid var(--hipmi-yellow);
}

.management-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--hipmi-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--hipmi-gray);
    font-size: 2rem;
}

.management-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hipmi-navy);
    margin-bottom: 0.25rem;
}

.management-position {
    font-size: 0.8rem;
    color: var(--hipmi-gray);
    margin: 0;
}

/* =========================================
   NEWS SECTION
   ========================================= */
.fp-news {
    background: #fff;
}

.news-grid {
    display: grid;
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.news-image {
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image-placeholder {
    background: var(--hipmi-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hipmi-gray);
    font-size: 3rem;
}

.news-content {
    padding: 1.25rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--hipmi-gray);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--hipmi-navy);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--hipmi-cyan);
}

.news-excerpt {
    font-size: 0.875rem;
    color: var(--hipmi-gray);
    margin: 0;
    line-height: 1.6;
}

/* =========================================
   PROGRAMS SECTION
   ========================================= */
.fp-programs {
    background: var(--hipmi-light);
}

.programs-grid {
    display: grid;
    gap: 1rem;
}

.program-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-3px);
}

.program-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hipmi-navy), var(--hipmi-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 1.5rem;
}

.program-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hipmi-navy);
    margin-bottom: 0.5rem;
}

.program-desc {
    font-size: 0.875rem;
    color: var(--hipmi-gray);
    margin: 0;
    line-height: 1.6;
}

/* =========================================
   EVENTS SECTION
   ========================================= */
.fp-events {
    background: #fff;
}

.events-grid {
    display: grid;
    gap: 1rem;
}

.event-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--hipmi-light);
    border-radius: 1rem;
    padding: 1rem;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateX(5px);
}

.event-date-badge {
    flex-shrink: 0;
    width: 60px;
    background: var(--hipmi-navy);
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.event-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.75rem;
    color: var(--hipmi-yellow);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hipmi-navy);
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--hipmi-gray);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.fp-contact {
    background: var(--hipmi-light);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--hipmi-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.contact-item h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hipmi-navy);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.875rem;
    color: var(--hipmi-gray);
    margin: 0;
}

.contact-item a {
    color: var(--hipmi-cyan);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hipmi-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.social-link:hover {
    background: var(--hipmi-cyan);
    color: #fff;
    transform: translateY(-3px);
}

.contact-map {
    border-radius: 1rem;
    overflow: hidden;
    height: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-map-placeholder {
    background: #fff;
    border-radius: 1rem;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--hipmi-gray);
}

.contact-map-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   FOOTER
   ========================================= */
.fp-footer {
    background: var(--hipmi-navy-dark);
    padding: 1.5rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.footer-login {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-login:hover {
    color: var(--hipmi-yellow);
}

/* Simple Footer */
.fp-footer-simple {
    background: var(--hipmi-navy-dark);
    padding: 1rem 0;
}

.fp-footer-simple a:hover {
    color: var(--hipmi-yellow) !important;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-outline-hipmi {
    color: var(--hipmi-navy);
    border: 2px solid var(--hipmi-navy);
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-hipmi:hover {
    background: var(--hipmi-navy);
    color: #fff;
}

/* =========================================
   TABLET (768px+)
   ========================================= */
@media (min-width: 768px) {
    .hero-logo img {
        max-width: 200px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-section .carousel-indicators {
        bottom: 100px;
    }

    .hero-section .carousel-indicators button {
        width: 14px;
        height: 14px;
    }

    .fp-section {
        padding: 4rem 0;
    }

    .fp-section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .management-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .management-photo,
    .management-photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .event-meta {
        flex-direction: row;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* =========================================
   DESKTOP (992px+)
   ========================================= */
@media (min-width: 992px) {
    .hero-section,
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 80vh;
        min-height: 500px;
    }

    .hero-logo img {
        max-width: 250px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-description {
        font-size: 1.25rem;
        max-width: 600px;
    }

    .hero-content {
        max-width: 900px;
    }

    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 60px;
        height: 60px;
    }

    .hero-section .carousel-control-prev {
        left: 30px;
    }

    .hero-section .carousel-control-next {
        right: 30px;
    }

    .fp-section {
        padding: 5rem 0;
    }

    .fp-section-title {
        font-size: 2.25rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-map {
        height: 100%;
        min-height: 350px;
    }
}

/* =========================================
   LARGE DESKTOP (1200px+)
   ========================================= */
@media (min-width: 1200px) {
    .management-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .management-card {
        padding: 1.5rem 1rem;
    }
}
