/* ========== RESET & GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* ========== HEADER STYLING ========== */
header {
    background-color: #053128;
    color: white;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h2 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

header h2 a:hover {
    color: #d3d018;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

header #logo {
    width: 68px;
    height: auto;
    border-radius: 50%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

header #logo:hover {
    transform: scale(1.1);
}

header h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin: auto;
    font-weight: bold;
    margin-right: auto;
    margin-left: 12px;
}

.hamburger-menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    padding: 10px 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #d3d018;
    color: #053128;
    border-radius: 5px;
    padding: 8px 12px;
}

/* ========== BANNER STYLING ========== */
.banner {
    background-color: #d3d018;
    color: #111;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.sliding-text {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    animation: slideText 22s linear infinite;
    padding-left: 20px;
}

@keyframes slideText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ========== POPPING ADMISSION AD SECTION ========== */
.admission-ad-section {
    max-width: 1200px;
    margin: 30px auto 20px auto;
    padding: 0 20px;
}

.ad-card {
    background: linear-gradient(135deg, #fff9e0 0%, #ffefb0 100%);
    border-radius: 35px;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2), 0 0 0 6px rgba(211, 208, 24, 0.4), 0 0 0 12px rgba(5, 49, 40, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 30px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ad-card:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.3), 0 0 0 6px #d3d018, 0 0 0 12px #053128;
}

.ad-card::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(211,208,24,0.2) 0%, rgba(211,208,24,0) 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.ad-card:hover::before {
    opacity: 1;
    animation: pulseGlow 1.2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0; }
}

.ad-image {
    flex: 1.2;
    min-width: 220px;
    text-align: center;
}

.ad-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 28px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 3px solid white;
}

.ad-card:hover .ad-image img {
    transform: rotate(2deg) scale(1.02);
}

.ad-content {
    flex: 2;
    text-align: left;
    padding: 10px;
}

.ad-content h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #b22234;
    text-shadow: 2px 2px 0 #ffd966;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ad-content .offer-badge {
    background: #053128;
    color: #ffd966;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ad-content p {
    font-size: 1.1rem;
    margin: 10px 0;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background: #d3d018;
    color: #053128;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    margin-top: 12px;
    transition: 0.3s;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.cta-button i {
    margin-right: 8px;
}

.cta-button:hover {
    background: #ffc107;
    transform: scale(1.05);
    box-shadow: 0 12px 22px rgba(0,0,0,0.3);
}

/* ========== SLIDESHOW STYLING ========== */
.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.slideshow {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

.slideshow-dots {
    text-align: center;
    padding: 12px 0;
}

.dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: 0.2s;
}

.dot.active {
    background-color: #053128;
    transform: scale(1.2);
}

/* ========== NOTIFICATION TABLE SECTION ========== */
.notification-section {
    max-width: 1200px;
    margin: 40px auto 30px;
    padding: 0 20px;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.notification-header h3 {
    font-size: 28px;
    color: #053128;
    border-left: 6px solid #d3d018;
    padding-left: 18px;
    margin: 0;
}

.notification-header h3 i {
    color: #d3d018;
    margin-right: 10px;
}

.notification-badge {
    background: #ff4757;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.notification-table-container {
    background: white;
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.notification-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 650px;
}

.notification-table thead {
    background: linear-gradient(135deg, #053128 0%, #0a4a3a 100%);
    color: white;
}

.notification-table th {
    padding: 16px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.notification-table th i {
    margin-right: 8px;
}

.notification-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.notification-row {
    transition: all 0.3s ease;
}

.notification-row:hover {
    background-color: #fffef5;
    transform: scale(1.01);
}

.notification-row.important {
    background: linear-gradient(90deg, #fff9e6 0%, white 100%);
    border-left: 4px solid #d3d018;
}

.date-cell {
    font-weight: 600;
    color: #053128;
    white-space: nowrap;
}

.message-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.notification-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d3d018;
    font-size: 14px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.category-badge.admission {
    background: #e8f5e9;
    color: #2e7d32;
}

.category-badge.event {
    background: #e3f2fd;
    color: #1565c0;
}

.category-badge.holiday {
    background: #fff3e0;
    color: #e65100;
}

.category-badge.result {
    background: #f3e5f5;
    color: #6a1b9a;
}

.category-badge.exam {
    background: #ffebee;
    color: #c62828;
}

.download-link {
    text-decoration: none;
    color: #053128;
    font-size: 13px;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 20px;
    transition: all 0.3s;
    white-space: nowrap;
}

.download-link i {
    margin-right: 5px;
}

.download-link:hover {
    background: #d3d018;
    color: #053128;
}

.view-all-btn {
    text-align: center;
    margin-top: 25px;
}

.view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #053128;
    color: #053128;
    padding: 10px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.view-more:hover {
    background: #053128;
    color: white;
    gap: 12px;
}

/* ========== CONTENT SECTION ========== */
#paragraph {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h3 {
    font-size: 28px;
    margin: 30px 0 12px 0;
    color: #053128;
    border-left: 6px solid #d3d018;
    padding-left: 18px;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
}

.introduction, .aim {
    text-align: justify;
}

/* ========== LEADERSHIP MESSAGES ========== */
.leadership-messages {
    padding: 50px 20px;
    background-color: #f0f7f5;
}

.message-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.message-card {
    flex: 0 0 calc(33.33% - 30px);
    background: white;
    border-radius: 28px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.message-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.12);
}

.leader-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid #d3d018;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    border-left: none;
    padding-left: 0;
}

.message-content p {
    font-size: 14px;
    line-height: 1.5;
}

.leader-name {
    font-weight: bold;
    color: #053128;
    margin-top: 12px;
    font-style: italic;
}

/* ========== FOOTER STYLING ========== */
footer {
    background-color: #053128;
    color: white;
    text-align: center;
    padding: 30px 20px 20px;
}

#links {
    margin-bottom: 15px;
}

#links a {
    margin: 0 12px;
    color: white;
    font-size: 1.4rem;
    transition: 0.2s;
}

#links a:hover {
    color: #d3d018;
}

.school-location {
    margin: 25px 0;
}

.school-location p {
    margin: 5px 0;
    font-size: 0.9em;
}

.map-container {
    max-width: 800px;
    margin: 20px auto;
    border-radius: 18px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 280px;
    border: none;
}

.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,240,0.15);
    padding: 8px 20px;
    border-radius: 60px;
    margin: 15px auto 10px;
    backdrop-filter: blur(4px);
    font-weight: 500;
}

.counter-number {
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: bold;
    background: #00000044;
    padding: 0 12px;
    border-radius: 30px;
    color: #ffec80;
}

.footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .message-card {
        flex: 0 0 calc(50% - 30px);
    }
    .ad-card {
        flex-direction: column;
        text-align: center;
    }
    .ad-content {
        text-align: center;
    }
    .message-cell {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    nav {
        display: none;
    }
    nav.active {
        display: block;
    }
    nav ul {
        flex-direction: column;
        background-color: #053128;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 15px 0;
        z-index: 999;
    }
    nav ul li {
        text-align: center;
    }
    .slide img {
        height: 320px;
    }
    .message-card {
        flex: 0 0 100%;
    }
    .ad-content h2 {
        font-size: 1.8rem;
    }
    .notification-header h3 {
        font-size: 22px;
    }
}

@media (max-width: 550px) {
    .slide img {
        height: 220px;
    }
    .ad-image img {
        max-width: 240px;
    }
    .notification-table th, 
    .notification-table td {
        padding: 10px;
        font-size: 12px;
    }
}