body {
    font-family: 'Prompt', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.header {
    background: linear-gradient(135deg, #6f42c1 0%, #5a30a9 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: -50%;
    .contact-section {
        padding: 2rem 0;
    }
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}
.logo {
    max-width: 80px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.4s, filter 0.4s;
    margin-right: 0.75rem;
}
.logo:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-text {
    text-align: left;
}
.header-text h1 {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}
.header-text p {
    font-size: 1.5rem;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }
    .header-content {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    .header-text {
        text-align: left;
        margin-top: 0;
        margin-left: 0.5rem;
    }
    .header-text h1 {
        font-size: 1.5rem;
    }
    .header-text p {
        font-size: 1.00rem;
    }
    .logo {
        margin-right: 0.5rem;
    }
}
.module-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.module-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    background: white;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.module-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}
.module-card:hover {
    transform: translateY(-12px) scale(1.02) rotateX(5deg);
}
.module-card:hover::after {
    opacity: 1;
}
.card-img-top {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.card-img-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.module-card:hover .card-img-top::before {
    opacity: 1;
}
.module-icon {
    font-size: 2.8rem;
    transition: transform 0.4s;
}
.module-card:hover .module-icon {
    transform: scale(1.15);
}
.card-body {
    padding: 1.2rem;
    text-align: center;
    position: relative;
}
.card-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0;
    color: #333;
    transition: transform 0.3s;
}
.module-card:hover .card-title {
    transform: translateY(-5px);
}
.card-arrow {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s, transform 0.3s;
    color: #6f42c1;
}
.module-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}
.footer {
    margin-top: auto;
    padding: 2rem 0;
    background-color: #f1f1f1;
    color: #555;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.admin-link {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #6f42c1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4);
    transition: all 0.3s;
}
.admin-link:hover {
    background-color: #5a30a9;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.6);
    color: white;
}
.website-link {
    position: fixed;
    bottom: 25px;
    right: 90px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all 0.3s;
}
.website-link:hover {
    background-color: #218838;
    transform: scale(1.1) rotate(-15deg);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    color: white;
}
.modal-header {
    background: linear-gradient(135deg, #6f42c1 0%, #5a30a9 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.modal-body {
    padding: 2rem;
}
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.25);
}
.btn-primary {
    background-color: #6f42c1;
    border-color: #6f42c1;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-primary:hover {
    background-color: #5a30a9;
    border-color: #5a30a9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.3);
}
.bg-primary { background-color: #0d6efd !important; }
.bg-success { background-color: #198754 !important; }
.bg-warning { background-color: #ffc107 !important; color: #212529 !important; }
.bg-danger { background-color: #dc3545 !important; }
.bg-info { background-color: #0dcaf0 !important; color: #212529 !important; }
.bg-secondary { background-color: #6c757d !important; }
.bg-dark { background-color: #212529 !important; }
.bg-light { background-color: #f8f9fa !important; color: #212529 !important; }

/* Welcome Modal Styles */
.bg-gradient-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; }
.welcome-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.welcome-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 2rem 2rem 1rem;
    position: relative;
}
.welcome-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.3)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.1;
}
.welcome-modal .modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}
.welcome-modal .modal-body {
    padding: 2.5rem 2rem 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}
.welcome-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border: 4px solid white;
    transition: transform 0.3s ease;
    margin: 0 auto 1.5rem;
}
.welcome-logo:hover {
    transform: scale(1.05);
}
.welcome-text {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.welcome-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.welcome-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.welcome-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}
.welcome-btn-secondary {
    background: transparent;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #6c757d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.welcome-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
    transform: translateY(-1px);
}
@media (max-width: 576px) {
    .welcome-modal .modal-dialog {
        margin: 1rem;
    }
    .welcome-modal .modal-body {
        padding: 2rem 1.5rem 2.5rem;
    }
    .welcome-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .welcome-btn-primary,
    .welcome-btn-secondary {
        justify-content: center;
    }
}

/* Animation effects */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.module-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}
.row > div:nth-child(1) .module-card { animation-delay: 0.1s; }
.row > div:nth-child(2) .module-card { animation-delay: 0.2s; }
.row > div:nth-child(3) .module-card { animation-delay: 0.3s; }
.row > div:nth-child(4) .module-card { animation-delay: 0.4s; }
.row > div:nth-child(5) .module-card { animation-delay: 0.5s; }
.row > div:nth-child(6) .module-card { animation-delay: 0.6s; }
.row > div:nth-child(7) .module-card { animation-delay: 0.7s; }
.row > div:nth-child(8) .module-card { animation-delay: 0.8s; }
.row > div:nth-child(9) .module-card { animation-delay: 0.9s; }
/* Web.php specific styles */

/* Banner Slider */
.banner-slider .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Welcome Section Styles */
        .welcome-section {
            background: white;
            border-radius: 16px;
            padding: 3rem 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            margin-top: 0rem;
            margin-bottom: 3rem;
            animation: fadeInUp 0.6s ease-out;
        }
        .welcome-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #6f42c1;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }
        .welcome-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #6f42c1 0%, #5a30a9 100%);
            border-radius: 2px;
        }
        .welcome-text {
            font-size: 1.1rem;
            color: #666;
            line-height: 1.8;
            margin-top: 2rem;
            margin-bottom: 0;
        }
.welcome-text {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6f42c1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Section */
.contact-section {
    background: white;
    border-radius: 0;
    padding: 4rem 0;
    margin-top: 2rem;
    margin-bottom: 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
}
.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6f42c1;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6f42c1 0%, #5a30a9 100%);
    border-radius: 2px;
}
.contact-container {
    max-width: 1140px;
        .contact-section {
            padding: 1.2rem 0;
        }
        .contact-title {
            font-size: 1.3rem;
            margin-bottom: 1.2rem;
        }
        .contact-map {
            height: 350px;
        }
        .contact-info {
            gap: 0.5rem;
        }
        .contact-item {
            padding: 0.7rem;
            border-radius: 7px;
        }
        .contact-icon {
            width: 32px;
            height: 32px;
            font-size: 1rem;
        }
        .contact-details h3 {
            font-size: 0.85rem;
            margin-bottom: 0.15rem;
        }
        .contact-details p {
            font-size: 0.8rem;
        }
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
    @media (min-width: 992px) {
        .contact-map {
            height: 200px;
        }
    }
.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    transition: all 0.3s;
}
.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6f42c1 0%, #5a30a9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-details h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}
.contact-details p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}
.contact-details a {
    color: #6f42c1;
    text-decoration: none;
}
.contact-details a:hover {
    color: #5a30a9;
}

/* Back Button */
.back-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    left: auto;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all 0.3s;
}
.back-button:hover {
    background-color: #218838;
    transform: scale(1.1) rotate(-15deg);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    color: white;
}

/* Post Cards */
.post-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    background: white;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}
.post-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.post-card:hover {
    transform: translateY(-4px);
}
.post-card:hover::after {
    opacity: 1;
}
.post-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 125%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-image {
    transform: scale(1.05);
}
.post-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;

    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 4rem;
}
.post-body {
    padding: 1.5rem;
}
.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}
.post-header i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}
.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.post-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6f42c1 0%, #5a30a9 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}
.post-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
    color: white;
    text-decoration: none;
}
.post-date {
    font-size: 0.85rem;
    color: #adb5bd;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.error-message h4 {
    color: #dc3545;
    margin-bottom: 1rem;
}
.error-message p {
    color: #6c757d;
}

/* Instagram specific styles */
.post-link[style*="background: linear-gradient(135deg, #f09433"] {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}
.post-link[style*="background: linear-gradient(135deg, #f09433"]:hover {
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.4) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-map {
        height: 300px;
    }
    .contact-info {
        gap: 1.5rem;
    }
    .contact-item {
        padding: 1.5rem;
    }
    .contact-details h3 {
        font-size: 1.1rem;
    }
    .contact-details p {
        font-size: 1rem;
    }
    .post-image-container {
        height: 70px;
    }
    #posts-container .post-image-container,
    #instagram-container .post-image-container {
        height: 70px;
    }
    #posts-container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .post-card {
        padding: 0.75rem 0.5rem;
    }
    .post-title {
        font-size: 1.05rem;
    }
    .post-description {
        font-size: 0.92rem;
    }
    .post-body {
        padding: 0.75rem 0.5rem;
    }
    .banner-slider .carousel-item img {
        height: 300px;
    }
    .welcome-section {
        margin-bottom: 2rem;
    }
    .welcome-title {
        font-size: 2rem;
    }
    .welcome-title::after {
        width: 60px;
        height: 3px;
    }
    .welcome-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .contact-title {
        font-size: 2rem;
    }
}
