/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

/* Body */
body {
    background: #f3f8ff;
    color: #222;
}

/* Banner */
.banner {
    text-align: center;
    background: linear-gradient(to right, #0066cc, #00bcd4);
    color: white;
    padding: 40px 10px;
}
.banner h1 {
    font-size: 2.5rem;
    font-weight: 600;
}
.banner p {
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Navbar */
.navbar {
    background: #003d80;
    padding: 10px 0;
}
.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 25px;
}
.nav-links a {
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    transition: 0.3s ease-in-out;
}
.nav-links a:hover {
    background: white;
    color: #003d80;
    border-radius: 6px;
}

/* Classes Section */
.classes-section {
    text-align: center;
    padding: 40px 15px;
}
.classes-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}
.classes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

/* Class Cards */
.class-card {
    background: white;
    padding: 25px 15px;
    display: block;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    color: #003d80;
    transition: transform 0.25s, box-shadow 0.25s;
}
.class-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.class-card p {
    font-size: 0.9rem;
    color: #444;
}
.class-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 18px rgba(0,0,0,0.15);
}

/* Poem Section */
.poem-section {
    background: #ffffff;
    padding: 35px 15px;
    text-align: center;
    margin-top: 40px;
    border-top: 3px solid #00a2ff;
}
.poem-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.poem-section p {
    line-height: 1.8;
    color: #333;
    font-style: italic;
}

/* Footer */
.footer {
    background: #003d80;
    color: white;
    padding: 15px;
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
}
/* Poem Table Styling */
.contents-section {
    padding: 50px 20px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.contents-section h2 {
    font-size: 2.1rem;
    margin-bottom: 25px;
    color: #004080;
    font-weight: 600;
}

.content-table-container {
    overflow-x: auto;
}

.content-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; 
}

.content-table tr {
    background: white;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.content-table td {
    padding: 15px;
    font-size: 1rem;
    text-align: left;
}

.content-table td:first-child {
    width: 60px;
    font-weight: 600;
    text-align: center;
    color: #004080;
}

.content-table a {
    color: #00254d;
    font-weight: 500;
    display: block;
    width: 100%;
    transition: 0.3s;
}

/* Hover Animation */
.content-table tr:hover {
    background: #e9f4ff;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.content-table tr:hover a {
    color: #000d33;
    font-weight: 600;
    transform: translateX(6px);
}


/* Mobile Friendly */
@media(max-width: 480px) {
    .contents-section h2 {
        font-size: 1.7rem;
    }
    .content-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}

/* Responsive Design (Media Queries) */
@media(max-width: 768px) {
    .banner h1 {
        font-size: 2rem;
    }
    .nav-links {
        gap: 15px;
    }
}

@media(max-width: 480px) {
    .banner h1 {
        font-size: 1.7rem;
    }
    .classes-section h2 {
        font-size: 1.6rem;
    }
    .class-card h3 {
        font-size: 1.3rem;
    }
}
