:root {
    --main-color: #aa0d1f;
    --main-color-opacity: #a31122ce;
    --secondary-color: #f0f0f0;
    --text-color: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Raleway', sans-serif;

}

/* ●●●●●●●●●●●●●●●●●●●●● */
/*HIGHLIGHTING PAGE CONTENTS*/
/* ●●●●●●●●●●●●●●●●●●●●● */
::selection {
    background: #b72334;
    color: white;
}

::-moz-selection {
    background: #b72334;
    color: white;
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/*LINKS*/
/* ●●●●●●●●●●●●●●●●●●●●● */
a {
    text-decoration: none;
    cursor: pointer;
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* SCROLLBAR STYLES */
/* ●●●●●●●●●●●●●●●●●●●●● */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
}

::-webkit-scrollbar-thumb {
    background: red;
}

::-webkit-scrollbar-thumb:hover {
    background: black;
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* BODY */
/* ●●●●●●●●●●●●●●●●●●●●● */
body {
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* NAVBAR */
/* ●●●●●●●●●●●●●●●●●●●●● */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
}

.navbar img.logo {
    height: 45px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--main-color);
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--main-color);
}

.donate-btn {
    background: var(--main-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.donate-btn:hover {
    background: #941b28;
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* HAMBURGER */
/* ●●●●●●●●●●●●●●●●●●●●● */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--main-color);
}

/* Mobile menu (portrait and landscape) */
@media (max-width: 900px),
(max-height: 500px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--white);
        height: 100vh;
        width: 250px;
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        transition: right 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* Smaller text adjustment */
@media (max-width: 768px) {
    .brand-text {
        font-size: 0.70rem;
        letter-spacing: 0.5px;
        text-align: center;
    }
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* HERO */
/* ●●●●●●●●●●●●●●●●●●●●● */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 70px;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 400px;
    animation: slideShow 20s infinite;
}

.slide {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    height: 400px;
    background-size: cover;
    background-position: center;
}

.slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.slide-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

.apply-btn {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--main-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    z-index: 3;
}

.apply-btn:hover {
    background: #941b28;
}

@keyframes slideShow {

    0%,
    20% {
        transform: translateX(0);
    }

    25%,
    45% {
        transform: translateX(-100%);
    }

    50%,
    70% {
        transform: translateX(-200%);
    }

    75%,
    95% {
        transform: translateX(-300%);
    }

    100% {
        transform: translateX(-400%);
    }
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 1.5rem;
    }

    .apply-btn {
        font-size: 0.9rem;
    }
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* ELIGIBILITY BANNER */
/* ●●●●●●●●●●●●●●●●●●●●● */
.banner {
    background-color: var(--secondary-color);
    padding: 2rem 1.5rem;
    text-align: center;
}

.banner h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.banner p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
    min-width: 130px;
    text-align: center;
}

.btn-primary {
    background: var(--main-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #941b28;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.btn-secondary:hover {
    background: var(--main-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .banner {
        padding: 2.5rem;
    }

    .banner h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .banner p {
        font-size: 0.95rem;
        text-align: center;
    }

    .button-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        width: 60%;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .banner h2 {
        font-size: 1.3rem;
    }

    .banner p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

.divider {
    border: 2px solid var(--main-color);
    width: 100%;
    margin: 0 auto;
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* APPLICATION CARDS */
/* ●●●●●●●●●●●●●●●●●●●●● */
#application-cards {
    padding: 4rem 1.5rem;
    background: var(--white);
}

.card-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h2 {
    font-size: 1.3rem !important;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--main-color);
    line-height: 1.3;
    text-align: left;
}

.card-content p {
    font-size: 0.95rem !important;
    color: var(--text-color);
    line-height: 1.5;
    text-align: left;
}

.card-btn {
    display: inline-block;
    margin-top: 1rem;
    background: var(--main-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background 0.3s ease;
}

.card-btn:hover {
    background: #941b28;
}

@media (max-width: 768px) {
    #application-cards {
        padding: 3rem 1rem;
    }

    .card-content h2 {
        font-size: 1.1rem !important;
    }

    .card-content p {
        font-size: 0.9rem !important;
    }
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* ABOUT US SECTION */
/* ●●●●●●●●●●●●●●●●●●●●● */
.about-section {
    padding: 5rem 1.5rem;
    background: var(--secondary-color);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.about-content h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1.2rem;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-btn {
    display: inline-block;
    margin-top: 1rem;
    background: var(--main-color);
    color: var(--white);
    padding: 0.8rem 1.6rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.about-btn:hover {
    background: #941b28;
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about-content h2 {
        font-size: 1.6rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* FACTS AND STATS */
/* ●●●●●●●●●●●●●●●●●●●●● */
.facts-section {
    padding: 5rem 1.5rem;
    background: var(--white);
    text-align: left;
}

.facts-container {
    max-width: 1600px;
    margin: 0 auto;
}

.facts-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1.2rem;
}

.facts-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.fact-item {
    background: var(--secondary-color);
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.fact-item:hover {
    transform: translateY(-6px);
}

.fact-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.fact-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .facts-section h2 {
        font-size: 1.6rem;
    }

    .facts-section p {
        font-size: 0.95rem;
    }
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* TRENDING SECTION */
/* ●●●●●●●●●●●●●●●●●●●●● */
#trending {
    padding: 4rem 1.5rem;
    background: var(--secondary-color);
}

#trending .container {
    max-width: 1600px;
    margin: 0 auto;
}

.trending-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--main-color);
    line-height: 1.3;
    text-align: left;
}

.trending-section p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 2rem;
    text-align: left;
}

#trending .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

#trending .card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#trending .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#trending .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#trending .card:hover .card-image img {
    transform: scale(1.08);
}

#trending .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#trending .card-content h3 {
    font-size: 1.3rem !important;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--main-color);
    line-height: 1.3;
    text-align: left;
}

#trending .card-content p {
    font-size: 0.95rem !important;
    color: var(--text-color);
    line-height: 1.5;
    text-align: left;
}

#trending .card-btn {
    display: inline-block;
    margin-top: 1rem;
    background: var(--main-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background 0.3s ease;
}

#trending .card-btn:hover {
    background: #941b28;
}

#trending .view-all {
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 768px) {

    #trending .card-content h2 {
        font-size: 1.1rem !important;
    }

    #trending .card-content p {
        font-size: 0.9rem !important;
    }
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* UPCOMING EVENTS */
/* ●●●●●●●●●●●●●●●●●●●●● */
.events-section {
    background: var(--main-color);
    color: var(--white);
    padding: 4rem 1.5rem;
}

.events-container {
    max-width: 1600px;
    margin: 0 auto;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.events-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
}

.events-header .view-all {
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    transition: opacity 0.3s ease;
}

.events-header .view-all:hover {
    opacity: 0.8;
}

.events-underline {
    border: none;
    border-bottom: 2px solid var(--white);
    margin-top: 0.8rem;
    margin-bottom: 2rem;
}

.event {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.event-date {
    font-weight: 700;
    min-width: 80px;
    font-size: 1.1rem;
}

.event-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.event-details p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .event {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-date {
        margin-bottom: 0.3rem;
    }
}


/* ●●●●●●●●●●●●●●●●●●●●● */
/* VIDEO/GIF BANNER */
/* ●●●●●●●●●●●●●●●●●●●●● */
.video-banner {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* TEXT OVERLAY */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    background: #00000080;
    align-items: center;
}

.quote {
    color: var(--white);
    text-align: center;
    max-width: 80%;
    padding: 10px 20px;
    background: var(--main-color-opacity);
    /* OPTIONAL BACKDROP */
    border-radius: 8px;
}

.quote-text {
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.university-name {
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .quote-text {
        font-size: 1em;
    }

    .university-name {
        font-size: 1.1em;
    }

    #background-video {
        object-fit: contain;
        min-width: 60%;
        min-height: 60%;
    }
}


/* ●●●●●●●●●●●●●●●●●●●●● */
/* CONTACT SECTION */
/* ●●●●●●●●●●●●●●●●●●●●● */
.contact-section {
    background: #f9f9f9;
    padding: 4rem 1.5rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-text h2 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.contact-text p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
    outline: none;
}

.btn-main {
    display: inline-block;
    background: var(--main-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-main:hover {
    background: var(--secondary-color);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* ●●●●●●●●●●●●●●●●●●●●● */
/* FOOTER */
/* ●●●●●●●●●●●●●●●●●●●●● */
.footer {
    background: #111111;
    color: var(--white);
    padding: 3rem 1.5rem 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--white);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.footer-col ul {
    list-style: none;
    line-height: 1.8;
}

.footer-col ul li {
    font-size: 0.95rem;
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--main-color);
}

.brand-col p {
    font-size: 0.9rem;
    margin-top: 0.8rem;
    line-height: 1.6;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-brand img {
    height: 40px;
}

.social-icons {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.2);
}

/* FOOTER BOTTOM */
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    opacity: 0.85;
}

/* BACK TO TOP BUTTON */
#backToTop {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    background: var(--main-color);
    color: var(--white);
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: fixed;
}

#backToTop:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    color: var(--main-color);
}

/* RIPPLE EFFECT */
#backToTop .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}