/* Keep the existing styles for index.php. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: url('../inc/img/bg1.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.school-name {
    color: maroon;
    font-weight: 600;
    margin-left: 15px;
}

.welcome-section {
    text-align: center;
    padding: 30px 20px;
    margin: 20px auto;
    max-width: 800px;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 2px solid maroon;
}

.welcome-card h2 {
    color: maroon;
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-card p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.actions-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.action-card {
    background: white;
    border-radius: 15px;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid maroon;
    overflow: hidden;
    position: relative;
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: maroon;
    list-style: none;
    text-decoration: none !important;
}

.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-card:hover .action-title,
.action-card:hover .action-desc {
    color: white;
    list-style: none;
}

.action-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.action-title {
    color: maroon;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.action-desc {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 0 10px;
    transition: all 0.3s ease;
}

.footer {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
}

.footer a {
    color: #ffc107;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .actions-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-card {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .actions-container {
        grid-template-columns: 1fr;
    }

    .welcome-card h2 {
        font-size: 1.5rem;
    }

    .welcome-card p {
        font-size: 1rem;
    }
}
