/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif; /* Changed to simple, readable font */
}

/* Body Styling */
body {
    background-color: #fce4ec; /* Light pink background */
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

/* Content Section */
.content {
    padding: 40px;
    background-color: #fff;
    color: #333;
}

/* Headers */
h2 {
    text-align: center;
    color: #d63384; /* Matching your pink theme */
    margin-bottom: 30px;
    font-size: 24px;
}

h2, h1 {
    font-family: Arial, sans-serif;
}

/* Admission Flash Line */
.admission-flash {
    background: #ff1744;
    color: white;
    text-align: center;
    padding: 12px 10px;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    animation: blink 1.5s infinite;
}

/* Blinking Effect */
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.2; }
    100% { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admission-flash {
        font-size: 18px;
        padding: 10px;
    }
}


/* List Styling */
.content ul {
    list-style-type: square;
    line-height: 1.8;
    font-size: 18px;
    padding-left: 30px;
}

/* Academics Gallery */
.academics-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    text-align: center;
}

.academic-item {
    width: 220px;
    text-align: center;
}

.academic-item img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.academic-item img:hover {
    transform: scale(1.05);
}

.academic-item p {
    margin-top: 8px;
    font-weight: bold;
}

/* Lightbox CSS */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* About Section Styling */
.about-section {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-top: 20px;
}

.about-section ol {
    font-size: 16px;
    line-height: 1.8;
}

.about-section ol li {
    margin-bottom: 10px;
    color: #555;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ccc;
}

th {
    background-color: #ff80ab;
    color: white;
}

tbody tr:nth-child(even) {
    background-color: #fce4ec;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

/* Header and Navigation */
header {
    background: #ff80ab;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.logo img {
    width: 90px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: rotate(10deg);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

.nav-links a:hover {
    background: white;
    color: #ff4081;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    color: white;
}

.gallery-section h2 {
  color: #d63384;
  font-size: 28px;
  margin-bottom: 20px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-item p {
  margin-top: 8px;
  font-weight: bold;
  color: #555;
}

/* Hover effect already applies from existing gallery img:hover styles */

.image-container {
    position: relative;
    width: 100%;
    height: 50vh; /* adjusted for responsiveness */
    min-height: 300px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 2s ease-in-out;
}

/* Timings Table */
.timings-table, .fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
}

.timings-table th, .fee-table th,
.timings-table td, .fee-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
}

.timings-table th, .fee-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.timings-table tr:nth-child(even), .fee-table tr:nth-child(even) {
    background-color: #fce4ec;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 64, 129, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.text-overlay h1 {
    font-size: 38px;
    margin-bottom: 10px;
    animation: bounce 1.5s infinite alternate;
}

.text-overlay p {
    font-size: 20px;
}

.text-overlay {
    width: 90%;
    max-width: 350px;
    text-align: center;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Video Gallery */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.video-gallery video,
.video-gallery iframe {
    width: 320px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.video-gallery video:hover,
.video-gallery iframe:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #ff80ab;
    text-align: center;
    padding: 15px;
    color: white;
    font-size: 16px;
}

/* Buttons */
button {
    background: #ff4081;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: #ff80ab;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    from {
        transform: translateY(-5px);
    }
    to {
        transform: translateY(5px);
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-links li {
        margin: 8px 0;
    }

    .nav-links a {
        font-size: 16px;
        padding: 8px 12px;
    }

    .text-overlay {
        width: 90%;
        max-width: 350px;
        padding: 20px;
        text-align: center;
    }

    .text-overlay h1 {
        font-size: 28px;
    }

    .text-overlay p {
        font-size: 16px;
    }

    .image-container {
        height: 50vh;
        min-height: 300px;
    }

    .overview {
        padding: 20px;
        text-align: center;
    }

    .overview h2 {
        font-size: 22px;
    }

    .overview p {
        font-size: 16px;
    }

    footer {
        font-size: 14px;
        padding: 10px;
    }
}
