/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Lighter background */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header Styles */
.header {
    background-color: #AC18B8; /* Purple */
    text-align: center;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px; /* Taller header */
}

.header-content {
    z-index: 1; /* Ensure content is above any potential background effects */
}

.header h1 {
    margin: 0;
    font-size: 2.5rem; /* Larger font */
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1.5px;
}

.header p {
    margin: 5px 0 0;
    font-size: 1.2rem;
    color: #e0e0e0; /* Lighter white for subtitle */
}

/* Back Button */
.back-button {
    position: absolute;
    top: 25px;
    left: 25px;
    background: #fff;
    color: #AC18B8; /* Purple */
    border: 1px solid #AC18B8; /* Purple border */
    padding: 10px 18px;
    border-radius: 50px; /* Pill shape */
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.back-button:hover {
    background: #AC18B8; /* Purple */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main Content Area */
.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1200x400/8A2BE2/FFFFFF?text=Sunshine+College+Campus') no-repeat center center/cover; /* Purple overlay with image */
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #FFD700; /* Yellow */
}

.news-card h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.news-card p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1; /* Allows paragraph to take up available space */
    margin-bottom: 20px;
}

.read-more-button {
    display: inline-block;
    background-color: #007bff; /* Blue for general buttons */
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px; /* Spacing from paragraph */
}

.read-more-button:hover {
    background-color: #0056b3; /* Darker blue */
    transform: translateY(-2px);
}

/* Highlight Cards (for key announcements) */
.highlight-card {
    border: 2px solid #AC18B8; /* Purple border */
    background-color: #fcf4ff; /* Very light purple background */
    box-shadow: 0 6px 20px rgba(172, 24, 184, 0.15); /* Purple shadow */
}

.highlight-card .card-icon {
    color: #AC18B8; /* Purple icon */
}

.highlight-card .read-more-button {
    background-color: #AC18B8; /* Purple button */
}

.highlight-card .read-more-button:hover {
    background-color: #8D149B; /* Darker purple */
}

/* Info Cards (for important dates) */
.info-card {
    border: 2px solid #FFD700; /* Yellow border */
    background-color: #fffdf4; /* Very light yellow background */
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15); /* Yellow shadow */
}

.info-card .card-icon {
    color: #FFD700; /* Yellow icon */
}

.info-card .read-more-button {
    background-color: #FFD700; /* Yellow button */
    color: #333; /* Darker text for readability on yellow */
}

.info-card .read-more-button:hover {
    background-color: #E6C200; /* Darker yellow */
}

/* New: Image Highlights/Posters Section */
.image-highlights-section {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.image-highlights-section h2 {
    font-size: 2.5rem;
    color: #AC18B8; /* Purple heading */
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Ensures image corners are rounded with the card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensures image covers the area without distortion */
    border-bottom: 1px solid #eee;
}

.gallery-description {
    padding: 20px;
    text-align: left; /* Align text to the left within the description */
}

.gallery-description h3 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.gallery-description p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.gallery-button {
    display: inline-block;
    background-color: #AC18B8; /* Purple button */
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gallery-button:hover {
    background-color: #8D149B; /* Darker purple */
    transform: translateY(-2px);
}


/* Footer Styles */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 40px; /* Space above footer */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    .hero-section {
        padding: 60px 15px;
    }

    .hero-section h2 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr; /* Stack cards on small screens */
    }

    .news-card {
        padding: 25px;
    }

    .back-button {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .image-gallery-grid {
        grid-template-columns: 1fr; /* Stack gallery items on small screens */
    }

    .image-highlights-section h2 {
        font-size: 2rem;
    }
}