/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --accent-gold: #6D5F32;
    --dark-green: #1e3c33;
    --text-main: #333333;
    --text-muted: #666666;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    color: var(--text-main);
}
/* ==========================================================================
   GLOBAL VARIABLES (NAVBAR ONLY)
   ========================================================================== */
:root {
    --brand-gold: #6D5F32;
}
/* ==========================================================================
   2. NAV-PILL (FIXED AT TOP)
   ========================================================================== */
.nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    padding: 8px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 95%;
    z-index: 1030;
}

.nav-pill.scrolled {
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    top: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    border-radius: 8px;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-collapse {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    list-style: none;
}

.navbar-nav .nav-link {
    color: #6D5F32 !important;
    font-weight: 500;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--brand-gold);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar-nav .nav-link:hover {
    color: #d4af37 !important;
}

.nav-pill.scrolled .navbar-nav .nav-link {
    color: var(--brand-gold) !important;
}

.nav-pill.scrolled .navbar-nav .nav-link::after {
    background-color: var(--brand-gold);
}

.src-container {
    display: flex;
    align-items: center;
    background-color: #f5f5f0;
    border-radius: 30px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    gap: 5px;
}

.nav-pill.scrolled .src-container {
    background-color: transparent;
    border: 1px solid var(--brand-gold);
}

.nav-pill.scrolled .src-btn {
    color: var(--brand-gold);
}

.nav-pill.scrolled .src-container input {
    color: var(--brand-gold);
}

.nav-pill.scrolled .src-container input::placeholder {
    color: var(--brand-gold);
    opacity: 0.7;
}

.src-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6D5F32;
    font-size: 14px;
    transition: all 0.3s ease;
}

.src-btn:hover {
    color: #d4af37;
    transform: scale(1.1);
}

.src-container input {
    background-color: transparent;
    border: none;
    outline: none;
    width: 0;
    opacity: 0;
    padding: 0;
    transition: all 0.3s ease;
    font-size: 13px;
}

.src-container.active input {
    width: 150px;
    opacity: 1;
    padding: 4px 8px;
}

.mobile-dropdown-container {
    position: relative;
    display: none;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(109, 95, 50, 0.1);
    border: none;
    border-radius: 40px;
    padding: 8px 16px;
    font-weight: 500;
    color: #6D5F32;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-pill.scrolled .mobile-menu-btn {
    color: var(--brand-gold);
    background: transparent;
    border: 1px solid var(--brand-gold);
}

.mobile-menu-btn:hover {
    background: rgba(109, 95, 50, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-btn i {
    font-size: 18px;
}

.mobile-menu-btn span {
    font-size: 14px;
}

.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1050;
    overflow: hidden;
}

.mobile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6D5F32;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid rgba(178, 161, 108, 0.1);
    transition: all 0.3s ease;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    background: rgba(178, 161, 108, 0.15);
    padding-left: 28px;
}

/* ============================================
   CERTIFICATIONS HERO SECTION
   ============================================ */
.certifications-hero {
    background-image: url('../images/CertBanner.png');
    height: 400px;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    margin-top: 0;
    left: 0;
    border: none;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-content {
    animation: fadeInUpNews 0.9s ease-out;
    border: none;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

.hero-description {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ============================================
   CERTIFICATIONS GRID & CARDS
   ============================================ */
.certifications-container {
    padding: 60px 20px;
}

.certification-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
    border: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.cert-img-wrapper {
    padding: 25px;
    background-color: #fcfcfc;
    border-bottom: 1px solid #f0f0f0;
}

/* Clickable Image Style */
.img-pop {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.img-pop:hover {
    filter: brightness(0.9);
    transform: scale(1.03);
}

.certification-card .card-body {
    padding: 25px;
}

.certification-card .card-title {
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.certification-card .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================
   MODAL STYLING
   ============================================ */
.modal-cert-img {
    max-height: 80vh;
    border: 4px solid white;
}

.modal-backdrop.show {
    opacity: 0.85;
}

#certModal .modal-content {
    background: transparent;
}

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

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

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    background: var(--accent-gold);
    color: #ffffff;
    padding: 20px 0;
    font-weight: 500;
    margin-top: 50px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #d4af37;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* DESKTOP (993px and above) */
@media (min-width: 993px) {
    .mobile-dropdown-container {
        display: none !important;
    }
    .collapse.navbar-collapse {
        display: flex !important;
    }
    .navbar-toggler {
        display: none !important;
    }
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        width: auto;
    }
}

/* TABLET (max-width: 992px) */
@media (max-width: 992px) {
    .nav-pill {
        padding: 6px 16px !important;
        width: 95% !important;
    }
    
    .collapse.navbar-collapse {
        display: none !important;
    }
    
    .mobile-dropdown-container {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .navbar-nav {
        display: none !important;
    }
    
    .src-container input {
        width: auto !important;
        opacity: 1 !important;
    }
}

/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .nav-pill {
        width: 95% !important;
        top: 10px;
    }
    
    .certifications-hero {
        height: 300px;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .certifications-container {
        padding: 40px 15px;
    }
}

/* SMALL MOBILE (max-width: 576px) */
@media (max-width: 576px) {
    .nav-pill {
        padding: 5px 12px !important;
        width: 95% !important;
    }
    
    .mobile-menu-btn span {
        display: none;
    }
    
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }
    
    .src-container {
        max-width: 110px;
    }
    
    .src-container input {
        font-size: 11px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .cert-img-wrapper {
        padding: 15px;
    }
    
    .img-pop {
        max-height: 140px;
    }
}

/* EXTRA SMALL (max-width: 400px) */
@media (max-width: 400px) {
    .nav-pill {
        padding: 4px 10px !important;
        gap: 8px !important;
    }
    
    .src-container {
        max-width: 90px;
        padding: 4px 8px !important;
    }
    
    .mobile-menu-btn {
        padding: 5px 8px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}