/* ============================================================
   NAAM Platform – Frontend Visual Modernization Layer
   ============================================================
   ADDITIVE ONLY — no color changes, no structural changes,
   no content changes, no functionality changes.
   All original colors, fonts, text preserved exactly.
   ============================================================ */

/* -------------------------------------------------------
   0. Smooth Global Defaults
   ------------------------------------------------------- */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(105, 8, 92, 0.15);
}

/* -------------------------------------------------------
   1. Header – Elevated & Polished
   ------------------------------------------------------- */
.header {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.header .topbar {
    letter-spacing: 0.02em;
}

.header .topbar .social-links .link {
    border-radius: 6px;
    padding: 4px 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .topbar .social-links .link:hover {
    border-radius: 6px;
    transform: translateY(-1px);
}

.header .branding {
    transition: all 0.3s ease;
}

.header .logo img {
    transition: transform 0.3s ease;
}

.header .logo img:hover {
    transform: scale(1.03);
}

/* -------------------------------------------------------
   2. Navigation – Refined Hover States
   ------------------------------------------------------- */
@media (min-width: 1200px) {
    .navmenu > ul > li {
        transition: transform 0.2s ease;
    }

    .navmenu a,
    .navmenu a:focus {
        position: relative;
        transition: color 0.25s ease, transform 0.25s ease;
    }

    .navmenu > ul > li > a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--nav-hover-color);
        transition: width 0.3s ease, left 0.3s ease;
        border-radius: 2px;
    }

    .navmenu > ul > li:hover > a::after,
    .navmenu > ul > li > a.active::after {
        width: 80%;
        left: 10%;
    }

    .navmenu .dropdown ul {
        border-radius: 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1),
                    0 2px 6px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.04);
        padding: 8px 0;
        animation: navDropFade 0.2s ease forwards;
    }

    .navmenu .dropdown ul a {
        border-radius: 6px;
        margin: 0 6px;
        padding: 10px 14px;
        transition: all 0.2s ease;
    }

    .navmenu .dropdown ul a:hover {
        transform: none;
    }
}

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

/* Mobile Navigation Polish */
@media (max-width: 1199px) {
    .navmenu ul {
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        padding: 12px 0;
    }

    .navmenu a {
        border-radius: 8px;
        margin: 2px 8px;
        transition: all 0.2s ease;
    }

    .navmenu a:hover {
        background: rgba(105, 8, 92, 0.04);
    }

    .mobile-nav-toggle {
        transition: all 0.25s ease;
        border-radius: 8px;
        padding: 4px;
    }

    .mobile-nav-toggle:hover {
        background: rgba(105, 8, 92, 0.06);
    }
}

/* -------------------------------------------------------
   3. Buttons – Polished with Depth
   ------------------------------------------------------- */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 24px;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(105, 8, 92, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(105, 8, 92, 0.25);
}

.btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(105, 8, 92, 0.2);
}

/* -------------------------------------------------------
   4. Section Titles – Better Spacing
   ------------------------------------------------------- */
.section-title {
    margin-bottom: 28px;
}

.section-title h2 {
    letter-spacing: -0.02em;
}

.section-title h3 {
    letter-spacing: -0.01em;
}

.section-title p {
    line-height: 1.7;
}

/* -------------------------------------------------------
   5. Cards – Modern Elevation
   ------------------------------------------------------- */
.card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06),
                0 8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-body {
    padding: 20px 24px;
}

.card img {
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.03);
}

/* -------------------------------------------------------
   6. Footer – Visual Depth
   ------------------------------------------------------- */
.footer {
    position: relative;
}

.footer .footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer .social-links a {
    border-radius: 8px;
    padding: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer .social-links a:hover {
    border-radius: 8px;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer a {
    border-radius: 6px;
    transition: all 0.25s ease;
}

.footer a:hover {
    border-radius: 6px;
}

.footer .footer-logo {
    border-radius: 14px;
}

/* -------------------------------------------------------
   7. Forms – Clean Inputs
   ------------------------------------------------------- */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea {
    border-radius: 10px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(105, 8, 92, 0.1);
    outline: none;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    opacity: 0.5;
}

.form-select {
    border-radius: 10px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    padding: 12px 40px 12px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(105, 8, 92, 0.1);
}

.form-check-input {
    border-radius: 5px;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:checked {
    box-shadow: 0 0 0 2px rgba(105, 8, 92, 0.15);
}

.form-check-label {
    cursor: pointer;
}

/* Select2 Frontend */
.select2-container--default .select2-selection--single {
    border-radius: 10px !important;
    border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
    height: 46px !important;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}

.select2-container--default .select2-selection--multiple {
    border-radius: 10px !important;
    border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
    min-height: 46px;
    padding: 6px 10px;
}

.select2-dropdown {
    border-radius: 10px !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(105, 8, 92, 0.1) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    border-radius: 6px;
}

/* -------------------------------------------------------
   8. Validation Feedback – Polished
   ------------------------------------------------------- */
.invalid-feedback {
    border-radius: 6px;
    padding: 4px 0;
    margin-top: 4px;
}

/* -------------------------------------------------------
   9. About Section – Enhanced Cards
   ------------------------------------------------------- */
.about .about-item {
    transition: transform 0.3s ease;
}

.about .about-item:hover {
    transform: translateY(-2px);
}

.about .about-item p {
    line-height: 1.7;
}

/* -------------------------------------------------------
   10. Profile Section – Refined
   ------------------------------------------------------- */
.profile .card {
    border-radius: 14px;
}

.profile img {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------
   11. Hero Section – Smooth Animations
   ------------------------------------------------------- */
.play-btn {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.play-btn:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
    transform: translateX(-40%) translateY(-50%) scale(1.05);
}

/* -------------------------------------------------------
   12. FAQ Section – Accordion Modernized
   ------------------------------------------------------- */
.accordion-item {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.accordion-item:first-of-type,
.accordion-item:last-of-type {
    border-radius: 12px;
}

.accordion-button {
    border-radius: 12px;
    font-weight: 500;
    padding: 16px 20px;
    transition: all 0.25s ease;
}

.accordion-button:not(.collapsed) {
    border-radius: 12px 12px 0 0;
}

.accordion-body {
    padding: 16px 20px;
    line-height: 1.7;
}

/* -------------------------------------------------------
   13. Pagination – Modern Pills
   ------------------------------------------------------- */
.pagination {
    gap: 4px;
}

.page-link {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.page-item.active .page-link {
    box-shadow: 0 2px 8px rgba(105, 8, 92, 0.3);
    border-radius: 8px;
}

.page-item:first-child .page-link {
    border-radius: 8px;
}

.page-item:last-child .page-link {
    border-radius: 8px;
}

/* -------------------------------------------------------
   14. Badges – Modern Shape
   ------------------------------------------------------- */
.badge {
    border-radius: 6px;
    padding: 5px 12px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.badge.rounded-pill {
    border-radius: 50px;
}

/* -------------------------------------------------------
   15. Alerts – Softer Look
   ------------------------------------------------------- */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* -------------------------------------------------------
   16. Modals – Premium
   ------------------------------------------------------- */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 24px;
    gap: 8px;
}

.modal.fade .modal-dialog {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
}

/* -------------------------------------------------------
   17. Tables – Clean Style
   ------------------------------------------------------- */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table > thead > tr > th {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.table > tbody > tr > td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.table > tbody > tr:hover {
    background-color: rgba(105, 8, 92, 0.02);
}

.table > tbody > tr:last-child > td {
    border-bottom: none;
}

/* -------------------------------------------------------
   18. Swiper / Slider Enhancements
   ------------------------------------------------------- */
.swiper-pagination-bullet {
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

/* -------------------------------------------------------
   19. SweetAlert Modernization
   ------------------------------------------------------- */
.swal2-popup {
    border-radius: 18px !important;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.15) !important;
    padding: 32px !important;
}

.swal2-styled {
    border-radius: 10px !important;
    padding: 12px 32px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
}

.swal2-styled:hover {
    transform: translateY(-1px);
}

/* -------------------------------------------------------
   20. Toastr Modernization
   ------------------------------------------------------- */
#toast-container > div {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    padding: 16px 20px 16px 52px !important;
    opacity: 1 !important;
}

/* -------------------------------------------------------
   21. GLightbox Enhancement
   ------------------------------------------------------- */
.glightbox-clean .gslide-description {
    border-radius: 0 0 14px 14px;
    padding: 20px 24px;
}

.glightbox-clean .gslide-media {
    border-radius: 14px;
    overflow: hidden;
}

/* -------------------------------------------------------
   22. AOS Animation Refinement
   ------------------------------------------------------- */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* -------------------------------------------------------
   23. Global Scrollbar
   ------------------------------------------------------- */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(105, 8, 92, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(105, 8, 92, 0.35);
}

/* -------------------------------------------------------
   24. Dropdown Menus
   ------------------------------------------------------- */
.dropdown-menu {
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1),
                0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    margin: 1px 0;
}

/* -------------------------------------------------------
   25. Tooltips & Popovers
   ------------------------------------------------------- */
.tooltip-inner {
    border-radius: 8px;
    padding: 8px 14px;
}

.popover {
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* -------------------------------------------------------
   26. Event / Program Cards
   ------------------------------------------------------- */
.events .card,
.programs .card,
.blog .card {
    border-radius: 14px;
    overflow: hidden;
}

.events .card img,
.programs .card img,
.blog .card img {
    transition: transform 0.4s ease;
}

.events .card:hover img,
.programs .card:hover img,
.blog .card:hover img {
    transform: scale(1.05);
}

/* -------------------------------------------------------
   27. Social Links Enhancement
   ------------------------------------------------------- */
.social-links a {
    transition: all 0.25s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* -------------------------------------------------------
   28. Image Containers
   ------------------------------------------------------- */
.img-fluid {
    border-radius: 10px;
}

figure img {
    border-radius: 10px;
}

/* -------------------------------------------------------
   29. List Groups
   ------------------------------------------------------- */
.list-group {
    border-radius: 12px;
}

.list-group-item {
    padding: 14px 20px;
    border-color: rgba(0, 0, 0, 0.05);
}

.list-group-item:first-child {
    border-radius: 12px 12px 0 0;
}

.list-group-item:last-child {
    border-radius: 0 0 12px 12px;
}

/* -------------------------------------------------------
   30. Issues / Magazine Section
   ------------------------------------------------------- */
.issues .item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.issues .item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.issues .item .download-button {
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* -------------------------------------------------------
   31. Contact Section
   ------------------------------------------------------- */
.contact .info-box {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.contact .info-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* -------------------------------------------------------
   32. Focus Visible (Accessibility)
   ------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: none;
}

/* -------------------------------------------------------
   33. Progress Bars
   ------------------------------------------------------- */
.progress {
    border-radius: 10px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------
   34. Responsive Refinements
   ------------------------------------------------------- */
@media (max-width: 768px) {
    .card {
        border-radius: 12px;
    }

    .card-body {
        padding: 16px;
    }

    .modal-content {
        border-radius: 14px;
        margin: 8px;
    }

    .btn {
        padding: 10px 20px;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .accordion-item {
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .card {
        border-radius: 10px;
    }

    .modal-content {
        border-radius: 12px;
    }

    .dropdown-menu {
        border-radius: 10px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px;
    }
}

/* -------------------------------------------------------
   35. Single Visit Schedule Cards
   ------------------------------------------------------- */
.single_visit_schedule {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.single_visit_schedule:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------
   36. Print Styles
   ------------------------------------------------------- */
@media print {
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .btn {
        box-shadow: none !important;
    }
}

/* -------------------------------------------------------
   37. intl-tel-input Enhancement
   ------------------------------------------------------- */
.iti {
    border-radius: 10px;
}

.iti__country-list {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.iti__selected-flag {
    border-radius: 10px 0 0 10px;
}

/* -------------------------------------------------------
   38. About Us Contents
   ------------------------------------------------------- */
.about_us_contents .section-header h2 {
    letter-spacing: -0.02em;
}

.about_us_contents .section-header p {
    line-height: 1.7;
}
