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

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

header {
    background: linear-gradient(135deg, #004AAD, #0055CC);
    color: white;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background: #003087;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #FFD700;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #FFD700;
    color: #004AAD;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    margin: 0.5rem;
}

.cta-button:hover {
    background-color: #D32F2F;
    color: white;
    transform: translateY(-2px);
}

.content-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.content-section h2 {
    color: #004AAD;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.content-section h3 {
    color: #004AAD;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.content-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #004AAD;
    font-weight: 600;
}

.content-section input[type="text"],
.content-section input[type="date"],
.content-section textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.admin-table th {
    background-color: #004AAD;
    color: white;
}

.admin-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.admin-table a {
    color: #D32F2F;
    text-decoration: none;
}

.admin-table a:hover {
    text-decoration: underline;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

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

.notice-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.notice-card h3 {
    color: #004AAD;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.notice-content {
    display: none; /* Full content hidden on index.php */
}

.summary {
    color: #333;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #D32F2F;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #FFD700;
    color: #004AAD;
}

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

.event-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.event-card h3 {
    color: #004AAD;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-content {
    display: none; /* Full content hidden on index.php */
}

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

.gallery-item {
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

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

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

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

.program-card h3 {
    color: #004AAD;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.link {
    color: #D32F2F;
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    color: #FFD700;
}

.error {
    color: #D32F2F;
    font-weight: 600;
}

.success {
    color: #28a745;
    font-weight: 600;
}

footer {
    background: #003087;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Modal styles for admin.php */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal.open {
    display: flex;
}

/* Tailwind CSS overrides for TUCC colors */
.bg-blue-900 {
    background-color: #004AAD;
}

.text-blue-900 {
    color: #004AAD;
}

.bg-blue-800 {
    background-color: #0055CC;
}

.bg-yellow-400 {
    background-color: #FFD700;
}

.text-yellow-400 {
    color: #FFD700;
}

.bg-red-600 {
    background-color: #D32F2F;
}

.text-red-600 {
    color: #D32F2F;
}

.bg-red-700 {
    background-color: #B71C1C;
}

.bg-green-600 {
    background-color: #28a745;
}

.bg-green-700 {
    background-color: #218838;
}

.border-red-300 {
    border-color: #EF9A9A;
}

.bg-red-50 {
    background-color: #FFEBEE;
}

.text-red-700 {
    color: #D32F2F;
}

.border-green-300 {
    border-color: #A5D6A7;
}

.bg-green-50 {
    background-color: #E8F5E9;
}

.text-green-700 {
    color: #28a745;
}

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

    .hero h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        padding: 0.5rem 0;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
}