/* ============================================ */
/* CSS VARIABLES - Easy to change colors globally */
/* ============================================ */
:root {
    --ptp-green: #28a745;
    --ptp-dark-green: #1e7e34;
    --ptp-blue: #0070bd;
    --ptp-gray: #6c757d;
    --ptp-light-gray: #f8f9fa;
    --ptp-border: #e9ecef;
    --ptp-text: #495057;
}

/* ============================================ */
/* RESET & BASE */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #e8edf2 0%, #dce2e8 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* ============================================ */
/* LAYOUT */
/* ============================================ */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-card {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================ */
/* NAVIGATION MENU */
/* ============================================ */
.nav-menu-bar {
    background: linear-gradient(135deg, var(--ptp-green), var(--ptp-dark-green));
    padding: 8px 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu-wrapper {
    position: relative;
    width: 100%;
}

.nav-menu-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

.nav-menu-container::-webkit-scrollbar {
    display: none;
}

.nav-menu-item {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 0;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.nav-menu-item:hover {
    color: #000000;
    text-shadow: none;
}

.nav-menu-item i {
    font-size: 0.9rem;
    margin-right: 6px;
    color: #ffffff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.nav-menu-item:hover i {
    color: #000000;
    text-shadow: none;
}

.nav-menu-item.billing-btn {
    background: transparent;
    border-radius: 0;
    padding: 6px 0;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
}

@media (hover: hover) and (pointer: fine) {
    .nav-menu-item.billing-btn:hover {
        background: linear-gradient(135deg, #ffd700, #ffc107);
        color: var(--ptp-dark-green);
        transform: scale(1.12);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-radius: 25px;
        padding: 6px 18px;
        margin: -6px 0;
        z-index: 10;
    }

    .nav-menu-item.billing-btn:hover i {
        color: var(--ptp-dark-green);
    }
}

.nav-menu-item.billing-btn:active {
    background: linear-gradient(135deg, #ffd700, #ffc107);
    color: var(--ptp-dark-green);
    border-radius: 25px;
    padding: 6px 18px;
    margin: -6px 0;
    transform: scale(1.05);
    transition: all 0.1s ease;
}

.nav-separator {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 300;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

/* Navigation Responsive */
@media (min-width: 992px) {
    .nav-menu-container {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .nav-menu-bar {
        padding: 6px 15px;
    }

    .nav-menu-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .nav-menu-bar {
        padding: 4px 10px;
    }

    .nav-menu-container {
        gap: 6px;
        padding: 4px 0;
        justify-content: flex-start;
    }

    .nav-menu-item {
        font-size: 0.65rem;
        padding: 3px 0;
    }

    .nav-separator {
        font-size: 0.6rem;
    }
}

/* ============================================ */
/* CONTENT SECTIONS */
/* ============================================ */
.welcome-section,
.quick-links-section,
.announcement-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--ptp-border);
}

.announcement-section {
    margin-top: 20px;
}

.welcome-section:hover,
.quick-links-section:hover,
.announcement-section:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================ */
/* EQUAL HEIGHT CARDS - FIXED */
/* ============================================ */

/* DESKTOP: Equal height side by side */
@media (min-width: 992px) {
    .row.g-3.g-lg-4 {
        display: flex;
        flex-wrap: wrap;
    }

    .row.g-3.g-lg-4 > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    .welcome-section,
    .quick-links-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .welcome-content,
    .quick-links-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .welcome-section .registration-section {
        margin-top: auto;
    }

    .quick-links-section .quick-link-item:last-child {
        margin-bottom: 0;
    }
}

/* TABLET & MOBILE: Natural height, stack vertically */
@media (max-width: 991px) {
    .welcome-section,
    .quick-links-section {
        height: auto !important;
        min-height: unset !important;
    }

    .welcome-content,
    .quick-links-content {
        flex: none;
    }

    .welcome-section .registration-section {
        margin-top: 10px;
    }
}

/* Small mobile: Reduce padding */
@media (max-width: 576px) {
    .welcome-section,
    .quick-links-section {
        padding: 12px;
    }

    .welcome-section {
        margin-bottom: 10px;
    }

    .quick-links-section {
        margin-bottom: 0;
    }
}

/* ============================================ */
/* SECTION HEADER */
/* ============================================ */
.section-header {
    background: linear-gradient(135deg, #f8f9fa, #f1f3f5);
    padding: 12px 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid var(--ptp-green);
    flex-shrink: 0;
}

.section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ptp-dark-green);
    font-weight: 600;
}

/* ============================================ */
/* QUICK LINKS */
/* ============================================ */
.quick-link-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--ptp-border);
    transition: all 0.2s ease;
}

.quick-link-item:hover {
    padding-left: 8px;
    background-color: var(--ptp-light-gray);
}

.quick-link-item a {
    text-decoration: none;
    color: var(--ptp-green);
    margin-left: 8px;
    font-size: 0.9rem;
}

.quick-link-item a:hover {
    color: var(--ptp-dark-green);
    text-decoration: underline;
}

.quick-link-item i {
    color: var(--ptp-green);
    font-size: 0.8rem;
}

/* ============================================ */
/* REGISTRATION SECTION */
/* ============================================ */
.registration-section {
    margin-top: 20px;
}

.separator-line {
    border-top: 1px solid #dee2e6;
    margin: 15px 0;
}

.registration-card {
    border: 2px solid var(--ptp-green);
    border-radius: 12px;
    padding: 16px 20px;
    background-color: #f8fff8;
}

.registration-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.form-label {
    font-weight: 600;
    color: var(--ptp-dark-green);
    margin: 0;
    font-size: 0.9rem;
}

.btn-download {
    background: linear-gradient(135deg, var(--ptp-green), var(--ptp-dark-green));
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--ptp-dark-green), #155d27);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-download i {
    font-size: 0.85rem;
}

/* ============================================ */
/* ANNOUNCEMENT */
/* ============================================ */
.announcement-text p,
.announcement-text li {
    font-size: 0.85rem;
}

.warning-box {
    background-color: #fff8e7;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin: 12px 0;
    border-radius: 8px;
}

.alert.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
}

/* ============================================ */
/* COPYRIGHT */
/* ============================================ */
.copyright {
    background: #212529;
    color: #adb5bd;
    text-align: center;
    padding: 12px;
    font-size: 11px;
    border-radius: 0;
    margin-top: 0;
}

.copyright a {
    color: #6c757d;
    text-decoration: none;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */
.text-danger {
    color: #dc3545 !important;
}

.welcome-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ptp-text);
}

.welcome-section strong {
    color: var(--ptp-dark-green);
}

/* ============================================ */
/* RESPONSIVE BREAKPOINTS */
/* ============================================ */

/* Tablet */
@media (max-width: 992px) {

    .welcome-section,
    .quick-links-section {
        margin-bottom: 20px;
    }
}

/* Small Tablet / Large Phone */
@media (max-width: 768px) {
    .container-custom {
        padding: 0 10px;
    }

    .p-4 {
        padding: 10px 12px !important;
    }

    .welcome-section,
    .quick-links-section,
    .announcement-section {
        padding: 12px;
        border-radius: 8px;
    }

    .welcome-section {
        margin-bottom: 10px;
    }

    .quick-links-section {
        margin-bottom: 0;
    }

    .section-header {
        padding: 8px 12px;
        margin: -12px -12px 12px -12px;
        border-radius: 8px 8px 0 0;
    }

    .section-header h3 {
        font-size: 0.95rem;
    }

    .registration-section {
        margin-top: 10px;
    }

    .separator-line {
        margin: 8px 0;
    }

    .registration-card {
        padding: 10px 12px;
    }

    .registration-row {
        gap: 10px;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .btn-download {
        padding: 5px 14px;
        font-size: 0.75rem;
    }

    .btn-download i {
        font-size: 0.75rem;
    }

    .quick-link-item {
        padding: 7px 0;
    }

    .quick-link-item a {
        font-size: 0.8rem;
    }

    .quick-link-item i {
        font-size: 0.7rem;
    }

    .announcement-text p,
    .announcement-text li {
        font-size: 0.75rem;
    }

    .warning-box {
        padding: 8px;
        margin: 8px 0;
    }

    .alert.alert-warning {
        padding: 8px 10px;
        margin-top: 8px !important;
    }
}

/* Mobile Phone */
@media (max-width: 576px) {
    .container-custom {
        padding: 0 6px;
    }

    .p-4 {
        padding: 6px 8px !important;
    }

    .welcome-section,
    .quick-links-section,
    .announcement-section {
        padding: 10px;
        border-radius: 6px;
    }

    .section-header {
        padding: 6px 10px;
        margin: -10px -10px 10px -10px;
    }

    .section-header h3 {
        font-size: 0.85rem;
    }

    .registration-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .registration-card {
        padding: 8px 10px;
    }

    .btn-download {
        padding: 4px 12px;
        font-size: 0.7rem;
    }

    .btn-download i {
        font-size: 0.7rem;
    }

    .quick-link-item {
        padding: 5px 0;
    }

    .quick-link-item a {
        font-size: 0.75rem;
    }

    .quick-link-item i {
        font-size: 0.65rem;
    }

    .copyright {
        padding: 8px 10px;
        font-size: 9px;
    }

    .warning-box {
        padding: 6px;
    }
}

/* ============================================ */
/* RESPONSIVE ROW GUTTER */
/* ============================================ */

/* Default: Smaller gap on mobile */
.row.g-3.g-lg-4 {
    --bs-gutter-y: 0.75rem;
    --bs-gutter-x: 0.75rem;
}

/* Desktop: Larger gap */
@media (min-width: 992px) {
    .row.g-3.g-lg-4 {
        --bs-gutter-y: 1.5rem;
        --bs-gutter-x: 1.5rem;
    }
}

/* Remove extra padding on columns for mobile */
@media (max-width: 768px) {
    .row.g-3.g-lg-4 [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}