body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #001662, #004aad); /* original linear bg */
    /*background-color: #0000FF; /* Blue background */
    font-family: Arial, sans-serif;
    color: #333;
}


/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   header.php */
header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #ffffff;
    color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    animation: fadeIn 1s ease-in-out;
}

header .logo img {
    height: 50px;
    width: auto;
}

header h2 {
    margin: 0 20px;
    flex-grow: 1;
    font-size: 1.2em;
    color: black;
}

header p {
    margin: 0 2px;
    flex-grow: 1;
    font-size: .8em;
    color: black;
    align-items: left;
}

/* Thin gold bar */
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: gold;
}

/* Thin light blue bar above gold */
header::before {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: lightblue;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Reunion Header */
.reunion-info {
    position: relative;
    margin-left: 20px;
}

.reunion-link {
    background: #0000FF; /* Matches header */
    color: #FFD700; /* Gold, overrides a { color: #FF0000 } */
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid #FFD700;
    border-radius: 4px;
    transition: background 0.3s ease-in-out;
}

.reunion-link:hover {
    background: #FFD700; /* Gold background */
    color: black; /* Matches header text */
}

.reunion-tooltip {
    display: none;
    position: absolute;
    top: 40px;
    left: 90%;
    transform: translateX(-50%);
    background: rgba(0, 22, 98, 0.9); /* Darker gradient start */
    color: #FFD700;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 700; /* Above nav */
    /* hide initially */
    opacity: 0;
    visibility: hidden;

    /* smooth transition with delay */
    transition: opacity 0.3s ease, visibility 0s linear 1s;
}

/* show tooltip with delay */
.reunion-info:hover .reunion-tooltip {
    opacity: 1;
    visibility: visible;
    transition-delay: 1s; /* delay before fade-in starts */
}
/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  footer */

.copyright-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    color: #FFD700; /* Gold text */
    text-align: center;
    padding-left: 40px;
    font-size: 0.6em;
    transition: transform 0.3s ease-in-out, padding 0.3s ease-in-out;
    z-index: 500; /* Below lightbox (2000), above content */
}

.copyright-footer:hover {
    transform: scale(1.4); /* Subtle expansion */
    padding-left: 40px; /* Slightly lefter */
}


/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  ~index.php */

.landing-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    animation: fadeIn 1s ease-in-out;
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  ~index.php Docs box and Instructions */

.docs-box, .instructions {
    flex: 1 1 30%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    padding: 20px;
    min-width: 300px;
}

.docs-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.docs-photo {
    flex: 1;
    max-width: 200px;
    padding-right: 30px;
    margin-bottom: 15px;
}

.docs-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.docs-photo img:hover {
    transform: scale(1.9);
}

.docs-intro {
    flex: 2;
    padding-left: 20px;
}

.docs-intro h2 {
    margin: 0 0 10px;
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   ~index.php Docs grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px 20px;
}

.docs-grid a {
    display: block;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s, transform 0.3s;
    word-break: break-word;
}

.docs-grid a:hover {
    background: #ffd700;
    transform: scale(1.03);
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   ~index.php Document viewer for view.php */

.document-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.document-page {
    margin-bottom: 20px;
    width: 100%;
}

.page-image {
    width: 100%;
    max-width: 900px;
    max-height: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    object-fit: contain;
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   ~index.php Gallery */

.gallery-wrapper {
    flex: 2 1 60%;
    padding: 20px;
    min-width: 300px;
}

.slideshow-container {
    max-height: 700px;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.slideshow-container img {
    max-height: 700px;
    width: 100%;
    max-width: 1200px;
    border-radius: 10px;
    object-fit: contain;
    opacity: 1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.slideshow-container img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   contribute.php */

.upload-form {
    flex: 2 1 60%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    padding: 20px;
    min-width: 300px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

button {
    background: #ffd700;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    margin-right: 10px;
}

button:hover {
    background: #e6c200;
}

.finish-button {
    background: #004aad;
    color: #fff;
}

.finish-button:hover {
    background: #003880;
}

.back-button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

.back-button:hover {
    background: #e0e0e0;
}

.cancel-button {
    background: #ff4444;
    color: #fff;
}

.cancel-button:hover {
    background: #cc0000;
}

.upload-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.success {
    color: green;
    margin-bottom: 15px;
}

.errors {
    color: red;
    list-style-type: none;
    padding: 0;
    margin-bottom: 15px;
}

.errors li {
    margin-bottom: 5px;
}

.pending-list {
    list-style-type: none;
    padding: 0;
}

.pending-list li {
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

.uploaded-files {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.uploaded-files li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-name {
    flex-grow: 1;
}

.plus-sign {
    font-size: 1.2em;
    color: #ffd700;
    margin-left: 10px;
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  approve_uploads.php*/
.admin-panel h2 {
color: #FFD700; /* Gold text for readability */
}

.admin-panel h3 {
color: #FFD700; /* Gold text for readability */
}

.admin-panel p {
color: #FFD700; /* Gold text for readability */
}

.admin-panel th {
color: #FFD700; /* Gold text for readability */
}

.admin-panel td {
color: #FFD700; /* Gold text for readability */
}


a, button {
    color: #FF0000; /* Red for links and buttons */
    text-decoration: none;
}

a:hover, button:hover {
    color: #FF4500; /* Orange-red hover effect */
}
/*
.documents {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 20px;
}

.documents table {
    border-collapse: collapse;
    flex: 1;/
}

.documents th, .documents td {
    border: 1px solid #FFD700;
    padding: 8px;
    text-align: left;
    color: #FFD700; 
}

.documents h2 {
    border: 1px solid #FFD700;
    padding: 8px;
    text-align: left;
    color: #FFD700; 
}

.documents th {
    background-color: #333;
}
.thumbnail {
    max-width: 200px;
    max-height: 200px;
}


 #pdf-viewer {
    display: none;
    position: fixed;
    top: 20px;
    bottom: 20px;
    left: 30%;
    background: white;
    border: 1px solid #000;
    z-index: 1000;
    overflow-y: auto; 
}

#pdf-canvas {
    width: 100%;
    height: calc(100% - 1px);
}

#pdf-controls {
    text-align: center;
    padding: 10px;
    background: #f2f2f2;
    position: sticky;
    top: 0;
    z-index: 1001;
}

#pdf-prev, #pdf-next, #pdf-close, #zoomInButton, #zoomOutButton {
    background: #004aad;
    color: #ffd700;
    padding: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
}

#pdf-close {
    background: #ff0000;
}

#pdf-prev:hover, #pdf-next:hover, #zoomInButton:hover, #zoomOutButton:hover {
    background: #001662;
}

#pdf-close:hover {
    background: #cc0000;
}

*/
/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   gallery.pdf css */



/* Gallery-specific styles */
.gallery-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.sidebar {
    flex: 0 0 250px;
    padding: 10px;
    border-right: 1px solid #ccc;
}

.sidebar h2, .sidebar label {
    text-align: left;
    color: #FFD700; /* Gold text */
}

.thumbnail-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.thumbnail-grid p {
    text-align: left;
    color: #FFD700; /* Gold text */
}

.thumbnail-gallery {
    position: relative;
    cursor: pointer;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden; /* Ensure content stays within bounds */
    transition: transform 0.3s ease-in-out; /* Adjusted for smoothness */
    box-sizing: border-box;
}

.thumbnail-gallery:hover {
    transform: scale(1.05); /* Subtle hover effect */
}

.thumbnail-gallery img {
    width: 100%;
    height: 100%; /* Fill container */
    object-fit: cover; /* Maintain aspect ratio */
    border: 1px solid #ddd;
    border-radius: 4px;
}

.thumbnail-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 100%;
    padding: 5px;
    text-align: center;
    font-size: 0.85em; /* Slightly smaller for better fit */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh; /* Increased for larger image */
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh; /* Full-quality image */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-form input, .search-form select {
    padding: 8px;
    font-size: 1em;
}

.search-form select {
    max-height: 150px;
    overflow-y: auto;
}

.search-form button {
    padding: 8px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.search-form button:hover {
    background: #0056b3;
}

/*i>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Contact page styles */
.contact-container {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-hero {
    text-align: left;
    margin-bottom: 20px;
    background: url('/images/main/alumni-bg.jpg') center/cover no-repeat;
    padding: 40px 20px;
    border-radius: 8px;
    background-color: rgba(0, 32, 91, 0.7); /* Darker blue overlay */
    color: #FFD700;
}

.contact-hero h1 {
    margin: 0;
    font-size: 2em;
}

.contact-hero p {
    margin: 10px 0 0;
    font-size: 1em;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    animation: fadeIn 1s ease-in-out;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    color: #FFD700;
    font-weight: bold;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.contact-form button:hover {
    background: #0056b3;
}

.contact-form .success {
    color: #28a745;
    font-weight: bold;
}

.contact-form .error {
    color: #dc3545;
    font-weight: bold;
}

.contact-info {
    margin-top: 20px;
    text-align: center;
    color: #FFD700;
}

.contact-info a {
    color: #FFD700;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}


/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>=== DOCUMENTS PAGE === */


.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.doc-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}
.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.doc-preview {
    height: 300px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}
.doc-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.doc-info {
    padding: 18px;
}
.doc-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}
.doc-meta {
    font-size: 0.9em;
    color: #666;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.doc-year {
    background: #ffd700;
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8em;
}
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    overflow: auto;
}
.modal-content {
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.modal-header {
    padding: 15px 20px;
    background: #001662;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close {
    font-size: 1.5em;
    cursor: pointer;
    font-weight: bold;
}
.pdf-viewer {
    height: 80vh;
}
.no-docs {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 1.3em;
}

.header p, .header h1 {
color: #FFD700; /* Gold text for readability */
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> New Terry Doc */
.terry-docs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.terry-doc-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.terry-doc-link:hover {
    color: #003d82;
    text-decoration: underline;
}

.terry-doc-link:last-child {
    border-bottom: none;
}



/*START MEDIA>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   Medium/small screens */

@media (max-width: 768px) {

    .landing-container {
        flex-direction: column;
    }

    .docs-box, .instructions {
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 20px;
    }

    .gallery-wrapper, .upload-form {
        padding: 10px;
    }

    .slideshow-container {
        height: auto;
        padding: 0;
    }

    .slideshow-container img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .document-viewer {
        max-width: 100%;
    }

    .page-image {
        max-width: 100%;
        max-height: 1200px;
    }

    /*MEDIA >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> gallery.php css  */

      .gallery-container {
       flex-direction: column;
   }
   .sidebar {
       border-right: none;
       border-bottom: 1px solid #ccc;
   }
   .thumbnail-grid {
       grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
   }

 /*MEDIA>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  contact.php css */

    .thumbnail-gallery {
        height: 150px; /* Smaller height for mobile */
    }
    .contact-hero {
        padding: 20px;
    }
    .contact-hero h1 {
        font-size: 1.5em;
    }
/*MEDIA>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   documents.php css */

   .copyright-footer {
        font-size: 0.5em;
        padding-left: 10px;
    }
    .copyright-footer:hover {
        padding-left: 20px;
    }    

    .docs-grid { grid-template-columns: 1fr; 
    }

    .doc-preview { height: 250px; 
    }

}
/*END MEDIA*/
/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   max width 480px screens */

@media (max-width: 480px) {

    .slideshow-container {
        height: 250px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav a {
        margin: 5px 0 0 0;
    }

    .docs-box, .instructions, .gallery-wrapper, .upload-form {
        max-width: 100%;
        padding: 15px;
    }

    .upload-buttons {
        flex-direction: column;
        gap: 5px;
    }

    /*new not working stuff*/
    .hamburger {
        display: block;
    }
    .nav-menu {
        display: none;
    }
    .nav-menu.active {
        display: flex;
    }
    .reunion-info {
        margin-left: 10px;
	padding: 10px;
    }
    .reunion-tooltip {
        top: -50px;
        font-size: 0.8em;
    }

}

/* Hamburger menu styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #FFD700; /* Gold, matches nav a:hover */
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100px; /* Below header */
    right: 20px;
    background: #ffffff; /* Matches header */
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 600; /* Above content, below lightbox (1000) */
}

.nav-menu a {
    color: black; /* Matches existing nav a */
    text-decoration: none;
    padding: 5px 10px;
}

.nav-menu a:hover {
    color: #FFD700; /* Matches existing nav a:hover */
}



/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Reunion page styles */
.reunion-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff; /* Matches docs-box, upload-form */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: #333; /* Matches body text */
}

.reunion-container h1 {
    text-align: center;
    font-size: 2em;
    color: black; /* Matches header h2 */
}

.reunion-container h2 {
    font-size: 1.5em;
    margin-top: 20px;
    color: black;
}

.reunion-container ul {
    list-style: none;
    padding: 0;
}

.reunion-container li {
    padding: 5px 0;
}

.reunion-container p {
    margin: 10px 0;
    padding-left: 100px;
}

.reunion-container .register-button {
    display: inline-block;
    padding: 10px 20px;
    background: #ffd700; /* Matches button */
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease-in-out;
}

.reunion-container .register-button:hover {
    background: #e6c200; /* Matches button:hover */
}

