/* assets/css/style.css - Complete Stylesheet for JNPS Website */

/* ============================================
   TABLE OF CONTENTS
   ============================================
   1. CSS Variables & Reset
   2. Global Styles
   3. Typography
   4. Button Styles
   5. Top Bar Styles
   6. Navbar Styles
   7. Hero Carousel Styles
   8. Page Header Styles
   9. Section Titles
   10. Card Styles (Feature, Reason, News)
   11. Stats Section
   12. Footer Styles
   13. Form Styles
   14. Gallery Styles
   15. Sidebar Styles
   16. Modal Styles
   17. Utility Classes
   18. Animations
   19. Responsive Styles
============================================ */

/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-deep: #2B5E2B;    /* forest green */
    --primary-soft: #4A7C3F;
    --secondary-warm: #F4A261;  /* warm orange/sand */
    --accent-coral: #E76F51;
    --accent-gold: #E9C46A;
    --light-bg: #FFF9EF;
    --text-dark: #2F3E2E;
    --card-shadow: 0 12px 24px -10px rgba(0,0,0,0.08);
    --hover-shadow: 0 20px 28px -12px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
}

/* ============================================
   2. GLOBAL STYLES
   ============================================ */
body {
    font-family: "Montserrat", "Quicksand", sans-serif;
    background-color: #FFFBF5;
    color: #2D3E2B;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, .heading-font {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

/* ============================================
   4. BUTTON STYLES
   ============================================ */
.btn-primary-custom {
    background-color: var(--primary-deep);
    border: none;
    font-weight: 600;
    border-radius: 60px;
    padding: 0.6rem 2rem;
    font-family: "Montserrat", sans-serif;
    transition: var(--transition);
    color: white;
    box-shadow: 0 6px 0 #1A3F1A;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
/* Hide topbar on mobile devices */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}
.btn-primary-custom:hover {
    background-color: var(--primary-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #1A3F1A;
    color: white;
}

.btn-secondary-custom {
    background-color: var(--secondary-warm);
    border: none;
    font-weight: 600;
    border-radius: 60px;
    padding: 0.6rem 2rem;
    font-family: "Montserrat", sans-serif;
    color: #2D3E2B;
    box-shadow: 0 6px 0 #C57F3A;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.btn-secondary-custom:hover {
    background-color: #F4B572;
    transform: translateY(-2px);
    color: #2D3E2B;
}

.btn-outline-custom {
    border: 2px solid var(--light-bg);
    color: var(--primary-deep);
    border-radius: 60px;
    padding: 0.5rem 1.6rem;
    font-weight: 600;
    background: transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline-custom:hover {
    background-color: var(--secondary-warm);
    color: #2D3E2B;
}

/* ============================================
   5. TOP BAR STYLES
   ============================================ */
.top-bar {
    background-color: var(--primary-deep);
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1001;
}

.top-bar i {
    color: var(--accent-gold);
    margin-right: 0.3rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--accent-gold);
}

/* ============================================
   6. NAVBAR STYLES
   ============================================ */
.navbar {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.3rem 0;
    box-shadow: 0 8px 20px rgba(43,94,43,0.08);
}

.navbar-logo {
    width: 55px;
    height: auto;
    transition: var(--transition);
}

.scrolled .navbar-logo {
    width: 48px;
}

.navbar .nav-link {
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem !important;
    transition: var(--transition);
}

.navbar .nav-link:hover {
    color: var(--accent-coral);
}

.navbar .nav-link.active {
    color: var(--accent-coral);
    font-weight: 600;
}

.navbar .apply-nav {
    background: var(--secondary-warm);
    color: #2D3E2B !important;
    font-weight: 600;
    padding: 0.4rem 1.5rem !important;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(244,162,97,0.2);
}

.navbar .apply-nav:hover {
    background: var(--accent-coral);
    color: white !important;
    transform: translateY(-2px);
}

.logo-area {
    font-weight: 700;
    font-family: "Fredoka", sans-serif;
    font-size: 1.7rem;
    color: var(--primary-deep);
    line-height: 1.2;
}

.logo-area span {
    color: var(--accent-coral);
}

.small-motto {
    font-size: 0.7rem;
    font-weight: 500;
    color: #7A6A4B;
    background: #FEF3C7;
    display: inline-block;
    padding: 0 8px;
    border-radius: 20px;
    margin-top: 4px;
}

.small-motto i {
    font-size: 0.7rem;
    margin-right: 2px;
}

/* ============================================
   7. HERO CAROUSEL STYLES
   ============================================ */
.hero-carousel .carousel-item {
    height: 58vh;
    min-height: 380px;
    background-size: cover;
    background-position: center 30%;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(98deg, rgba(43,94,43,0.55) 0%, rgba(233,196,106,0.3) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 20%;
    text-align: left;
    left: 8%;
    right: auto;
    width: 55%;
}

.carousel-caption h1 {
    font-size: 2.8rem;
    font-weight: 700;
    font-family: "Fredoka", sans-serif;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ============================================
   8. PAGE HEADER STYLES
   ============================================ */
.page-header {
    background: linear-gradient(125deg, var(--primary-deep) 0%, var(--accent-coral) 100%);
    padding: 4rem 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    font-family: "Fredoka", sans-serif;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* ============================================
   9. SECTION TITLES
   ============================================ */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: "Fredoka", sans-serif;
    color: var(--primary-deep);
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
    padding-right: 40px; /* Add space for the flower */
}

.section-title:after {
    content: '🌻';
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 1.6rem;
    opacity: 0.8;
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================
   10. CARD STYLES
   ============================================ */
/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 40px;
    padding: 1.8rem 1.2rem;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(244,162,97,0.2);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: #FFF9E8;
    border-color: var(--secondary-warm);
}

.feature-icon {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary-deep), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

/* Reason Cards */
.reason-card {
    background: white;
    border-radius: 15px;
    padding: 1rem 1.2rem;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
    border: 2px solid var(--secondary-warm);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.reason-card:hover {
    transform: translateX(6px);
    background: #FFFCF5;
    box-shadow: 0 12px 22px rgba(244,162,97,0.12);
}

.reason-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #FEF3D6;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-deep);
}

.reason-text h6 {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary-deep);
}

.reason-text p {
    font-size: 0.8rem;
    color: #5A5A4A;
    margin: 0;
    line-height: 1.3;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.news-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.news-card:hover .news-img {
    transform: scale(1.03);
}

/* ============================================
   11. STATS SECTION
   ============================================ */
.stats-section {
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: 60px;
    margin-top: -30px;
    position: relative;
    z-index: 5;
    border: 1px solid #FCE6C4;
    padding: 1.5rem 0;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: "Fredoka", sans-serif;
    color: var(--accent-coral);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ============================================
   12. FOOTER STYLES
   ============================================ */
.footer {
    background: #1E2F1C;
    color: #E9E5D6;
    border-top: 5px solid var(--accent-gold);
}

.footer a {
    text-decoration: none;
    transition: var(--transition);
    color: #D4D0B9;
}

.footer a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
    display: inline-block;
}

.footer h4, .footer h5, .footer h6 {
    color: white;
    margin-bottom: 1rem;
}

/* ============================================
   13. FORM STYLES
   ============================================ */
.form-card {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.form-control, .form-select {
    border-radius: 15px;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e2e8f0;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-warm);
    box-shadow: 0 0 0 3px rgba(244,162,97,0.1);
    outline: none;
}

/* ============================================
   14. GALLERY STYLES
   ============================================ */
.gallery-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    height: 100%;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.gallery-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(43,94,43,0.95), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

/* ============================================
   15. SIDEBAR STYLES
   ============================================ */
.sidebar-card {
    background: white;
    border-radius: 25px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-warm);
    display: inline-block;
}

.category-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f0e6d2;
    color: var(--primary-deep);
    text-decoration: none;
    transition: var(--transition);
}

.category-tag:hover {
    background: var(--secondary-warm);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   16. MODAL STYLES
   ============================================ */
.modal-content {
    border-radius: 30px;
    background: #FFFBF5;
    border: none;
}

.modal-img {
    border-radius: 20px;
    width: auto;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

/* ============================================
   17. UTILITY CLASSES
   ============================================ */
.rounded-4 {
    border-radius: 20px;
}

.rounded-5 {
    border-radius: 30px;
}

.shadow-custom {
    box-shadow: var(--card-shadow);
}

.cursor-pointer {
    cursor: pointer;
}

.cta-journey {
    background: linear-gradient(125deg, var(--primary-deep) 0%, var(--accent-coral) 100%);
    border-radius: 60px;
    padding: 3rem 2rem;
    box-shadow: 0 25px 35px -12px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

/* ============================================
   18. ANIMATIONS
   ============================================ */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-deep);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-coral);
    transform: translateY(-3px);
}

/* Loading Spinner */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-deep);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Toast Message */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-deep);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ============================================
   19. RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
    .navbar .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.85rem;
    }
    
    .apply-nav {
        padding: 0.4rem 1rem !important;
    }
}

@media (max-width: 992px) {
    .hero-carousel .carousel-item {
        height: 48vh;
        min-height: 340px;
    }
    
    .carousel-caption {
        width: 75%;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .navbar-logo {
        width: 45px;
    }
    
    .logo-area {
        font-size: 1.3rem;
    }
    
    .small-motto {
        font-size: 0.55rem;
        white-space: normal;
    }
    
    .navbar .nav-link {
        padding: 0.6rem 1rem !important;
        text-align: center;
    }
    
    .apply-nav {
        display: inline-block;
        text-align: center;
        margin-top: 0.3rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 42vh;
    }
    
    .carousel-caption {
        text-align: center;
        left: 5%;
        width: 90%;
        bottom: 15%;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 18px;
    }
    
    .navbar .container {
        position: relative;
    }
    
    .logo-area {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        width: 40px;
    }
    
    .small-motto {
        font-size: 0.5rem;
        white-space: normal;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .cta-journey {
        padding: 2rem 1rem;
    }
    
    .page-header {
        padding: 2.5rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-title:after {
        font-size: 1.2rem;
        bottom: -18px;
    }
    
    .carousel-caption p {
        font-size: 0.85rem;
    }
}

