/* ---- Google Font Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables for Blue Theme ---- */
:root {
    --primary-blue: #007BFF;
    --primary-blue-dark: #0056b3;
    --secondary-blue: #e7f3ff;
    --dark-navy: #0d244f;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --background-light: #f7fafc;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ---- General Reset & Body Styles ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue-dark);
}

img {
    max-width: 100%;
    display: block;
}

.heading {
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-navy);
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-blue);
    display: inline-block;
}

/* ---- Header Styles ---- */
.callcontainer {
    background-color: var(--dark-navy);
    text-align: center;
    padding: 0.5rem;
}

.callcontainer a {
    color: var(--white);
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.time-container {
    background-color: var(--secondary-blue);
    color: var(--dark-navy);
    font-weight: 500;
    padding: 0.3rem 1rem;
    display: flex;
    justify-content: flex-end;
}

.time-wrapper {
    display: flex;
    gap: 0.3rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.leftheader {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.leftheader img {
    height: 50px;
}

.leftheader h4 {
    font-size: 1.2rem;
    color: var(--dark-navy);
}

.midheader nav ul,
.rightheader nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.midheader nav a,
.rightheader nav a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.midheader nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.midheader nav a:hover::after {
    width: 100%;
}

.rightheader {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.noticeboard {
    display: flex;
    align-items: center;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.noticeboard:hover {
    background-color: var(--primary-blue-dark);
}

.noticeboard a {
    color: var(--white);
}

.newgif {
    background-color: #ff4757;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.floatingbanner {
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 0.5rem 0;
}

#menuicon {
    display: none;
    cursor: pointer;
}

#menuicon img {
    height: 30px;
}

/* ---- Main Content Styles ---- */
main {
    padding: 4rem 2rem;
}

main > div {
    max-width: 1200px;
    margin: 0 auto 5rem auto;
    text-align: center;
}

.intro .text, .founder .text, .opportunity #midtext {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.founder fieldset {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 2rem 1.5rem 2rem;
    position: relative;
    margin-top: 4rem;
    box-shadow: var(--shadow);
}

.founder legend {
    padding: 0 1rem;
    width: auto;
    margin: 0 auto;
}

.founderimage {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 0 0 15px rgba(0,123,255,0.5);
}

.founderimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opportunity #opportunitytext {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.opportunityimage {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opportunityimage:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.opportunity #midtext {
    flex: 1.5;
}

/* Partners & Media Gallary */
.partnersdetails .text,
.mediagallary .text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.partnerfieldset, .mediafieldset {
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    background-color: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-basis: 280px;
}

.partnerfieldset:hover, .mediafieldset:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.partnerfieldset legend {
    width: 100%;
    padding: 0;
    margin-bottom: 1rem;
}

.partnerimagecontainer {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid var(--secondary-blue);
}

.partnerimagecontainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partnerfieldset {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.mediafieldset {
    padding: 1rem;
    flex-basis: 350px;
}
.mediafieldset legend {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-navy);
    padding: 0 0.5rem;
    margin-bottom: 1rem;
    width: auto;
}
.mediafieldset div {
    border-radius: 8px;
    overflow: hidden;
}

/* ---- Footer Styles ---- */
footer {
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 3rem 2rem 1rem 2rem;
    text-align: center;
}

footer .header {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: block;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}
.footer .header{
    display: block;
    width: 100%;
    font-size: 1rem;
}
.footerbutton {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footerbutton:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}

#lastline {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: block !important;
    width: 100%;
}

/* ---- Responsive Design ---- */
@media (max-width: 992px) {
    .header {
        padding: 1rem;
    }

    #menuicon {
        display: block !important;
        order: 3;
    }

    .rightheader {
        order: 2;
        gap: 1rem;
    }

    .rightheader nav {
        display: none; /* Hides Login links on mobile for cleaner look */
    }

    .midheader {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .midheader.active {
        max-height: 100vh; /* A large value to ensure it can open fully */
        box-shadow: var(--shadow);
    }
    
    .midheader nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }

    .midheader nav li {
        text-align: center;
    }

    .midheader nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .midheader nav a:hover {
        background-color: var(--secondary-blue);
    }

    .midheader nav a::after {
        display: none;
    }

    .opportunity #opportunitytext {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    main {
        padding: 3rem 1rem;
    }

    .heading {
        font-size: 1.5rem;
    }

    .header {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .leftheader h4 {
        display: none; /* Hide title on very small screens */
    }

    .footerbutton {
        width: 100%;
        max-width: 300px;
    }
}