/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Admin portal styling                                               */
/* ------------------------------------------------------------------ */

.admin-portal {
    background: #f4f6fb;
    min-height: 100vh;
    color: #10264d;
}

.admin-header {
    background: linear-gradient(90deg, #0c2254, #1e3d72);
    padding: 1rem 0;
    box-shadow: 0 8px 24px rgba(12, 34, 84, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-1px);
}

.admin-account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.admin-user {
    font-weight: 600;
}

.btn-tertiary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-tertiary {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.btn-success {
    background: #28a745;
    color: #fff;
    border: 2px solid #218838;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ff6b6b;
    color: #fff;
    border: 2px solid #ff4b4b;
}

.btn-danger:hover {
    background: #ff4b4b;
    transform: translateY(-1px);
}

.admin-main {
    padding: 2.5rem 0 3rem;
}

.admin-section {
    background: transparent;
    margin-bottom: 2.5rem;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-section-header h1,
.admin-section-header h2 {
    margin: 0;
}

.admin-section-header p {
    margin: 0.35rem 0 0;
    color: #405177;
}

.admin-stats-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-stat-card {
    background: linear-gradient(160deg, #1e3d72, #2c5aa0);
    color: #fff;
    padding: 1.75rem;
    border-radius: 18px;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 20px 45px rgba(23, 47, 90, 0.3);
}

.admin-stat-icon {
    font-size: 2rem;
}

.admin-stat-text {
    display: flex;
    flex-direction: column;
}

.admin-stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

.admin-stat-value {
    font-size: 2.1rem;
    font-weight: 700;
}

.admin-table-wrapper {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(16, 38, 77, 0.12);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(16, 38, 77, 0.08);
}

.admin-table th {
    font-size: 0.85rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #5a6b8a;
    background: rgba(16, 38, 77, 0.04);
}

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

.admin-table-subtext {
    display: block;
    font-size: 0.8rem;
    color: #61719a;
    margin-top: 0.25rem;
}

.admin-table-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-table-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
}

.admin-table-actions .btn-tertiary {
    background: #5a6b8a;
    color: #fff;
}

.admin-table-actions .btn-tertiary:hover {
    background: #3d4a5f;
}

.admin-table-actions .btn-secondary {
    background: #2c5aa0;
    color: #fff;
    border-color: #2c5aa0;
}

.admin-table-actions .btn-secondary:hover {
    background: #1e3d72;
    border-color: #1e3d72;
}

.admin-empty {
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(16, 38, 77, 0.08);
    color: #5a6b8a;
    text-align: center;
}

.admin-action-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-detail-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-detail-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 18px 40px rgba(16, 38, 77, 0.1);
}

.admin-detail-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.admin-detail-card h3 {
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.admin-detail-card dl {
    margin: 0;
}

.admin-detail-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(16, 38, 77, 0.08);
}

.admin-detail-card dl > div:last-child {
    border-bottom: none;
}

.admin-detail-card dt {
    font-weight: 600;
    color: #546487;
}

.admin-detail-card dd {
    margin: 0;
    text-align: right;
    color: #10264d;
}

.admin-form-view {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 18px 40px rgba(16, 38, 77, 0.1);
}

.admin-form-view h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e3d72;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #ff6b35;
}

.admin-form-view h2:first-child {
    margin-top: 0;
}

.admin-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #546487;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-form-field .value {
    padding: 0.75rem 1rem;
    background: #f7f9ff;
    border: 1px solid rgba(30, 61, 114, 0.15);
    border-radius: 8px;
    color: #10264d;
    font-weight: 500;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.admin-form-field .value.empty {
    color: #9ba5c0;
    font-style: italic;
}

.admin-form-field.full-width {
    grid-column: 1 / -1;
}

.admin-form-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.admin-form-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.admin-form-photo img {
    width: 100%;
    max-width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(16, 38, 77, 0.15);
    border: 2px solid rgba(30, 61, 114, 0.1);
}

.admin-form-photo span {
    font-size: 0.85rem;
    color: #546487;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-search-bar {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(16, 38, 77, 0.08);
    margin-bottom: 1.5rem;
}

.admin-search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i.fa-search {
    position: absolute;
    left: 1rem;
    color: #5a6b8a;
}

.admin-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid rgba(30, 61, 114, 0.15);
    border-radius: 999px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.admin-search-input:focus {
    outline: none;
    border-color: #2c5aa0;
}

.search-clear {
    position: absolute;
    right: 1rem;
    color: #9ba5c0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-clear:hover {
    color: #ff6b6b;
}

.search-results-info {
    margin-top: 1rem;
    color: #546487;
    font-size: 0.9rem;
}

.admin-pagination {
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(16, 38, 77, 0.08);
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #546487;
    font-weight: 600;
}

.pagination-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-current {
    padding: 0 0.75rem;
    font-weight: 600;
    color: #1e3d72;
}

.admin-photo-preview {
    margin-top: 1.5rem;
    text-align: center;
}

.admin-photo-preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(16, 38, 77, 0.2);
}

.admin-photo-preview span {
    display: block;
    margin-top: 0.5rem;
    color: #5a6b8a;
    font-weight: 600;
}

.admin-photo-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.admin-photo-grid figure {
    width: 150px;
    text-align: center;
}

.admin-photo-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(16, 38, 77, 0.16);
}

.admin-photo-grid figcaption {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #5a6b8a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 18px 40px rgba(16, 38, 77, 0.1);
}

.admin-form .form-field {
    margin-bottom: 1rem;
}

.admin-form .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-gallery-card {
    background: #f7f9ff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(30, 61, 114, 0.08);
    display: flex;
    flex-direction: column;
}

.admin-gallery-card figure {
    margin: 0;
}

.admin-gallery-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.admin-gallery-card figcaption {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #10264d;
}

.admin-gallery-meta {
    font-size: 0.75rem;
    color: #5a6b8a;
}

.admin-gallery-actions {
    margin: 0;
    padding: 0.75rem 1rem 1rem;
}

.admin-messages {
    margin: 1.5rem 0 0;
}

.admin-alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.admin-alert-info {
    background: rgba(30, 61, 114, 0.12);
    color: #1e3d72;
}

.admin-alert-success {
    background: rgba(30, 189, 97, 0.12);
    color: #1c8a4f;
}

.admin-alert-error,
.admin-alert-danger {
    background: rgba(255, 77, 77, 0.15);
    color: #b71f1f;
}

.admin-footer {
    padding: 2rem 0;
    text-align: center;
    color: #61719a;
    font-size: 0.9rem;
}

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(30, 61, 114, 0.25), transparent 55%), #f4f6fb;
}

.admin-login-wrapper {
    width: min(420px, 94%);
}

.admin-login-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(16, 38, 77, 0.18);
    padding: 2.5rem;
}

.admin-login-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.admin-login-header img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f4f6fb;
    padding: 6px;
}

.admin-login-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-login-header p {
    margin: 0.35rem 0 0;
    color: #5a6b8a;
}

.admin-login-form .form-field {
    margin-bottom: 1.1rem;
}

.admin-login-form .form-input {
    width: 100%;
}

.admin-login-form .btn.full-width {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
}

.admin-login-footer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #5a6b8a;
    text-align: center;
}

@media (max-width: 992px) {
    .admin-header-inner {
        flex-wrap: wrap;
    }

    .admin-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .admin-account {
        order: 2;
    }
}

@media (max-width: 768px) {
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-section-header p {
        margin-bottom: 1rem;
    }

    .admin-detail-card dl > div {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-detail-card dd {
        text-align: left;
    }

    .admin-photo-grid {
        justify-content: flex-start;
    }

    .admin-action-group {
        justify-content: flex-start;
    }
}

.flash-messages {
    padding-top: 130px;
}

.flash-messages .container {
    max-width: 900px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 0.85rem;
    font-weight: 500;
    background: #f0f4ff;
    border-left: 6px solid #2c5aa0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.alert:last-child {
    margin-bottom: 0;
}

.alert-success {
    background: #ecf9f2;
    border-color: #1aa160;
    color: #0c5c3a;
}

.alert-error,
.alert-danger {
    background: #fff0f0;
    border-color: #dc3545;
    color: #7f1b23;
}

.alert-warning {
    background: #fff8e6;
    border-color: #ffc107;
    color: #7a6000;
}

.alert-info,
.alert-debug {
    background: #eef5ff;
    border-color: #2c5aa0;
    color: #1e3d72;
}

/* Registration (Form Showcase) */
.form-showcase {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.form-page {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 1.25rem;
    text-align: center;
}

.form-page img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.registration-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: start;
}

.form-resources h3,
.registration-form-card h3 {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.registration-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    position: sticky;
    top: 140px;
}

.form-intro {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.form-field {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field.full-width {
    flex: 1 1 100%;
}

.form-field label {
    font-weight: 600;
    color: #1e3d72;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9dfeb;
    border-radius: 10px;
    background: #f7f9fc;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
    background: #fff;
}

.registration-form-card textarea.form-input {
    resize: vertical;
}

.form-errors {
    background: #fff3f3;
    border: 1px solid #f5c2c7;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    color: #842029;
}

.field-error {
    font-size: 0.85rem;
    color: #c0392b;
}

.field-hint {
    font-size: 0.78rem;
    color: #5b6d86;
    margin-top: -4px;
}

.form-consent {
    align-items: center;
}

.form-consent .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #1e3d72;
    font-weight: 500;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.form-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(30, 61, 114, 0.2);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.75rem;
}

.form-section h4 {
    font-size: 1.35rem;
    color: #1e3d72;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h4::before {
    content: '\f02d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 600;
    font-size: 1rem;
    color: #ff6b35;
}

.photo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.photo-field {
    flex: 1 1 220px;
    border: 1px dashed rgba(30, 61, 114, 0.25);
    border-radius: 12px;
    padding: 1rem;
    background: #f7f9fc;
}

.photo-field label {
    font-weight: 600;
    color: #1e3d72;
    display: block;
    margin-bottom: 0.65rem;
}

.photo-field input[type="file"] {
    padding: 0.5rem;
    border-radius: 8px;
    background: #fff;
}

.guardian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.guardian-card {
    background: #f8faff;
    border: 1px solid rgba(30, 61, 114, 0.15);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.guardian-card h5 {
    font-size: 1.1rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: #1e3d72;
}

.checkbox-field {
    justify-content: flex-start;
}

.registration-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.registration-cta .submit-btn {
    width: auto;
    align-self: center;
    min-width: 220px;
}

.cta-note {
    font-size: 0.85rem;
    color: #4a5c7a;
}

body.registration-page {
    background: #f4f6fb;
}

.registration-page .flash-messages {
    padding-top: 90px;
}

.standalone-header {
    background: #1e3d72;
    color: #fff;
    padding: 16px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 900;
}

.standalone-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.standalone-header .header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.standalone-header .header-brand img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.standalone-header .brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.standalone-header .brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.standalone-header .brand-subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
}

.standalone-header .back-btn {
    border-color: rgba(255, 255, 255, 0.7);
    color: #1e3d72;
    background: #fff;
    font-weight: 600;
}

.standalone-header .back-btn:hover {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

.registration-page-main {
    padding: 40px 0 80px;
}

.registration-page-intro {
    text-align: center;
    margin-bottom: 40px;
}

.registration-page-intro h1 {
    font-size: 2.5rem;
    color: #1e3d72;
    margin-bottom: 1rem;
    text-align: center;
}

.registration-page-intro p {
    font-size: 1.05rem;
    color: #4a5c7a;
    max-width: 760px;
    margin: 0 auto;
}

.registration-page-downloads {
    margin-bottom: 45px;
}

.registration-page-downloads h3 {
    font-size: 1.5rem;
    color: #1e3d72;
    margin-bottom: 1.5rem;
    text-align: center;
}

.registration-page .registration-form-card {
    position: static;
    top: auto;
    max-width: 960px;
    margin: 0 auto;
}

.registration-page .registration-form-card form {
    margin-top: 1rem;
}

.sample-fill-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.sample-fill-btn {
    font-size: 0.9rem;
    background: #2c5aa0 !important;
    color: #fff !important;
    border: 1px solid #2c5aa0 !important;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(44, 90, 160, 0.25);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sample-fill-btn:hover {
    background: #1e3d72 !important;
    color: #fff !important;
    border-color: #1e3d72 !important;
    transform: translateY(-1px);
}

.sample-fill-btn:focus {
    outline: 2px solid rgba(44, 90, 160, 0.6);
    outline-offset: 2px;
}

.registration-page .form-note {
    text-align: left;
}

.receipt-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(30, 61, 114, 0.12);
    padding: 2.5rem;
    border: 1px solid rgba(30, 61, 114, 0.08);
}

.registration-receipt .receipt-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Header wrapper for receipt page */
.receipt-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.receipt-header-text {
    flex: 1;
}

.receipt-actions-top {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.receipt-actions-top .btn-secondary {
    background: #2c5aa0;
    color: #fff;
    border: 2px solid #2c5aa0;
}

.receipt-actions-top .btn-secondary:hover {
    background: #1e3d72;
    border-color: #1e3d72;
    color: #fff;
}

.receipt-section {
    margin-bottom: 2rem;
}

.receipt-section h3 {
    font-size: 1.3rem;
    color: #1e3d72;
    margin-bottom: 1rem;
    border-left: 4px solid #ff6b35;
    padding-left: 0.75rem;
}

.receipt-photo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(30,61,114,0.2);
    border-radius: 12px;
    background: #f7faff;
    box-shadow: 0 6px 16px rgba(30,61,114,0.12);
    max-width: 160px;
}

.receipt-photo img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(30,61,114,0.35);
}

.receipt-photo p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3d72;
    text-transform: uppercase;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.info-grid .full {
    grid-column: 1 / -1;
}

.info-grid span {
    display: block;
    font-size: 0.85rem;
    color: #4a5c7a;
    margin-bottom: 0.25rem;
}

.info-grid strong {
    font-size: 1rem;
    color: #10264d;
}

.receipt-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.receipt-photos div {
    text-align: center;
}

.receipt-photos span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e3d72;
}

.receipt-photos img {
    max-width: 180px;
    border-radius: 12px;
    border: 1px solid rgba(30, 61, 114, 0.15);
    padding: 6px;
    background: #fff;
}

@media (max-width: 768px) {
    .receipt-card {
        padding: 1.5rem;
    }

    .registration-receipt .receipt-actions {
        justify-content: flex-start;
    }

    .receipt-header-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .receipt-actions-top {
        align-items: stretch;
        flex-direction: row;
        flex-wrap: wrap;
    }
}
@media (max-width: 768px) {
    .standalone-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .standalone-header .header-brand img {
        width: 56px;
        height: 56px;
    }

    .registration-page-intro h1 {
        font-size: 2rem;
    }
}

.gallery-empty {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
    color: #555;
    font-size: 1.05rem;
}

/* Button tweaks on light background */
.form-showcase .btn-primary { color: #fff; }
.form-showcase .btn-secondary {
    color: #2c5aa0;
    border-color: #2c5aa0;
}
.form-showcase .btn-secondary:hover {
    background: #2c5aa0;
    color: #fff;
}

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .registration-panel {
        grid-template-columns: 1fr;
    }

    .registration-form-card {
        position: static;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .photo-row {
        flex-direction: column;
    }

    .guardian-grid {
        grid-template-columns: 1fr;
    }

    .registration-form-card {
        padding: 1.75rem;
    }

    .flash-messages {
        padding-top: 120px;
    }
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

html, body { max-width: 100%; overflow-x: hidden; }

img { max-width: 100%; height: auto; }

section {
    scroll-margin-top: 120px;
}

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

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

/* Topbar */
.topbar {
    background: #1e3d72;
    color: #fff;
    font-size: 0.9rem;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 12px;
}

/* Topbar actions (Admissions + Registration) */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admission-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: #1e3d72;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.7);
}

.admission-link:hover {
    background: rgba(255,255,255,0.9);
}

.contact-quick {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-quick a,
.contact-quick span {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.contact-quick a:hover { opacity: 1; }

.admission-badge {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.school-name {
    color: #2c5aa0;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.school-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    font-style: italic;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-list a:hover {
    background: #2c5aa0;
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    width: 14px;
    height: 14px;
}

/* Hero Content Overlay */
.hero-content {
    position: relative;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-content.visible {
    opacity: 1;
    visibility: visible;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Hero badges */
.hero-badges {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hbadge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(2px);
}

.hbadge i { opacity: 0.95; }

/* Decorative wave under hero */
.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c5aa0;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #555;
}

.school-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-item i {
    font-size: 2rem;
    color: #2c5aa0;
    margin-right: 1rem;
}

.info-item h4 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.school-highlights {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.highlight-badge {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s;
}

.highlight-badge:hover {
    transform: translateY(-2px);
}

.badge-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Leadership Section */
.leadership {
    padding: 80px 0;
    background: white;
}

.leadership h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.leader-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.leader-photo {
    margin-bottom: 1.5rem;
}

.leader-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #2c5aa0;
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.leader-info h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.leader-info h4 {
    color: #ff6b35;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.leader-info p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Messages Section */
.messages {
    padding: 80px 0;
    background: #f8f9fa;
}

.messages h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.messages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.message-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.message-header {
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.message-photo {
    margin-bottom: 1.5rem;
}

.message-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #2c5aa0;
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.message-content {
    text-align: left;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.message-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.message-signature h3 {
    color: #ff6b35;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.message-signature h4 {
    color: #2c5aa0;
    font-size: 1rem;
    font-weight: 600;
}

/* Our Teachers Section */
.teachers {
    padding: 80px 0;
    background: #fff;
}

.teachers h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.teacher-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.teacher-photo {
    margin-bottom: 1.5rem;
}

.teacher-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2c5aa0;
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.teacher-info h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.teacher-info h4 {
    color: #ff6b35;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.teacher-subject {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Academics Section */
.academics {
    padding: 80px 0;
}

.academics h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card i {
    font-size: 3rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.program-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

/* Facilities Section */
.facilities {
    padding: 80px 0;
    background: #f8f9fa;
}

.facilities h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.facility-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.facility-item:hover {
    transform: translateY(-5px);
}

.facility-item i {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.facility-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: #fff;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-load-more {
    text-align: center;
    margin-top: 2.5rem;
}

.gallery-load-more .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    background: #f8f9fa;
    position: relative;
    width: 100%;
}

.gallery-item img {
    width: 100% !important;
    height: 260px !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Gallery responsive */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        width: 100%;
        max-width: 100%;
    }
    .gallery-item img {
        height: 220px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
/* When only contact info is present (no form) */
.contact-noform {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

/* Arrange contact cards in a single row on desktop */
.contact-noform .contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Single-row layout for contact cards on larger screens */
@media (min-width: 992px) {
    .contact-noform .contact-info {
        display: grid;
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-right: 1rem;
}

.contact-item h4 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #1e3d72;
}

/* Footer */
.footer {
    background: #2c5aa0;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Force all header elements to stay within viewport */
    .header {
        width: 100vw;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .topbar {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .topbar-content {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
        max-width: 100%;
    }

    .topbar-actions { gap: 8px; }
    .admission-link { padding: 4px 10px; font-size: 0.8rem; }

    .contact-quick {
        font-size: 0.7rem;
        gap: 0.3rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-quick a,
    .contact-quick span {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 45vw;
    }

    /* Hide email on very small screens to prevent overflow */
    .contact-quick a[href^="mailto"] {
        display: none;
    }

    .admission-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        white-space: normal;
        text-align: center;
        max-width: 90vw;
    }

    .apply-btn { display: none; }

    .header-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        max-width: 100%;
        width: 100%;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .logo-section {
        justify-content: flex-start;
        text-align: left;
    }

    .school-name {
        font-size: 1.3rem;
        word-break: break-word;
    }

    .school-subtitle {
        font-size: 0.75rem;
        word-break: break-word;
    }

    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
        margin-right: 0;
    }

    .nav-list {
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 140px; /* space for topbar + header */
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    
    .nav-list.active { left: 0; }

    .nav-list li { margin: 10px 0; }

    .nav-list a { font-size: 1.1rem; padding: 15px 30px; }

    .hero { 
        margin-top: 120px; 
        position: relative;
        min-height: 500px;
        padding: 100px 0 60px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 12px;
        height: 12px;
    }
    .hero-wave svg { 
        height: 60px; 
        position: absolute; 
        bottom: 0; 
        left: 0; 
        width: 100%; 
    }
    .hero-badge {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #2c5aa0;
        color: white;
        padding: 10px 20px;
        border-radius: 10px;
        font-size: 1.2rem;
    }
    .hero-logo-img { 
        width: 100px; 
        height: 100px; 
    }
    .hero-content h1 { 
        font-size: 2rem; 
    }
    .hero-content p { 
        font-size: 1rem; 
    }

    .contact-content { grid-template-columns: 1fr; }
    .school-info { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: 1fr; }
    .facilities-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .leadership-grid { grid-template-columns: 1fr; gap: 2rem; }
    .leader-img { width: 120px; height: 120px; }
    .messages-grid { grid-template-columns: 1fr; gap: 2rem; }
    .message-img { width: 120px; height: 120px; }
    .message-content p { font-size: 0.9rem; }
    .teachers-grid { grid-template-columns: 1fr; gap: 2rem; }
    .teacher-img { width: 120px; height: 120px; }
    .school-highlights { flex-direction: column; align-items: center; }
    .highlight-badge { text-align: center; min-width: 200px; }
}

@media (max-width: 480px) {
    .logo { width: 50px; height: 50px; }
    .school-name { font-size: 1.3rem; }
    .school-subtitle { font-size: 0.75rem; }

    .hero { margin-top: 130px; padding: 100px 0 80px; }
    .hero-logo-img { width: 80px; height: 80px; }
    .hero-content h1 { font-size: 1.8rem; }

    .footer-logo { flex-direction: column; text-align: center; gap: 0.5rem; }
    .btn { display: block; margin: 10px auto; text-align: center; max-width: 200px; }

    .about h2,
    .academics h2,
    .facilities h2,
    .contact h2 { font-size: 2rem; }
}