/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3a7a;
    --secondary-color: #e6f0fa;
    --accent-color: #275492;
    --text-color: #333;
    --light-text: #fff;
    --card-bg: #f0f0f0;
    --card-border: #ddd;
    --gradient-start: rgba(19, 106, 179, 1);
    --gradient-end: rgba(48, 12, 133, 1);
    --faculty-card-bg: rgb(82, 127, 147);
    --quick-link-bg: #8B8878;
    --quick-link-hover: #2a476b;
    --heading-color: #1a237e;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

}


/* Hero section */
.hero {
    background-image: url('https://ik.imagekit.io/y8vbhvt7s/college%20data/photos/photos/civilbanner.jpg?updatedAt=1746962641555');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;

}

.hero-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
    max-width: 90%;
    transition: all 0.5s ease-in-out;
}

.hero-content:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

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

/* Main content */
main {
    padding: 2rem 0;
}

.about-section {
    margin-bottom: 2rem;
    margin-top: 40px;
}

.about-describe {
    text-align: justify;
    text-justify: inter-word;
    padding: 0 20px;
    line-height: 1.8;
}

/* Heading container */
.heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0 30px;
}

.line {
    width: 80px;
    height: 4px;
    background-color: rgb(130, 132, 13);
    margin: 0 15px;
    animation: fadeIn 1.5s ease-in-out;
}

.heading-box {
    color: var(--heading-color);
    padding: 6px 20px;
    font-size: 2rem;
    font-weight: 800;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 1s ease-in-out forwards;
    text-align: center;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        width: 0;
    }

    to {
        opacity: 1;
        width: 80px;
    }
}

/* HOD Desk */
.hod-desk-container {
    width: 1400px;
    justify-self: center;
    padding: 20px;
}

.hod-profile {
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.hod-info {
    display: flex;
    flex-direction: row;
}

.hod-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 20px;
}

.hod-photo {
    width: 250px;
    height: 300px;
    border-radius: 5px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hod-details {
    text-align: center;
    width: 100%;
}

.hod-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.hod-title {
    font-weight: 800;
    margin-bottom: 5px;
}

.hod-qualifications {
    font-size: 1rem;
    margin-bottom: 5px;
}

.hod-experience {
    font-size: 0.9rem;
}

.hod-message {
    flex: 1;
    padding: 20px;
}

.message-title {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
}

.message-quote {
    font-style: italic;
    color: var(--primary-color);
    padding: 10px 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 15px;
}

.message-content p {
    margin-bottom: 15px;
}

.contact-info {
    margin-top: 20px;
    border-top: 1px solid var(--card-border);
    padding-top: 15px;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Faculty section */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1500px;
    margin: 0 auto;
}

.faculty-card {
    background-color: var(--faculty-card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.faculty-image {
    width: 100%;
    height: 350px;
}

.faculty-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.faculty-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.faculty-details p {
    margin: 3px 0;
    font-size: 0.9em;
}

/* Featured courses */
.courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin: 20px 0;
}

.course {
    background-color: var(--accent-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.course:hover {
    background-color: rgb(24, 12, 113);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.course a {
    text-decoration: none;
    color: var(--light-text);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Quick links */
.quick-links-container {
    max-width: 1200px;
    margin: 0 auto;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.Q-link {
    background-color: var(--quick-link-bg);
    color: white;
    text-decoration: none;
    padding: 1.5rem 1rem;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.Q-link:hover {
    transform: translateY(-5px);
    background-color: var(--quick-link-hover);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Responsive styles */
@media (max-width: 1200px) {

    .heading-box {
        font-size: 1.8rem;
    }

    .line {
        width: 60px;
    }
}

@media (max-width: 992px) {
    .hod-info {
        flex-direction: column;
    }

    .hod-left {
        width: 100%;
    }

    .hod-message {
        width: 100%;
    }

    .heading-box {
        font-size: 1.6rem;
    }

    .line {
        width: 50px;
    }
}

@media (max-width: 768px) {

    .hero {
        height: 300px;
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .heading-box {
        font-size: 1.4rem;
    }

    .line {
        width: 40px;
    }

    .hod-desk-container {
        width: 100%;
    }

    .hod-photo {
        width: 150px;
        height: 150px;
    }

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

    .faculty-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 250px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .heading-box {
        font-size: 1.2rem;
        padding: 5px 10px;
    }

    .line {
        width: 30px;
        height: 3px;
    }

    .hod-desk-container {
        padding: 10px;
    }

    .hod-photo {
        width: 120px;
        height: 120px;
    }

    .hod-name {
        font-size: 1.3rem;
    }

    .message-quote {
        padding-left: 10px;
    }

    .faculty-image {
        height: 350px;
    }

    .course {
        padding: 1rem;
    }

    .footer {
        padding: 30px 15px;
    }
}


/* Mission and Vision */

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px 20px;
    gap: 30px;
}

.box {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.box:hover {
    transform: translateY(-10px);
}

.mission {
    border-left: 5px solid #005aa7;
}

.vision {
    border-left: 5px solid #00c6fb;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.mission-container {
    text-align: center;
}

.mission-container img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
}

.mission-container p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}








/* PO POE AND POS SECTION */


.po-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.po-card {
    background-color: #422cd6;
    border-radius: 35px;
    padding: 10px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 500px;
}

.po-card-title {
    color: #ffffff;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.po-card-list {
    background-color: white;
    border-radius: 20px;
    padding: 20px 20px 20px 40px;
    flex-grow: 1;
    list-style-position: outside;
}

.po-card-list li {
    margin-bottom: 15px;
    color: #000;
    line-height: 1.5;
}

.read-more-btn {
    background-color: white;
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    margin-top: 20px;
    align-self: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.arrow {
    color: #FF0000;
    margin-left: 5px;
    font-size: 20px;
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .po-cards-container {
        gap: 15px;
    }

    .po-card {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .po-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .po-card {
        max-width: 100%;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .po-card {
        padding: 20px;
    }

    .po-card-title {
        font-size: 20px;
    }

    .po-card-list {
        padding: 15px 15px 15px 30px;
    }
}