/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #030353;
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Full Section Styles */
.full-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}
.content {
    width: 100%;
    max-width: 500px;
}

/* General Header Styles */
.site-header {
    width: 100%;
    background-color: #030353;
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}
.header-logo {
    width: 50px;
    height: auto;
}
.site-header h1 {
    font-size: 1.6em;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Adjust padding for sections to avoid overlap with the fixed header */
.full-section {
    padding-top: 100px; /* Adjust to ensure content appears below the header */
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .site-header h1 {
        font-size: 1.4em;
    }
    .header-logo {
        width: 40px;
        height: 40px;
    }
}

/* Login Section */
.login-section {
    background-color: #030353;
    color: #ffffff;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-content {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: stretch; /* Ensures no negative space between boxes */
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}
.intro-box, .login-box {
    flex: 1; /* Ensures both boxes take equal space */
    padding: 20px;
    background: linear-gradient(135deg, #1c3a57, #030353);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Ensures both boxes have equal height */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.intro-box:hover, .login-box:hover {
    transform: translateY(-10px); /* Slight elevation on hover */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
}
.intro-box h2, .login-box h2 {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 15px;
}
.intro-box p {
    font-size: 1.1em;
    color: #d0d6db;
    line-height: 1.8; /* Better text spacing */
    flex-grow: 1; /* Ensures the paragraph takes up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify; /* Text will be fully aligned */
}

/* Login Box Styles */
.login-box {
    max-width: 400px;
}
.login-box label {
    display: block;
    margin: 15px 0 5px;
    color: #ffffff;
}
.login-box input {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 1em;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}
.login-box input:focus {
    border: 1px solid #850000;
    box-shadow: 0 0 5px rgba(133, 0, 0, 0.5);
}
.login-box button {
    background-color: #850000;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.login-box button:hover {
    background-color: #a80000;
    transform: translateY(-5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .login-content {
        flex-direction: column;
        gap: 20px;
    }
    .intro-box, .login-box {
        width: 100%;
        min-height: 300px;
    }
}

/* Style for Create Account Link */
.create-account {
    margin-top: 15px;
    font-size: 0.9em;
    text-align: center;
    color: #ffffff;
}
.create-account a {
    color: #a8d1ff;
    text-decoration: none;
    font-weight: bold;
}
.create-account a:hover {
    text-decoration: underline;
    color: #d0e4ff;
}

/* Officers Section */
.officers-section {
    background-color: #ffffff;
    color: #0A2A43;
    display: flex;
    flex-direction: column;
    padding: 20px; /* Same padding as Section 1 */
    margin: 0;
    height: auto; /* Allow height to grow with content */
    box-sizing: border-box;
}

/* Header for Officers Section */
.officers-section h2 {
    color: #850000;
    font-size: 2.2em;
    margin: 0;
    text-align: center;
    padding: 10px 0; /* Adds top and bottom padding */
    line-height: 1.2;
    border-bottom: 1px solid #ddd; /* Light border for separation */
}

/* Scrollable Officer Content */
.officer-departments {
    flex-grow: 1;
    overflow-y: auto; /* Enables vertical scrolling */
    padding-top: 10px; /* Small top padding within content area */
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Department Header */
.department {
    margin-top: 15px;
    padding-top: 5px;
}

.department h3 {
    font-size: 1.5em;
    color: #1a3b63;
    margin: 0;
    padding: 0 10px;
}

/* Officer Container for Grid Layout */
.officer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 officers per row */
    gap: 15px; /* Consistent spacing between officer cards */
    padding: 10px 0;
    box-sizing: border-box;
}

/* Officer Card Styling */
.officer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.officer-card:hover {
    transform: translateY(-3px);
}

.officer-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.officer-details h4 {
    font-size: 1.1em;
    color: #1a3b63;
    margin: 0;
}

.officer-details p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Developers Section */
.developers-section {
    background-color: #850000;
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    margin: 0;
    height: 100vh; /* Full height of the viewport */
    overflow: hidden; /* Prevent any overflow */
}

/* Header for Developers Section */
.developers-section h2 {
    font-size: 2.2em;
    margin-bottom: 30px; /* Increased margin for better spacing */
    text-align: center;
    color: #ffffff;
}

/* Developer Cards Container */
.developer-container {
    display: flex;
    justify-content: space-around; /* Evenly space out the cards */
    gap: 30px; /* Increased gap between cards */
    margin-bottom: 40px; /* Increased bottom margin */
    width: 100%; /* Ensure it takes up full width */
    max-width: 1200px; /* Optional: adjust to fit your design preference */
}

/* Developer Card Styling */
.developer-card {
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    max-width: 200px; /* Control the width of the cards */
    min-width: 180px; /* Prevent the cards from becoming too narrow */
}

.developer-card:hover {
    transform: translateY(-5px);
}

.developer-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.developer-details h3 {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
}

.developer-details p {
    margin: 5px 0 0;
    color: #dddddd;
}

/* Capstone Title */
.capstone-title {
    margin-top: 30px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 50px; /* Increased margin to ensure space before the footer */
}

.capstone-title h2 {
    font-size: 1.8em;
}

.capstone-title span {
    font-weight: bold;
}

/* Footer Section */
.footer {
    background-color: #030353;
    color: #fff;
    text-align: center;
    padding: 10px 0; /* Minimal top and bottom padding */
    width: 100%;
    font-size: 0.9em;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.footer p {
    margin: 3px 0; /* Minimal vertical space between lines */
    font-weight: 500;
}

/* Make the footer stick to the bottom of Section 3 */
.developers-section::after {
    content: "";
    display: block;
    flex-grow: 1; /* Ensures the footer is pushed down */
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.modal-content button {
    margin-top: 10px;
    padding: 5px 15px;
    cursor: pointer;
}

.login-box form div {
    position: relative;
    width: 100%;
}

#togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666; /* Light gray color that's always visible */
    padding: 5px;
    z-index: 10;
    opacity: 0.8; /* Slight transparency for better visibility */
}

#togglePassword:hover {
    color: #030353; /* Your theme color on hover */
    opacity: 1;
}


html, body {
    touch-action: pan-y;
    -ms-touch-action: pan-y;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Additional Mobile-Friendly Media Queries */
@media (max-width: 1024px) {
    .officer-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .developer-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .officer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .developer-container {
        flex-direction: column;
        align-items: center;
    }

    .developer-card {
        width: 100%;
        max-width: 300px;
    }

    .site-header {
        padding: 10px 0;
    }

    .full-section {
        padding-top: 80px;
    }
}

@media (max-width: 576px) {
    .officer-container {
        grid-template-columns: 1fr;
    }

    .officer-card img {
        width: 60px;
        height: 60px;
    }

    .developer-card img {
        width: 100px;
        height: 100px;
    }

    .intro-box h2, .login-box h2 {
        font-size: 1.5em;
    }

    .intro-box p {
        font-size: 1em;
    }

    .officers-section h2 {
        font-size: 1.8em;
    }

    .department h3 {
        font-size: 1.3em;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    .intro-box:hover,
    .login-box:hover,
    .officer-card:hover,
    .developer-card:hover {
        transform: none;
    }

    .login-box button:active {
        background-color: #a80000;
        transform: scale(0.98);
    }
}

/* Responsive Font Sizing */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .site-header h1 {
        font-size: 15px;
    }

    .login-box input,
    .login-box button {
        padding: 20px;
    }

    .create-account {
        font-size: 0.8em;
    }
}


    @media (max-width: 768px) {
        .header-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 8px;
        }
        
        .header-logo {
            width: 40px;
            height: 40px;
            margin: 0;
        }
        
        .site-header h1 {
            margin: 0;
            font-size: 15px;
            line-height: 1;
        }
        
    .site-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }
        
    }
    
    @media (max-width: 450px) {
        .header-content {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            padding: 0 8px;
        }
        
        .header-logo {
            width: 40px;
            height: 40px;
            margin: 0;
        }
        
        .site-header h1 {
            margin: 0;
            font-size: 15px;
            line-height: 1;
        }
        .site-header{
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 15px;
        }
    }
    

/* Responsive adjustments for officers section */
@media (max-width: 1024px) {
    .full-section.officers-section {
        height: auto;
        min-height: 100vh;
        padding: 80px 20px 30px;
    }

    .officer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 15px;
    }

    .officer-card {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .full-section.officers-section {
        padding: 50px 15px 25px;
    }

    .officer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .officer-card {
        padding: 12px;
    }

    .officer-card img {
        width: 65px;
        height: 65px;
    }

    .officer-details h4 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .full-section.officers-section {
        padding: 20px 10px 20px 30px;
    }

    .officer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .officer-card {
        padding: 10px;
    }

    .officer-card img {
        width: 55px;
        height: 55px;
    }
}

/* Responsive adjustments for developers section */
@media (max-width: 1024px) {
    .developers-section {
        height: auto;
        min-height: 100vh;
        padding: 20px 20px 30px;
    }

    .developers-section h2 {
        margin-top: 0;
        padding-top: 0;
    }

    .developer-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 600px;
        margin: 0 auto;
    }

    .developer-card:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .developers-section {
        padding: 15px 15px 25px;
        min-height: calc(80vh);
    }

    .developer-container {
        gap: 20px;
        max-width: 500px;
    }

    .developer-card:nth-child(3) {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .developers-section {
        padding: 10px 10px 20px;
        min-height: calc(80vh);
    }

    .developer-container {
        gap: 15px;
        max-width: 400px;
    }

    .developer-card:nth-child(3) {
        max-width: 90px;
    }
}

@media (max-width: 1024px) {
    .developers-section p {
        text-align: center;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .developer-details p {
        font-size: 0.80em;
        line-height: 1.5;
    }
    .developer-details h3 {
        font-size: 1.2em;
        line-height: 1.5;
    }
    .developers-section h2 {
        font-size: 1.5em;
        line-height: 1.5;
    }
}

@media (max-width: 820px) {
    .developer-details p {
        font-size: 0.60em;
        line-height: 1.4;
        margin: 5px 0 0;
    }
    .developer-details h3 {
        font-size: 1em;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .developer-details p {
        font-size: 1em;
        line-height: 1.3;
    }
    .developer-details h3 {
        font-size: 1em;
        line-height: 1.5;
    }
}


/* Responsive adjustments for login section */
@media (max-width: 1024px) {
    .full-section.login-section {
        height: auto;
        min-height: 100vh;
        padding: 5px 20px 30px;
    }
    .site-header h1 {
        font-size: 17px;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

}

@media (max-width: 415px) {
    .full-section.login-section {
          padding: 20px 15px 10px 20px;
          min-height: calc(80vh);
    }

    .site-header h1 {
        font-size: 14px;
    }

    .header-logo {
        width: 35px;
        height: 35px;
    }
    .site-header{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }
    .login-content {
        flex-direction: column;
        gap: 20px;
    }
    .intro-box{
        margin-top: 50px;
        
    }
    .intro-box, .login-box {
        width: 100%;
        padding: 10px;
        padding-right: 30px;
        margin-left: -9px;

    }

    .intro-box h2, .login-box h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .full-section.login-section {
        padding: 20px 15px 20px 30px;
    }

    .intro-box, .login-box {
        min-height: 100px;
        padding: 15px;
    }

    .intro-box h2, .login-box h2 {
        font-size: 1em;
    }

    .intro-box p {
        font-size: 0.80em;
        line-height: 1.6;
    }

    .login-box input {
        padding: 10px;
        font-size: 0.80em;
    }

    .login-box button {
        padding: 10px;
        font-size: 0.95em;
    }
}


@media (max-width:415) {
    .intro-box, .login-box {
        min-height: 150px;
    }
    
}
/* iPad Mini Specific Styles */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) {
    /* Header Adjustments */
    .site-header {
        padding: 15px 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .header-logo {
        width: 45px;
        height: 45px;
    }

    .site-header h1 {
        font-size: 1.2em;
    }

    /* Login Section */
    .login-section {
        min-height: 80vh;
        padding: 80px 30px;
    }

    .login-content {
        flex-direction: row;
        gap: 25px;
        max-width: 90%;
    }

    .intro-box, .login-box {
        padding: 25px;
        min-height: 90px;
    }

    /* Officers Section */
    .officers-section {
        padding: 60px 30px;
    }

    .officer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .officer-card {
        padding: 15px;
    }

    .officer-card img {
        width: 80px;
        height: 80px;
    }

    /* Developers Section */
    .developers-section {
        padding: 60px 30px;
    }

    .developer-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 90%;
    }

    .developer-card {
        max-width: none;
    }

    .developer-card img {
        width: 100px;
        height: 100px;
    }

    .developer-details h3 {
        font-size: 1.1em;
    }

    .developer-details p {
        font-size: 0.9em;
    }
}

/* iPad Mini Landscape Orientation */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (orientation: landscape) {
    .login-content {
        max-width: 80%;
    }

    .officer-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .developer-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 80%;
    }
}

/* iPad Mini Portrait Orientation */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (orientation: portrait) {
    .login-content {
        max-width: 95%;
    }

    .officer-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .developer-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 90%;
    }
}