:root {
    --primary-color: #5f99d1;
    /* Calasancio Blue-ish */
    --secondary-color: #f0f4f8;
    --accent-color: #009cde;
    --accent-color-light: #2fb5ed;
    --accent-color-dark: #0087c2;
    --accent-color-rgba: rgba(0, 156, 222, 0.4);
    --accent-color-rgba-hover: rgba(0, 156, 222, 0.6);
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color-dark);
    color: var(--white);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Ampatizate Section */
.ampatizate-section {
    background-color: var(--white);
}

.ampatizate-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 1.5rem;
}

.ampatizate-logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Logo fade-in-up animation */
.logo-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: logoFadeInUp 0.8s ease forwards;
}

@keyframes logoFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transparency Section */
.transparency-section {
    background-color: var(--white);
}

/* Ampatizate CTA Button */
.btn-ampatizate-cta {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-light) 100%);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 4px 15px var(--accent-color-rgba);
    transition: all 0.3s ease;
    border: none;
}

.btn-ampatizate-cta:hover {
    background: linear-gradient(135deg, var(--accent-color-dark) 0%, var(--accent-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-color-rgba-hover);
    color: var(--white);
}

.btn-ampatizate-cta-2 {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-light) 100%);
    color: var(--white);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
}

.btn-ampatizate-cta-2:hover {
    background: linear-gradient(135deg, var(--accent-color-dark) 0%, var(--accent-color) 100%);
    color: var(--white);
}

/* Board Section */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.board-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.board-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.benefit-img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 15px;
    background: #dcf5ff;
}

.benefit-placeholder {
    width: 100%;
    height: 150px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: #999;
}

.benefit-content {
    padding: 15px;
}

/* Activities Section */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.activity-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.activity-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-img-wrapper img {
    transform: scale(1.1);
}

.activity-content {
    padding: 20px;
}

.date-badge {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.news-img {
    width: 300px;
    flex-shrink: 0;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.news-content {
    padding: 30px;
    flex-grow: 1;
}



.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 40px 0 30px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logos {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-logo-ampa {
    height: 56px;
}

.footer-info {
    text-align: right;
}

.footer-links a {
    color: #bdc3c7;
}

.footer-links a:hover {
    color: var(--white);
}

/* Footer responsive */
@media (max-width: 991px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-logos {
        justify-content: center;
    }

    .footer-info {
        text-align: center;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .news-item {
        flex-direction: column;
    }

    .news-img {
        width: 100%;
        height: 200px;
    }
}

/* Admin Styles */
.login-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    border-top: 3px solid var(--primary-color);
    display: block;
}

.dashboard-card:hover {
    background-color: #f9f9f9;
}

.form-row {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.news-img {
    width: 300px;
    flex-shrink: 0;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.news-content {
    padding: 30px;
    flex-grow: 1;
}



.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 50px 0;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #bdc3c7;
}

.footer-links a:hover {
    color: var(--white);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .news-item {
        flex-direction: column;
    }

    .news-img {
        width: 100%;
        height: 200px;
    }

    /* Form improvements for mobile */
    .login-card {
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none;
    }

    .login-section {
        padding: 0 15px;
        height: auto;
        min-height: 80vh;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Modal Mobile Optimization */
    .modal-dialog {
        max-width: 95% !important;
        margin: 10px auto !important;
    }

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

    .modal-body {
        padding: 15px !important;
    }

    .registration-card {
        padding: 15px !important;
    }

    /* Responsive Tables (Card View) - Exclude Calendar */
    .table-responsive:not(.calendar-table-responsive) table,
    .table-responsive:not(.calendar-table-responsive) thead,
    .table-responsive:not(.calendar-table-responsive) tbody,
    .table-responsive:not(.calendar-table-responsive) th,
    .table-responsive:not(.calendar-table-responsive) td,
    .table-responsive:not(.calendar-table-responsive) tr {
        display: block;
    }

    .table-responsive:not(.calendar-table-responsive) thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-responsive:not(.calendar-table-responsive) tr {
        border: 1px solid #ccc;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        background: #fff;
        padding: 10px;
    }

    .table-responsive:not(.calendar-table-responsive) td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
        min-height: 40px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
    }

    .table-responsive:not(.calendar-table-responsive) td:last-child {
        border-bottom: 0;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding-left: 10px !important;
        padding-top: 15px !important;
    }

    .table-responsive:not(.calendar-table-responsive) td:before {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label);
        color: var(--primary-color);
    }
}

/* Admin Styles */
.login-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    display: block;
}

.dashboard-card:hover {
    background-color: #f9f9f9;
}

.form-row {
    object-fit: cover;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.news-content {
    padding: 30px;
    flex-grow: 1;
}



.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 50px 0;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #bdc3c7;
}

.footer-links a:hover {
    color: var(--white);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .news-item {
        flex-direction: column;
    }

    .news-img {
        width: 100%;
        height: 200px;
    }
}

/* Admin Styles */
.login-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    display: block;
}

.dashboard-card:hover {
    background-color: #f9f9f9;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {}

.dashboard-card:hover {
    background-color: #f9f9f9;
}

.form-row {
    object-fit: cover;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.news-content {
    padding: 30px;
    flex-grow: 1;
}

.news-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 50px 0;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #bdc3c7;
}

.footer-links a:hover {
    color: var(--white);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .news-item {
        flex-direction: column;
    }

    .news-img {
        width: 100%;
        height: 200px;
    }
}

/* Admin Styles */
.login-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    display: block;
}

.dashboard-card:hover {
    background-color: #f9f9f9;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

/* Ampatizate Page Redesign */
.ampatizate-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.ampatizate-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.header-col {
    text-align: center;
}

.price-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: inline-block;
    min-width: 200px;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.ampatizate-logo-placeholder {
    width: 200px;
    height: 200px;
    background: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #888;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
}

.benefits-summary {
    text-align: left;
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
}

.benefits-summary h4 {
    color: var(--primary-color);
}

.benefits-summary ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ampatizate-form-container {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    margin-bottom: 20px;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Admin Styles */
.login-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    display: block;
}

.dashboard-card:hover {
    background-color: #f9f9f9;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

/* Ampatizate Page Redesign */
.ampatizate-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.ampatizate-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.header-col {
    text-align: center;
}

.price-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: inline-block;
    min-width: 200px;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.ampatizate-logo-placeholder {
    width: 200px;
    height: 200px;
    background: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #888;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
}

.benefits-summary {
    text-align: left;
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
}

.benefits-summary h4 {
    color: var(--primary-color);
}

.benefits-summary ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ampatizate-form-container {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    margin-bottom: 20px;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .ampatizate-header {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Contact Section Redesign */
.contact-grid-home {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-col {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-map-col {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 300px;
}

.contact-map-col iframe {
    height: 100%;
}

.contact-form-row {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.contact-form-wrapper h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

/* Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.popup-icon svg {
    width: 40px;
    height: 40px;
    stroke: #4caf50;
}

.popup-content h3 {
    color: #2e7d32;
}

.popup-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Registration & Form Cards */
.registration-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.registration-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.registration-card h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-weight: 700;
}

.delete-child-btn {
    background-color: #ff5252;
    color: white;
    border: none;
    border-radius: 50%;
    /* Circular */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-self: center;
    /* Center vertically in the row */
}

.delete-child-btn:hover {
    background-color: #ff1744;
    transform: scale(1.1) rotate(90deg);
}

.delete-child-btn.hidden {
    display: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Child entry animations */
.child-entry,
.parent-entry {
    animation: slideInFade 0.4s ease-out;
    transition: all 0.3s ease-out;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.child-entry.removing,
.parent-entry.removing {
    animation: slideOutFade 0.3s ease-out forwards;
}

@keyframes slideOutFade {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin: 0;
        padding: 0;
    }
}

/* Add left margin to child entry fields */
.child-entry .form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.child-entry .form-row .form-group:first-child {
    margin-left: 15px;
    flex: 1 1 60%;
}

.child-entry .form-row .form-group:last-child {
    margin-right: 15px;
}

.child-entry .form-row .form-group.child-input-wrapper {
    flex: 1 1 auto;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.child-entry .form-row .form-group.child-input-wrapper>div {
    flex: 1 1 auto;
    min-width: 0;
}

.child-entry .form-row .delete-child-btn {
    flex: 0 0 auto;
    min-width: 35px;
}

/* Responsive design for child entry form */
@media (max-width: 768px) {
    .child-entry .form-row {
        flex-wrap: wrap;
    }

    .child-entry .form-row .form-group:first-child {
        flex: 1 1 100%;
        margin-right: 15px;
    }

    .child-entry .form-row .form-group.child-input-wrapper {
        flex: 1 1 calc(100% - 30px);
        margin-top: 10px;
        margin-left: 15px;
    }
}

/* Toggle Switch Styles */
.form-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: #e0e0e0;
    padding: 5px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.form-toggle-btn {
    background: transparent;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.form-toggle-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.popup-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Form Visibility */
.form-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-wrapper.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Renewal Form Styles */
.renewal-method-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--accent-color);
}

.renewal-section.hidden {
    display: none;
}

/* Error icon styling */
.error-icon {
    background: #e74c3c;
}

.error-icon svg {
    stroke: white;
}

/* ========================================
   Content Detail Pages (News & Activities)
   ======================================== */

/* Back button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    background: var(--accent-color-dark);
    transform: translateX(-3px);
    color: white;
}

/* Content detail section */
.content-detail {
    background: #f8f9fa;
    padding: 3rem 0;
}

.content-detail-article {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.content-meta {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.content-body p {
    margin-bottom: 1.2rem;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-sidebar-img {
    position: sticky;
    top: 100px;
}

.content-sidebar-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
}

/* Content detail responsive */
@media (max-width: 991px) {
    .content-sidebar-img {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }

    .content-title {
        font-size: 2rem;
    }
}

/* Image Modal */
.img-modal {
    display: none;
    position: fixed;
    z-index: 2100;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.img-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
}

.img-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.img-modal-close:hover,
.img-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.clickable-img {
    cursor: pointer;
    transition: 0.3s;
}

.clickable-img:hover {
    opacity: 0.7;
}

/* Unified heights and centering fixes */
.form-group input,
.form-group select {
    height: 45px !important;
}