:root {
    --primary: #1E3A8A;
    --secondary: #2563EB;
    --accent: #F59E0B;
    --bg: #FFFFFF;
    --card: #F8FAFC;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(30, 58, 138, 0.08);
    --shadow-lg: 0 20px 50px rgba(30, 58, 138, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-ring {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: loaderSpin 0.9s linear infinite;
}
.loader-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    padding: 8px;
    animation: loaderPulse 1.4s ease-in-out infinite;
}
.loader-text {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    opacity: 0.9;
    animation: loaderFade 1.4s ease-in-out infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes loaderFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
@media (max-width: 768px) {
    .loader-inner { width: 90px; height: 90px; }
    .loader-logo { width: 58px; height: 58px; }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    line-height: 1.25;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4); }

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover { transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo { height: 46px; width: 46px; object-fit: contain; border-radius: 10px; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 20px; color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
    transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    background: var(--primary);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--primary); border-radius: 3px; }

/* Hero */
.hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,58,138,0.75), rgba(30,58,138,0.55));
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 640px;
    padding: 0 24px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
}
.hero-content h1 { color: #fff; font-size: 46px; font-weight: 800; margin-bottom: 16px; animation: fadeUp 0.8s ease; }
.hero-content p { font-size: 18px; margin-bottom: 28px; opacity: 0.95; animation: fadeUp 1s ease; }
.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; border: none; }
.hero-dot.active { background: #fff; width: 28px; border-radius: 10px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--card); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
}
.section-header h2 { font-size: 34px; margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 16px; }

/* Cards / Grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.highlight-card { text-align: center; }
.highlight-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: #fff;
}
.highlight-card h3 { font-size: 18px; margin-bottom: 8px; }
.highlight-card p { color: var(--text-light); font-size: 14px; }

/* Welcome / About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split h2 { font-size: 32px; margin-bottom: 18px; }
.split p { color: var(--text-light); margin-bottom: 16px; }

.message-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}
.message-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.message-card h4 { margin-bottom: 4px; }
.message-card span { color: var(--accent); font-weight: 600; font-size: 13px; }
.message-card p { margin-top: 12px; color: var(--text-light); }

/* Notices */
.notice-list { display: flex; flex-direction: column; gap: 14px; }
.notice-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    overflow: hidden;
}
.notice-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 18px 22px;
    text-align: left;
    font-family: inherit;
}
.notice-header-text { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.notice-item h4 { font-size: 16px; }
.notice-date { color: var(--text-light); font-size: 13px; white-space: nowrap; }
.notice-chevron {
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.notice-item.open .notice-chevron { transform: rotate(180deg); }
.notice-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.notice-content-inner {
    padding: 0 22px 20px;
    color: var(--text-light);
    font-size: 14.5px;
    line-height: 1.7;
}

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.gallery-filters button {
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 1/1; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.lightbox {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.92);
    display: none; align-items: center; justify-content: center; z-index: 2000;
    padding: 24px;
}
.lightbox.active { display: flex; animation: fadeIn 0.25s ease; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 32px; cursor: pointer; background: none; border: none; }

/* Testimonials */
.testimonial-card { text-align: center; }
.testimonial-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.testimonial-card .stars { color: var(--accent); margin-bottom: 12px; }
.testimonial-card p { color: var(--text-light); font-style: italic; margin-bottom: 14px; }
.testimonial-card h4 { font-size: 15px; }
.testimonial-card span { color: var(--text-light); font-size: 13px; }

/* Timings */
.timing-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}
.timing-box div h3 { color: #fff; font-size: 28px; }
.timing-box div span { opacity: 0.85; font-size: 14px; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border 0.2s;
    background: #fff;
}
.form-control:focus { outline: none; border-color: var(--secondary); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #DCFCE7; color: #15803D; }
.alert-error { background: #FEE2E2; color: #B91C1C; }
.alert-info { background: #DBEAFE; color: #1D4ED8; }

/* Result */
.result-search-box { max-width: 560px; margin: 0 auto 50px; background: var(--card); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.result-card { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); overflow-x: auto; }
.result-header { display: flex; gap: 24px; align-items: center; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 2px solid var(--border); }
.result-header img { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; border: 3px solid var(--primary); }
.result-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.result-table th, .result-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.result-table th { background: var(--card); font-family: 'Poppins', sans-serif; color: var(--primary); }
.result-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: var(--card); border-radius: 12px; padding: 24px; }
.result-summary div { text-align: center; }
.result-summary strong { display: block; font-size: 22px; color: var(--primary); font-family: 'Poppins', sans-serif; }
.result-summary span { color: var(--text-light); font-size: 13px; }
.status-pass { color: #15803D; font-weight: 700; }
.status-fail { color: #B91C1C; font-weight: 700; }

/* Reviews page */
.review-card { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); }
.review-card .stars { color: var(--accent); margin-bottom: 10px; }
.review-card h4 { font-size: 16px; margin-bottom: 4px; }
.review-card span { color: var(--text-light); font-size: 12px; }

/* Contact */
.contact-info-card { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); display: flex; gap: 18px; align-items: flex-start; }
.contact-info-card .icon { width: 48px; height: 48px; background: var(--primary); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Print page */
.print-btn-bar { text-align: center; margin: 30px 0; }
@media print { .no-print { display: none !important; } body { background: #fff; } }

/* Footer */
.site-footer { background: #0F1C3F; color: #CBD5E1; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 16px; }
.footer-col p { margin-bottom: 8px; font-size: 14px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 14px; color: #CBD5E1; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.social-links { display: flex; flex-direction: column; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 20px 0; font-size: 13px; }

/* Page banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 70px 0;
    text-align: center;
}
.page-banner h1 { color: #fff; font-size: 38px; }
.page-banner p { opacity: 0.9; margin-top: 10px; }

/* Responsive */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 80px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        display: none;
        gap: 4px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { text-align: center; }
    .hero-content h1 { font-size: 32px; }
    .hero-content { text-align: center; margin: 0 auto; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .result-header { flex-direction: column; text-align: center; }
    .message-card { flex-direction: column; text-align: center; }
    .message-card img { margin: 0 auto; }
    .contact-info-card { flex-direction: column; text-align: center; }
    .contact-info-card .icon { margin: 0 auto; }
    .card, .result-card { padding: 24px; }
    .result-search-box { padding: 24px; }
    .page-banner { padding: 50px 0; }
    .page-banner h1 { font-size: 28px; }
    .section { padding: 60px 0; }
}
