body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f8fb;
    color: #222;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ensures full screen height */
}

.main-header {
    background: linear-gradient(90deg, #054375 0%, #085785 100%);
    color: #fff;
    padding: 5px 0 10px 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
    /* position: fixed; */
    /* z-index: 100; */
    width: 100%;
    top: 0;
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 20% 0 20%;
}

.logo.iitb-logo {
    height: 130px;
    width: auto;
}

.logo.dept-logo {
    height: 48px;
    width: auto;
}

.vertical-divider {
    width: 2px;
    height: 56px;
    background: linear-gradient(180deg, #fff 0%, #b3c6e0 100%);
    margin: 0 28px;
    border-radius: 1px;
}

.dept-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 24px;
}

.dept-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
}

.institute-name {
    font-size: 1rem;
    color: #e0e8f0;
    margin-top: 3px;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.11);
}

.page-title {
    max-width: 800px;
    margin: 36px auto 18px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
    padding: 28px 28px 14px 28px;
    text-align: center;
}

.page-title h1 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #013366;
}
.about {
    max-width: 1100px;
    margin: 40px auto; /* More breathing room top and bottom */
    padding: 0 20px;   /* Gentle horizontal padding for small screens */
    line-height: 1.6;  /* Better readability for text */
}

.about h2 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1d1c1c;       /* Softer than pure black */
    border-bottom: 2px solid #eee; /* Subtle separator */
    padding-bottom: 0.5rem;
}

.about p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem; /* Slightly smaller for body text */
    font-weight: 400;
    color: #252525;        /* Slightly softer for comfortable reading */
}


.btn-grp{
    display: flex;
    gap: 3rem;
}

.btn{
    display: inline-block;
    padding: 1rem 3rem;
    background-color: #ffffff;
    text-decoration: none;
    box-shadow: 0 0 25px transparent; 
    border: 2px solid #000000;
    font-size: 1rem;
    color: #000000;
    font-weight: 400;
    transition: 0.3s ease-in-out;
}

.btn:hover{
    transform: scale(1.05);
    background-color: #007bff;
    color:rgb(0, 0, 0);
}
.btn-grp a:nth-of-type(2){
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    text-decoration: none;
    border: 2px solid #000000;
    box-shadow: 0 0 25px transparent;
}

.btn-grp a:nth-of-type(2):hover{
    transform: scale(1.05);
    background-color: #007bff;
    color:rgb(0, 0, 0);
}

/* Styling for open.php*/
.openticket {
    max-width: 1100px;
    margin: 20px auto 20px auto;
    padding-left: 0;
}

.openticket h2{
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    padding-bottom: 1rem;
    align-items: left;
}

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

.ticket-form label {
    font-weight: bold;
    color: #333;
}

.ticket-form label span {
    color: red;
}

select {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.ticket-form input[type="text"],
.ticket-form textarea,
.ticket-form input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
}

.ticket-form button {
    background-color: #1a237e;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.ticket-form button:hover {
    background-color: #0d1b5c;
}
/* Admin login styling */

.login-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 90%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #004494;
}

@media (max-width: 768px) {
    .about h2 {
        font-size: 1.75rem;
    }
    .about p {
        font-size: 1rem;
    }
}

@media (max-width: 1000px) {
    .main-header {
        position: static; /* Header scrolls with the page on mobile */
        padding: 16px 10px;
        flex-direction: column;
        height: auto;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .logo-container {
        padding: 6px;
        margin-bottom: 8px;
    }

    .logo.iitb-logo {
        height: 48px;
    }

    .logo.dept-logo {
        height: 48px;
    }

    .vertical-divider {
        display: none;
    }

    .dept-name {
        margin-left: 0;
        text-align: center;
        white-space: normal;
        margin-bottom: 8px;
    }

    .dept-title {
        font-size: 1.2rem;
    }

    .institute-name {
        font-size: 1rem;
    }
    .page-title h1 {
        font-size: 1rem;
    }

    .about {
        margin-top: 0px;
        padding: 35px;
    }
}
.main-footer {
    background: linear-gradient(90deg, #054375 0%, #085785 100%);
    color: #e0e8f0;
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
    margin-top: auto; /* push footer to bottom in flex layout */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);

    /* New: make footer stick to bottom when content is short */
    position: relative;
    bottom: 0;
    width: 100%;
}

.main-footer p {
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

