/* Universal styles */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* Header and Navigation */
.sub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(53, 128, 187, 0.2), rgba(53, 128, 187, 0.2)), url(images/legacy.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}

.sub-header h1 {
    margin-top: 60px;
    color: #AC18B8;
    font-size: 35px;
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-content: center;
}

nav img {
    width: 150px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #29062B;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.hero-btn:hover {
    border: 1px solid #AC18B8;
    background: #AC18B8;
    transition: 1s;
}

nav .fa {
    display: none;
}

/* Dropdown Menu (More button) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown button {
    background-color: rgba(0, 0, 255, 0);
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background-color: rgba(0, 0, 255, 0.3);
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #FFC90E;
}

.dropdown.show .dropdown-content {
    display: block;
}

/* Academics Information Section Styling */

.introduction-section {
    background-color: #f8f8f8; /* Light grey background for emphasis */
    padding: 40px 20px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    text-align: center;
    opacity: 0; /* For fade-in animation */
    transform: translateY(20px); /* For slide-up animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.introduction-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.introduction-section h2 {
    font-size: 2.5em;
    color: #AC18B8; /* Sunshine purple */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.introduction-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FFC90E; /* Accent yellow */
    border-radius: 5px;
}

.introduction-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 15px auto;
}

.introduction-section p strong {
    color: #AC18B8;
    font-weight: 700;
}

/* Event Sections */
.academic-events-section,
.previous-events-section,
.subjects-offered-section {
    padding: 60px 20px;
    margin: 40px auto;
    max-width: 90%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    opacity: 0; /* For fade-in animation */
    transform: translateY(20px); /* For slide-up animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.academic-events-section.fade-in,
.previous-events-section.fade-in,
.subjects-offered-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}


.academic-events-section h2,
.previous-events-section h2,
.subjects-offered-section h2 {
    font-size: 2.2em;
    color: #AC18B8;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.academic-events-section h2::after,
.previous-events-section h2::after,
.subjects-offered-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #FFC90E;
    border-radius: 5px;
}

/* Event Card Styling */
.event-card {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.event-card h3 {
    font-size: 1.7em;
    color: #29062B; /* Darker purple */
    margin-bottom: 15px;
}

.event-card p {
    font-size: 1.05em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.event-card p strong {
    color: #AC18B8;
}

.poster-container {
    margin-top: 20px;
    text-align: center;
}

.poster-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.poster-container img:hover {
    transform: scale(1.02);
}

/* Image Gallery for Previous Events */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-img {
    width: 100%;
    height: 200px; /* Fixed height for consistent layout */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Subjects Offered Section */
.subjects-offered-section h3 {
    font-size: 1.8em;
    color: #29062B;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

.subject-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.subject-column {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subject-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.subject-column h3 {
    font-size: 1.4em;
    color: #AC18B8;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #FFC90E;
    padding-bottom: 10px;
}

.subject-column ul {
    list-style: none;
    padding: 0;
}

.subject-column ul li {
    font-size: 1.05em;
    color: #555;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.subject-column ul li:last-child {
    border-bottom: none;
}

.subject-column ul li::before {
    content: '\2022'; /* Bullet point */
    color: #FFC90E;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    margin-right: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .introduction-section,
    .academic-events-section,
    .previous-events-section,
    .subjects-offered-section {
        padding: 30px 15px;
        margin: 30px auto;
        max-width: 95%;
    }

    .introduction-section h2,
    .academic-events-section h2,
    .previous-events-section h2,
    .subjects-offered-section h2 {
        font-size: 2em;
    }

    .introduction-section p {
        font-size: 1em;
    }

    .event-card h3 {
        font-size: 1.5em;
    }

    .event-card p {
        font-size: 1em;
    }

    .image-gallery {
        grid-template-columns: 1fr; /* Stack images on small screens */
    }

    .subject-categories {
        grid-template-columns: 1fr; /* Stack subject columns on small screens */
    }
}

@media (max-width: 480px) {
    .introduction-section h2,
    .academic-events-section h2,
    .previous-events-section h2,
    .subjects-offered-section h2 {
        font-size: 1.8em;
    }
}


/*---------- Call To Action (cta) ----------*/
.cta{
	margin: 100px auto;
	width: 80%;
	background-image: linear-gradient(rgba(53, 128, 187, 0.2), rgba(53, 128, 187, 0.2)), url(images/cta.jpg);
	background-position: center;
	background-size: cover;
	border-radius: 10px;
	text-align: center;
	padding: 100px 0;
}
.cta h1 {
    color: #AC18B8;
    font-size: 35px;
}
@media(max-width: 700px){
	.cta h1{
		font-size: 24px;
	}
}


/* Footer */
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background-color: #000212;
}

.footer h4 {
    margin-bottom: 10px;
    margin-top: 10px;
    font-weight: 600;
    color: #fff;
}

.footer p {
    color: #fff;
}

.icons {
    margin-top: 0;
}

.icons .fa {
    color: #ED1C24;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
}

/* Responsive Design */
@media (max-width: 700px) {
    .sub-header h1,
    .sub-header2 h1 {
        font-size: 24px;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: fixed;
        background: #AC18B8;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    nav .fa {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul {
        padding: 30px;
    }

/* Hero Section */
.hero-section {
    background-color: #AC18B8; /* sunshine-purple */
    color: white;
    border-radius: 1rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    overflow: hidden;
    margin-bottom: 3rem; /* mb-12 */
    position: relative; /* Add position relative to contain absolute children */
    width: 100%; /* Ensure it takes full width of its parent */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.hero-section .relative {
    height: 24rem; /* h-96 */
    width: 100%;
    position: relative; /* Keep relative to contain its absolute image */
}

@media (min-width: 768px) { /* md breakpoint */
    .hero-section .relative {
        height: 31.25rem; /* md:h-[500px] */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .hero-section .relative {
        height: 37.5rem; /* lg:h-[600px] */
    }
}

.hero-section img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .absolute {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5); /* bg-black bg-opacity-50 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem; /* p-4 */
    text-align: center; /* Center the text horizontally */
}

.hero-section h1 {
    font-size: 2.25rem; /* text-4xl */
    line-height: 1.25; /* leading-tight */
    margin-bottom: 1rem; /* mb-4 */
    font-weight: 800; /* font-extrabold */
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.25); /* drop-shadow-md */
    word-wrap: break-word; /* Allow long words to break and wrap */
    max-width: 90%; /* Limit width to prevent overflow */
    margin-left: auto; /* Center the h1 */
    margin-right: auto; /* Center the h1 */
}

@media (max-width: 480px) { /* Extra small screens */
    .hero-section h1 {
        font-size: 1.75rem; /* Smaller font size for very small screens */
    }
}

@media (min-width: 640px) { /* sm breakpoint */
    .hero-section h1 {
        font-size: 3rem; /* sm:text-5xl */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .hero-section h1 {
        font-size: 3.75rem; /* lg:text-6xl */
    }
}

.hero-section p {
    font-size: 1.125rem; /* text-lg */
    font-weight: 300; /* font-light */
    word-wrap: break-word; /* Ensure text wraps */
    max-width: 90%; /* Limit width */
    margin-left: auto; /* Center the paragraph */
    margin-right: auto; /* Center the paragraph */
}

@media (min-width: 640px) { /* sm breakpoint */
    .hero-section p {
        font-size: 1.25rem; /* sm:text-xl */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .hero-section p {
        font-size: 1.5rem; /* lg:text-2xl */
    }
}

/* Introduction Section */
.introduction-section {
    background-color: white;
    padding: 2rem; /* p-8 */
    border-radius: 1rem; /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    margin-bottom: 3rem; /* mb-12 */
}

.introduction-section h2 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: #AC18B8; /* text-sunshine-purple */
    margin-bottom: 1.5rem; /* mb-6 */
    text-align: center;
}

.introduction-section p {
    font-size: 1.125rem; /* text-lg */
    line-height: 1.625; /* leading-relaxed */
    color: #4b5563; /* text-gray-700 */
    text-align: center;
    max-width: 56rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
}

.introduction-section strong {
    color: #AC18B8; /* text-sunshine-purple */
}

.introduction-section p + p { /* For the second paragraph */
    margin-top: 1rem; /* mt-4 */
}
}