/*  Update using classes. Name the class as {name of template}_{something useful}, eg. class="homepage_maintitle", then in css .homepage_maintitle {} */
/* NAV + FOOTER */
nav {
    background: #1e3a5f; /* deep navy */

    position: fixed;
    top: 0;
    width: 100%;

    z-index: 1000;
}

footer {
    background: #1e3a5f; /* deep navy */
    padding: 1rem 0;
    text-align: center;
    color: #f1f5f9;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height: 80px;

    padding: 0.5rem 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.logo1 {
    text-decoration: none;
    color: inherit;
}

.navtitle {
    color: #f1f5f9;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
}

.nav-links a {
    color: #f1f5f9;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
}

.nav-links a:hover {
    background: #2c4c72; /* lighter navy */
    border-radius: 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c4c72;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 160px;
    z-index: 10;
}

.dropdown-menu li a {
    padding: 0.5rem 1rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* LAYOUT */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8fafc; /* very light blue-grey */
    color: #222;
}

main {
    flex: 1;
}

/* Homepage styles -------------------------------------------------------------------------------------Homepage---------------------------*/
.homepage_container {
    text-align: center;
}

/* Hero Section */
.homepage_hero {
    background: linear-gradient(135deg, #1e3a5f, #2c4c72); /* navy gradient */
    color: #f1f5f9;
    padding: 4rem 2rem;
    border-radius: 0;
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
}

.homepage_maintitle {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.homepage_tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e2e8f0; /* muted light */
}

.homepage_ctabutton {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    text-decoration: none; /* keep links looking like buttons */
}

.homepage_ctabutton:hover {
    background: linear-gradient(90deg, #0056b3, #003f7f);
    transform: translateY(-2px);
}


/* Features Section */
.homepage_features {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.homepage_featurecard {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #dce3eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.homepage_featuretitle {
    margin-bottom: 0.5rem;
    color: #1e3a5f; /* navy */
}

.homepage_featuretext {
    margin-bottom: 1rem;
    color: #475569; /* muted grey-blue */
}

.homepage_featurelink {
    display: inline-block;
    margin-top: 1rem;
    color: #3b82f6; /* sky blue */
    text-decoration: none;
    font-weight: 500;
}

.homepage_featurelink:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .homepage_features {
        flex-direction: column;
        align-items: center;
    }
}

/* Section defaults */
.homepage_container section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.homepage_sectiontitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.homepage_text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* Why Alumni Societies */
.homepage_twocolumns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.homepage_benefitslist {
    list-style: disc;
    padding-left: 1.5rem;
    color: #555;
}

.homepage_imageplaceholder {
    background: #e9ecef;
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Use Cases */
.homepage_usecasesgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.homepage_usecasecard {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

/* Upcoming Features */
.homepage_future {
    text-align: center;
}
.homepage_futurelist {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}
.homepage_futurelist li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* CTA Section */
.homepage_ctasection {
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4rem 2rem;
    margin-top: 4rem;
}


/* Login page styles ------------------------------------------------------------------------------   Login----------------------------------------------*/
.login-container {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #343a40;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"] {
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
}

.login-container button {
    padding: 0.75rem 1rem;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.login-container button:hover {
    background: #343a40;
}

.login-container p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.login-container p a {
    color: #007bff;
    text-decoration: none;
}

.login-container p a:hover {
    text-decoration: underline;
}




/* CREATE EVENT PAGE */
.create-event_container {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.create-event_title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.create-event_form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.create-event_field {
    display: flex;
    flex-direction: column;
}

.create-event_field label {
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #444;
}

.create-event_field input,
.create-event_field textarea,
.create-event_field select {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.create-event_field input:focus,
.create-event_field textarea:focus,
.create-event_field select:focus {
    border-color: #007bff;
    outline: none;
}

.create-event_submit {
    background-color: #007bff; /* Same blue as edit profile save */
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s ease;
}

.create-event_submit:hover {
    background-color: #0056b3;
}

.create-event_back {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
}

.create-event_back:hover {
    text-decoration: underline;
}

/* EVENT LIST PAGE */
.event-list_container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.event-list_title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.event-list_items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list_item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.event-list_item:last-child {
    border-bottom: none;
}

.event-list_link {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.2s ease;
}

.event-list_link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.event-list_meta {
    font-size: 0.95rem;
    color: #666;
}

.event-list_meta span {
    margin: 0 0.4rem;
    color: #aaa;
}

.event-list_empty {
    text-align: center;
    padding: 2rem;
    color: #777;
    font-style: italic;
}


/* EVENT DETAIL PAGE */
.event-detail_container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.event-detail_title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.event-detail_description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.event-detail_info p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #444;
}

.event-detail_rsvp-form {
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f9f9f9;
}

.event-detail_rsvp-form label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.event-detail_btn {
    margin-left: 1rem;
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.event-detail_btn:hover {
    background: #0056b3;
}

.event-detail_rsvp-summary {
    margin-top: 2rem;
}

.event-detail_rsvp-summary h3 {
    margin-bottom: 1rem;
    color: #333;
}

.event-detail_rsvp-summary ul {
    list-style: none;
    padding: 0;
}

.event-detail_rsvp-summary li {
    padding: 0.3rem 0;
    font-size: 1rem;
    color: #444;
}

.event-detail_rsvp-summary .yes {
    color: green;
    font-weight: 600;
}

.event-detail_rsvp-summary .maybe {
    color: orange;
    font-weight: 600;
}

.event-detail_rsvp-summary .no {
    color: red;
    font-weight: 600;
}

.event-detail_back {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    transition: color 0.2s ease;
}

.event-detail_back:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* RSVP PAGE */
.event-rsvp_container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.event-rsvp_title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.event-rsvp_info {
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 4px solid #007bff;
    background: #f9f9f9;
    border-radius: 6px;
}

.event-rsvp_info p {
    margin: 0.3rem 0;
    font-size: 1rem;
    color: #444;
}

.event-rsvp_form {
    margin-bottom: 1.5rem;
}

.event-rsvp_form p {
    margin-bottom: 1rem;
}

.event-rsvp_btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 6px;
    background: #28a745;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.event-rsvp_btn:hover {
    background: #218838;
}

.event-rsvp_back {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    transition: color 0.2s ease;
}

.event-rsvp_back:hover {
    color: #0056b3;
    text-decoration: underline;
}



/*School Homepage ----------------------------------------------------------------------------------------------------------------Schol Homepage ------------------------*/
/* Hero Section */
.school_hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}
.school_hero_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.school_hero_overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0,0,0,0.4);
    padding: 2rem 3rem;
    border-radius: 10px;
    color: #fff;
}
.school_hero_title {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.school_hero_tagline {
    font-size: 1.2rem;
}

/* Feature Boxes */
.school_featureboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 3rem 0;
}
.school_box {
    flex: 1 1 250px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}
.school_box img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.school_box a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.school_box a:hover {
    text-decoration: underline;
}

/* Historical Section */
.school_history {
    background: #f4f4f4;
    padding: 3rem 1rem;
    text-align: center;
}
.school_history_images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}
.school_history_images img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.school_history a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #343a40;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}
.school_history a:hover {
    background: #495057;
}

.navbar-logo {
    min-height: 50px;
    max-width: 120px;    /* adjust to fit your navbar */
    max-height: 60px;    /* optional: constrain height */
    height: auto;        /* maintain aspect ratio */
    width: auto;         /* maintain aspect ratio */
    object-fit: contain; /* ensures it scales nicely without cropping */
}


/* Alumni Slider */
.school_alumni_slider {
    margin: 3rem 0;
    text-align: center;
}
.alumni_slider_container {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    overflow-x: auto;           /* horizontal scroll if needed */
    justify-content: center;    /* center cards if few items */
    flex-wrap: nowrap;          /* keep in a single row */
    scroll-snap-type: x mandatory; /* optional: nice snapping effect */
}

.alumni_slide {
    flex: 0 1 180px;           /* fixed min width, can shrink slightly */
    max-width: 180px;          /* prevents stretching too much */
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    scroll-snap-align: start;  /* optional: aligns each card to container start */
}

.alumni_slide img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.alumni_name {
    font-weight: bold;
}
.alumni_quote {
    font-size: 0.9rem;
    font-style: italic;
}
.alumni_cta {
    margin-top: 1rem;
    font-weight: bold;
}

/* Responsive */
@media(max-width: 900px){
    .school_featureboxes {
        flex-direction: column;
    }
    .school_history_images {
        flex-direction: column;
        gap: 1rem;
    }
    .alumni_slide {
        width: 150px;
    }
}


/*Personal_profile ----------------------------------------------------------------------------------------Profile-----------------------------------------------------------------*/
.personal-profile-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;

    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.personal-profile-box {
    display: flex;
    flex-wrap: wrap;

    padding: 2rem;
    gap: 2rem;
}

.personal-profile-left {
    flex: 0 0 200px;
    max-width: 200px;
    text-align: center;
}

.personal-profile-username {
    margin-bottom: 1rem;
    text-align: left;
}

.personal-profile-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.personal-no-picture {
    width: 100%;
    height: 200px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #666;
    text-align: center;
}

.personal-profile-right {
    flex: 1;
}

.personal-profile-right ul {
    list-style: none;
    padding: 0;
}

.personal-profile-right li {
    margin-bottom: 0.5rem;
}

.personal-profile-right.social a {
    color: #fff;
    text-decoration: none;
}

.personal-profile-right a:hover {
    text-decoration: underline;
}

.-btn-primary {
    margin-top: 1rem;
}


/*Directory ----------------------------------------------------------------------------------------------------------------------------------------------------------*/



.directory-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.directory-search {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.directory-search input,
.directory-search button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.directory-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.directory-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 250px;
}

.directory-card-left {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
}

.directory-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.directory-no-img {
    width: 60px;
    height: 60px;
    background: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
    text-align: center;
}

.directory-card-right {
    flex: 1;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.directory-card-right p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.directory-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    display: inline-block; /* ensures proper spacing in flex container */
}

.directory-card-link:hover .directory-card {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}



/*Public Profile ------------------------------------------------------------------------------------------------------------------------------------------------------*/
.profile-display {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 2rem auto;
}

.profile-container {
    gap: 2rem;
    padding: 2rem;
    justify-content: center;

    display: flex;
}

.profile-left {
    flex: 0 0 200px;
    text-align: center;
}

.profile-img {
    max-width: 180px;
    border-radius: 8px;
}

.profile-no-img {
    width: 180px;
    height: 180px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #999;
}

.profile-right {
    flex: 1;
}

.profile-right ul {
    list-style: none;
    padding: 0;
}

.profile-right li {
    margin-bottom: 0.75rem;
}

.profile-center {
    padding-bottom: 2rem;
    text-align: center;
}


/*Edit Profile ---------------------------------------------------------------------------------------------------------------------------*/
.profile-edit-container {
    max-width: 960px;
    margin: 3rem auto;
    padding: 2.5rem 3rem;
    background: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
}

.profile-edit-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.profile-edit-form {
    width: 100%;
}

.profile-edit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.profile-edit-left,
.profile-edit-right {
    flex: 1 1 400px;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group input,
.form-group textarea {
    padding: 0.65rem 0.8rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.profile-edit-right .current-profile-img {
    margin-top: 0.8rem;
    text-align: center;
}

.profile-edit-right .current-profile-img img {
    max-width: 180px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn.profile-edit-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}

.btn.profile-edit-btn:hover {
    background: linear-gradient(90deg, #0056b3, #003f7f);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .profile-edit-row {
        flex-direction: column;
    }
}


/*-------------------------------------------------------------------------Gallery-------------------------------------*/
/* PHOTO GALLERY */
.gallery_title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.gallery_container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.gallery_card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 220px;
}

.gallery_image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.gallery_caption {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.gallery_meta {
  font-size: 0.85rem;
  color: #555;
}

.gallery_empty {
  text-align: center;
  font-style: italic;
  margin: 2rem 0;
}

/* Match Edit Profile Save Changes button (gradient + hover) + centered */
.gallery_cta {
  display: block;
  width: fit-content;            /* keeps the button to its content width */
  margin: 2rem auto 3rem auto;   /* top, center horizontally, bottom */
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #007bff, #0056b3); /* same gradient */
  border: none;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.25s, transform 0.18s, box-shadow 0.18s;
}

.gallery_cta:hover {
  background: linear-gradient(90deg, #0056b3, #003f7f); /* same hover gradient */
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.gallery_cta:active {
  transform: translateY(0);
  filter: brightness(0.96);
}


/*--------------------------------------Notifications-----------------------------------------*/

/* Notifications Page */
.notifications-container {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family: 'Inter', sans-serif;
}

.notifications-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.notifications-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.notification-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.notification-card.unread {
  border-left: 6px solid #007bff;
}

.notification-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.notification-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

.notification-date {
  font-size: 0.9rem;
  color: #777;
}

.notification-message {
  margin: 0.5rem 0 1rem;
  font-size: 1rem;
  color: #444;
}

.notification-actions {
  display: flex;
  gap: 1rem;
}

.btn.notification-btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}

.btn.notification-btn:hover {
  background: linear-gradient(90deg, #0056b3, #003f7f);
  transform: translateY(-2px);
}

.notification-empty {
  text-align: center;
  color: #666;
  font-style: italic;
}


/*---------------------------------------------------INBOX--------------------------------------------------------*/

/* Inbox Page */
.inbox-container {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family: 'Inter', sans-serif;
}

.inbox-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.inbox-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inbox-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.inbox-card.unread {
  border-left: 6px solid #007bff;
}

.inbox-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.inbox-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inbox-header {
  display: flex;
  flex-direction: column;
}

.inbox-subject {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.inbox-sender {
  font-size: 0.9rem;
  color: #555;
}

.inbox-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: #007bff;
  background: rgba(0,123,255,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}
  
.inbox-empty {
  text-align: center;
  color: #666;
  font-style: italic;
}


/* OUTBOX */
.outbox_container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
}

.outbox_title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.outbox_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.outbox_item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.outbox_subject {
  font-weight: 600;
  color: #2563eb; /* same blue as Save Changes */
  text-decoration: none;
  margin-right: 0.5rem;
}

.outbox_subject:hover {
  text-decoration: underline;
}

.outbox_arrow {
  margin: 0 0.5rem;
  color: #6b7280;
}

.outbox_recipient {
  font-weight: 500;
  color: #111827;
  margin-right: 0.5rem;
}

.outbox_time {
  font-size: 0.85rem;
  color: #6b7280;
}

.outbox_empty {
  text-align: center;
  color: #6b7280;
  font-style: italic;
}

/* COMPOSE MESSAGE */
.compose_container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.compose_title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.compose_form p {
  margin-bottom: 1rem;
}

.compose_form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.compose_form input,
.compose_form textarea,
.compose_form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.compose_form input:focus,
.compose_form textarea:focus,
.compose_form select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.compose_btn {
  display: block;
  margin: 1rem auto 0;
  background: #2563eb; /* same blue as Save Changes */
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.compose_btn:hover {
  background: #1e40af;
}


/* MESSAGE DETAIL */
.message_detail {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.message_subject {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.message_meta p {
  margin: 0.3rem 0;
  color: #374151;
}

.message_body {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #111827;
}

.reply_btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}

.reply_btn:hover {
  background: linear-gradient(90deg, #0056b3, #003f7f);
  transform: translateY(-2px);
}


/*--------------------------------------------------------Stories----------------------------------*/
.stories_page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.stories_title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
  text-align: center;
}

.stories_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.story_item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.story_item:last-child {
  border-bottom: none;
}

.story_link {
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s;
}

.story_link:hover {
  text-decoration: underline;
  color: #0056b3;
}

.story_meta {
  font-size: 0.9rem;
  color: #555;
  margin-left: 0.3rem;
}

.no_stories {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin: 1rem 0;
}

.stories_cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;          /* Use block if you want full-width centered buttons */
  padding: 0.85rem 2rem;          /* Comfortable padding */
  font-size: 1rem;                /* Explicit font size */
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  text-align: center;             /* Ensure text is centered for block buttons */
  margin: 0;                      /* Remove default margins, set per container if needed */
}



.btn-primary:hover {
  background: linear-gradient(90deg, #0056b3, #003f7f);
  transform: translateY(-2px);
}


.story_submit_page {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.story_submit_title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #1f2937;
}

.story_submit_form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story_submit_form input,
.story_submit_form textarea {
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.story_submit_form input:focus,
.story_submit_form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.story_submit_cta {
  text-align: center;
  margin-top: 1rem;
}




.story_submit_back {
  text-align: center;
  margin-top: 1.5rem;
}

.back_link {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}

.back_link:hover {
  text-decoration: underline;
  color: #0056b3;
}


.photo_upload_page {
  max-width: 700px;
  margin: 2rem auto;
}

.photo_upload_title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.photo_upload_card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

.photo_upload_form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}




.photo_upload_back {
  text-align: center;
  margin-top: 1rem;
}

.story_back_link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.story_back_link:hover {
  text-decoration: underline;
}




/* Admin Container */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: 'Inter', sans-serif;
    color: #1e3a5f;
}

/* Search Form */
.admin-search {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
}

.admin-search input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.admin-search .btn.admin-action-btn {
    padding: 0.55rem 1.2rem;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.admin-table th {
    background: #f1f5f9;
    color: #1e3a5f;
    font-weight: 600;
}

.admin-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Buttons (CTA style) */
.btn.admin-action-btn {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #fc0000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background 0.25s, transform 0.2s;
}

.btn.admin-action-btn:hover {
    background: linear-gradient(90deg, #0056b3, #003f7f);
    transform: translateY(-1px);
}

/* Admin Logs */
.admin-log {
    list-style: disc;
    padding-left: 1.5rem;
    color: #475569;
}
.admin-log li {
    margin-bottom: 0.5rem;
}


/* Create School Page Styles --------------------------------------------------- */
.create-school_container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Section cards */
.create-school_section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f9fafb;
}

.create-school_title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e3a5f;
}

/* Inline formset entries */
.create-school_inlineform {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

/* Form fields */
.create-school_form input,
.create-school_form select,
.create-school_form textarea {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

.create-school_form label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.3rem;
    display: block;
}

/* CTA Button */
.create-school_ctabutton {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transition: background 0.25s, transform 0.2s;
}

.create-school_ctabutton:hover {
    background: linear-gradient(90deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

/*--------------------------------------------------EDIT SCHOOL-------------------------------------------------*/

/* ==== Edit School Page ==== */
.edit-school-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.edit-school_title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.edit-school_form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edit-school_section-title {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #444;
}

.edit-school_section {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.edit-school_formset-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #ccc;
}

.edit-school_formset-item:last-child {
    border-bottom: none;
}

.edit-school_image-preview {
    display: block;
    margin-top: 0.5rem;
    max-height: 120px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.edit-school_submit {
    text-align: center;
    margin-top: 2rem;
}

.edit-school_button {
    background: #007bff; /* Bootstrap blue */
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.edit-school_button:hover {
    background: #0056b3;
}


/* --- Create Account Page --- */
.create-account-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    background: #f9fafc;
    min-height: 80vh;
}

.create-account-page h2 {
    font-size: 2rem;
    color: #1d4ed8; /* Oxford blue tone */
    margin-bottom: 1.5rem;
}

.create-account-page form {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.create-account-page form p {
    margin-bottom: 1rem;
}

.create-account-page input[type="text"],
.create-account-page input[type="email"],
.create-account-page input[type="password"],
.create-account-page select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.create-account-page input:focus,
.create-account-page select:focus {
    border-color: #2563eb;
    outline: none;
}

.create-account-page label {
    display: block;
    font-size: 0.95rem;
    color: #374151;
    margin: 0.5rem 0;
}

.create-account-page button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    transition: background 0.2s;
}

.create-account-page button:hover {
    background-color: #1e40af;
}

.create-account-page p {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.create-account-page a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.create-account-page a:hover {
    text-decoration: underline;
}


/* Story Detail Page */
.story-detail-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fefefe;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.story-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #222;
}

.story-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.story-content p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.story-actions {
    margin-top: 30px;
}

.story-actions .btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.story-actions .btn-back {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

.story-actions .btn-back:hover {
    background-color: #e0e0e0;
}

.story-actions .btn-delete {
    background-color: #e74c3c;
    color: #fff;
    border: 1px solid #c0392b;
}

.story-actions .btn-delete:hover {
    background-color: #c0392b;
}


/* Delete Confirmation Page */
.delete-confirm-page {
    max-width: 600px;
    margin: 50px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

.delete-confirm-page h2 {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 20px;
}

.delete-confirm-page p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.delete-confirm-page img {
    margin: 15px 0;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

.delete-confirm-page form {
    margin-top: 25px;
}

.delete-confirm-page button,
.delete-confirm-page a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    margin: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.delete-confirm-page button {
    background-color: #e74c3c;
    color: #fff;
    border: 1px solid #c0392b;
}

.delete-confirm-page button:hover {
    background-color: #c0392b;
}

.delete-confirm-page a {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

.delete-confirm-page a:hover {
    background-color: #e0e0e0;
}
