/* --- Gradients --- */
.gradient-bg-1 {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
}

.hero-overlay {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
}

/* --- Navigation Menu --- */
.mod-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.mod-menu > li {
    position: relative;
}

.mod-menu > li > a,
.mod-menu > li > span.nav-header {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #475569;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.mod-menu > li > a:hover,
.mod-menu > li > span.nav-header:hover {
    color: #0F172A;
}

.mod-menu > li > a::after,
.mod-menu > li > span.nav-header::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #F59E0B;
    transition: width 0.3s;
}

.mod-menu > li > a:hover::after,
.mod-menu > li > span.nav-header:hover::after,
.mod-menu > li.current > a::after,
.mod-menu > li.active > a::after {
    width: 100%;
}

.mod-menu > li.current > a,
.mod-menu > li.active > a {
    color: #F59E0B;
}

.mod-menu__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: 0.75rem;
    padding: 0.5rem;
    list-style: none;
    z-index: 50;
}

.mod-menu > li.parent:hover .mod-menu__sub {
    display: block;
}

.mod-menu__sub li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #475569;
    font-size: 0.8125rem;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.mod-menu__sub li a:hover {
    background: #F8FAFC;
    color: #F59E0B;
}

/* Offcanvas menu */
#offcanvas .mod-menu {
    flex-direction: column;
}

#offcanvas .mod-menu > li > a,
#offcanvas .mod-menu > li > span.nav-header {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
}

#offcanvas .mod-menu > li > a::after,
#offcanvas .mod-menu > li > span.nav-header::after {
    display: none;
}

#offcanvas .mod-menu__sub {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Membership Cards --- */
.membership-card {
    transition: all 0.4s ease;
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.membership-card.popular {
    border: 2px solid #F59E0B;
    position: relative;
}

.membership-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #F59E0B;
    color: #0F172A;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

/* --- Guide Cards --- */
.guide-card {
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* --- Program Cards --- */
.program-card {
    transition: all 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- Service Cards --- */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #F59E0B;
}

/* --- Contact Cards --- */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* --- Office Cards --- */
.office-card {
    transition: all 0.3s ease;
}

.office-card:hover {
    border-color: #F59E0B;
}

/* --- Filter buttons --- */
.filter-btn.active {
    background-color: #0F172A;
    color: #ffffff;
}

/* --- Tab buttons --- */
.tab-btn.active {
    background-color: #0F172A;
    color: #ffffff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* --- Accordion --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* --- Form inputs --- */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* --- Footer --- */
.footer-links .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links .nav-item {
    margin-bottom: 0.75rem;
}
.footer-links .nav-item a {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}
.footer-links .nav-item a:hover {
    color: #F59E0B;
}

/* --- Floating Shapes --- */
.floating-shapes div {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* --- Timeline --- */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #F59E0B;
    border: 3px solid #fff;
}

@media (max-width: 767px) {
    .timeline-item::before {
        left: 16px;
    }
}

/* --- Loader --- */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #F59E0B;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Joomla Component Styles --- */
.com-content-article h1,
.com-content-article h2,
.com-content-article h3,
.com-content-article h4 {
    color: #0F172A;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.com-content-article h1 { font-size: 1.875rem; font-weight: 700; }
.com-content-article h2 { font-size: 1.5rem; font-weight: 600; }
.com-content-article h3 { font-size: 1.25rem; font-weight: 600; }

.com-content-article p {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: #475569;
}

.com-content-article img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.com-content-article ul,
.com-content-article ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #475569;
    line-height: 1.75;
}

.com-content-article li {
    margin-bottom: 0.25rem;
}

/* Normalize legacy inline-styled article content to match the site design */
.com-content-article p span {
    font-family: inherit !important;
    font-size: 1rem !important;
}

/* Section headings authored as bold "arial black" spans */
.com-content-article p span[style*="arial black"] {
    display: block;
    font-family: inherit !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0F172A;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 2rem 0 1rem;
}

/* Responsive, card-style images (e.g. embedded base64 flyers) */
.com-content-article img {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
    display: block;
}

/* Tables: scroll on small screens + clean site styling */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.75rem 0;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
}

.article-table,
.com-content-article table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: #fff;
}

.article-table td,
.com-content-article table td {
    border: 1px solid #E2E8F0;
    padding: 0.85rem 1rem;
    vertical-align: top;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
}

.com-content-article table td span {
    font-family: inherit !important;
    font-size: 0.95rem !important;
}

/* --- Buttons --- */
.btn,
button.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    line-height: 1.5;
}

.btn-primary {
    background: #0F172A;
    color: #fff;
}

.btn-primary:hover {
    background: #1E3A8A;
    color: #fff;
}

.btn-accent {
    background: #F59E0B;
    color: #0F172A;
}

.btn-accent:hover {
    background: #D97706;
    color: #0F172A;
}

/* --- Blog Layout --- */
.blog-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-item {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.blog-item .item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-item .item-content {
    padding: 1.25rem;
}

/* --- Forms --- */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #0F172A;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0F172A;
    margin-bottom: 0.375rem;
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

th {
    background: #F8FAFC;
    font-weight: 600;
    color: #0F172A;
}

td {
    color: #475569;
}

/* --- System Messages --- */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 1rem auto;
    max-width: 80rem;
    font-size: 0.875rem;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-error,
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination li a:hover {
    background: #F59E0B;
    color: #fff;
    border-color: #F59E0B;
}

.pagination li.active span {
    background: #0F172A;
    color: #fff;
    border-color: #0F172A;
}

/* --- Contact Form --- */
.contact-form .control-group {
    margin-bottom: 1rem;
}

/* --- Read More --- */
.readmore a {
    color: #F59E0B;
    font-weight: 600;
    text-decoration: none;
}

.readmore a:hover {
    color: #D97706;
    text-decoration: underline;
}

/* --- Categories --- */
.categories-list .category-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.categories-list a {
    color: #F59E0B;
    text-decoration: none;
    font-weight: 500;
}

.categories-list a:hover {
    color: #D97706;
    text-decoration: underline;
}

/* --- Legacy Bootstrap 3 Grid compat --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    box-sizing: border-box;
}

.col-xs-12 { width: 100%; }
.col-xs-6 { width: 50%; }

@media (min-width: 576px) {
    .col-sm-12 { width: 100%; }
    .col-sm-8 { width: 66.6667%; }
    .col-sm-6 { width: 50%; }
    .col-sm-4 { width: 33.3333%; }
    .col-sm-3 { width: 25%; }
}

@media (min-width: 768px) {
    .col-md-12 { width: 100%; }
    .col-md-8 { width: 66.6667%; }
    .col-md-6 { width: 50%; }
    .col-md-4 { width: 33.3333%; }
    .col-md-3 { width: 25%; }
}

/* --- Footer Menu --- */
footer .mod-menu {
    flex-direction: column;
}

footer .mod-menu > li > a,
footer .mod-menu > li > span.nav-header {
    padding: 0.375rem 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

footer .mod-menu > li > a:hover {
    color: #F59E0B;
}

footer .mod-menu > li > a::after,
footer .mod-menu > li > span.nav-header::after {
    display: none;
}

/* --- Notice Ticker --- */
.ticker-wrap {
    overflow: hidden;
    width: 100%;
}
.ticker-move {
    display: flex;
    width: max-content;
    animation: ticker-scroll 20s linear infinite;
}
.ticker-move:hover {
    animation-play-state: paused;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .blog-items {
        grid-template-columns: 1fr;
    }
}
