 /* Base Styles */
 * {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-family: "Inter", sans-serif;
    font-size: 15px; */
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}



a {
    text-decoration: none;
    color: inherit;
}

:root {
    --primary-color: #4682B4;
    --secondary-color: #97bebf;
    --accent-color: #B0C4DE;
    --dark-color: #2F4F4F;
    --light-color: #F0F8FF;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

/* Header */
.header {
    background: radial-gradient(circle, rgba(175, 238, 238, 0.9) 30%, rgb(79, 140, 189) 80%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 5px; */
    text-align: center;
    border-bottom: 4px solid steelblue;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: fit-content;
}

.header::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 5%;
    width: 90%;
    height: 8px;
    background: linear-gradient(to right, steelblue, teal);
    border-radius: 50%;
}

.college-info {
    text-align: center;
    flex-grow: 1;
}

.college-title {
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    /* Slightly larger for better visibility */
    font-weight: 600;
    /* Bolder for emphasis */
    color: #02203e;
    /* Keeps the deep blue color */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    /* Softer shadow for less strain */

}

.college-info div {
    margin-bottom: 0px;
    padding-bottom: 0px;
}

#ctt {
    font-family: "Meera Inimai", sans-serif;
    letter-spacing: 1px;
    font-weight: 700;
}

.sub-title,
.affiliation {
    font-size: 19px;
    font-weight: bold;
    color: rgb(36, 71, 99);
    text-shadow: 1px 1px 3px white;

}

.centre-code,
.since {
    font-size: 16px;
    font-weight: bold;
    color: #fff;

}

.logo-container {
    text-align: center;
    min-width: 150px;
}

.logo-container img {
    height: 110px;
    max-width: 110%;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Navigation Bar */
.nav-bar {
    background: var(--primary-color);
    text-align: center;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
}

.nav-bar a {
    color: white;
    padding: 10px 15px;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
}

.nav-bar a:hover {
    background: var(--dark-color);
    border-radius: 5px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 100px;
    transform: translateX(-50%) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    min-width: 500px;
    box-shadow: 0px 8px 15px steelblue;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-out;
    z-index: 1000;
}

.submenu a {
    color: black;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 30px;
    border-radius: 8px;
    transition: color 0.3s ease;
    font-weight: 600;
    margin: 5px;
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.95);

}

.submenu a:hover {
    color: steelblue !important;
    background: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.submenu img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.dropdown:hover .submenu {
    visibility: visible;
    opacity: 1;
    top: 100%;
    transform: translateX(-50%) scale(1);
    animation: floatEffect 0.5s ease-in-out;
}

.employee-btn {
    background-color: white;
    color: steelblue !important;
    padding: 100px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
}


@keyframes floatEffect {
    0% {
        transform: translateX(-50%) translateY(10px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

/* Scrolling */
.notifications {
    background: var(--secondary-color);
    color: white;
    padding: 2px;
    overflow: hidden;
    position: relative;

}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll 25s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Main Content */
.content-section {
    display: flex;
    background: #fff;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 280px;
    margin-bottom: 50px;
}

.slideshow-container {
    flex: 2;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 600px; 
    width: 100%; 
}


.slides {
    display: flex;
    width: 400%;
    height: 100%;
    animation: slide 20s infinite;
}

.slide {
    width: 25%;
    position: relative;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Animation */
@keyframes slide {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    25% { transform: translateX(-25%); }
    45% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    70% { transform: translateX(-50%); }
    75% { transform: translateX(-75%); }
    95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

/* Triangle */
.triangle-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.triangle {
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
}

.triangle:hover {
    opacity: 1;
}

.triangle-left {
    border-right: 30px solid rgba(255, 255, 255, 0.8);
    margin-left: 15px;
}

.triangle-right {
    border-left: 30px solid rgba(255, 255, 255, 0.8);
    margin-right: 15px;
}

/* Notice Board */
.notice-section {
    flex: 1;
    margin-left: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.notice-title {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    font-size: 22px;
    text-align: center;
    border-bottom: 3px solid var(--dark-color);
}

.notice-board {
    flex: 1;
    overflow: hidden;
    height: 400px;
    position: relative;
}

.notice-content {
    position: absolute;
    width: 100%;
    animation: scroll-up 30s linear infinite;
}

.notice-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.notice-item:hover {
    background-color: var(--light-color);
    transform: scale(1.02);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.notice-date {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.notice-text {
    font-size: 18px;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* welcome */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

.welcome-principal-container {
    display: flex;
    max-width: 1400px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.welcome-section {
    flex: 1;
    padding-right: 20px;
    text-align: left;
}

.welcome-title {
    background: radial-gradient(circle, white 20%, rgb(58, 121, 172) 90%);
    padding: 5px 10px;
    border-radius: 30px;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    color: #002020;
    font-family: Arial, sans-serif;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
}

.welcome-section p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.principal-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
}

.principal-image img {
    width: 130%;
    max-width: 400px;
    height: 40vh;
    border-radius: 10px;
    border: 3px solid steelblue;
    margin-bottom: 15px;
}

.principal-title {
    font-size: 22px;
    color: rgb(23, 60, 91);
}

.principal-name {
    font-size: 18px;
    font-weight: bold;
    color: #444;
}

.principal-message {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
}

/* Vision & Mission Section */
.vision-mission-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

.vision-section,
.mission-section {
    width: 48%;
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0px 2px 6px steelblue;
    transition: transform 0.3s ease-in-out;
}

.vision-section:hover,
.mission-section:hover {
    transform: scale(1.02);
}

.vision-title,
.mission-title {
    font-size: 24px;
    font-weight: bold;
    color: rgb(23, 64, 97);
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 3px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
}

.vision-section p,
.mission-section p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    text-align: justify;
}

/* Vision & Mission List Style */
.vision-section ul li,
.mission-section ul li {
    list-style: none;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.vision-list li:before,
.mission-list li:before {
    content: "★";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 0 10px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 10px 20px;
    text-align: left;
}

.footer-section h2 {
    font-size: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p,
.footer-section a {
    color: var(--accent-color);
    font-size: 15px;
    margin-bottom: 8px;
    display: block;
}

.footer-section a:hover {
    color: #fff;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    margin: 0 8px;
    font-size: 20px;
    color: var(--accent-color);
    transition: all 0.3s;
}

.social-icons a:hover {
    color: #fff;
    transform: scale(1.2);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--primary-color);
    font-size: 14px;
    color: var(--accent-color);
}

.footer-bottom a {
    color: rgb(238, 188, 49); /* or any color you prefer */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white; /* hover color */
    text-decoration: underline;
}

/* Triangle Button */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .college-title {
        font-size: 24px;
    }

    .sub-title,
    .affiliation {
        font-size: 14px;
    }
    .nav-bar a {
        font-size: 13px;
    }

    .main-content {
        padding-top: 240px;
    }

    .slide img{
        height: 700px;
    }

    .welcome-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 5px;
        align-items: center;
    }

    .logo-container {
        order: 2;
        width: auto;
        min-width: 70px;
        padding: 2px;
    }

    .logo-container img {
        max-height: 55px;
    }

    .college-info {
        order: 2;
        margin: 0;
        padding: 0 5px;
    }

    .college-title {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .sub-title,
    .affiliation {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .centre-code,
    .since {
        font-size: 10px;
        margin-top: 5px;
    }

    .nav-bar {
        gap: 2px;
    }

    .nav-bar a {
        padding: 6px 8px;
        font-size: 17px;
    }

    .main-content {
        padding-top: 0px;
    }

    .content-section {
        margin-top: 300px;
        height: 100vh;
    }

    .welcome-principal-container {
        padding: 15px;
        margin: 10px;
    }

    .welcome-title {
        font-size: 20px;
        padding: 8px 12px;
    }

    .welcome-text {
        font-size: 20px;
        padding: 0 5px;
    }

    .principal-message {
        font-size: 20px;
    }

    .principal-name {
        font-size: 20px;
        font-weight: bolder;
    }

    .principal-title {
        font-size: 30px;
    }

    .principal-image img {
        height: 30vh;
    }

    .scrolling-text {
        font-size: 14px;
    }

    .slideshow-container {
        font-size: 30px;
        padding: 10px;
        flex: 0.70;
    }
    .slide img{
        height: 550px;
    }

    .vision-text {
        font-size: 20px;
    }

    .mission-text {
        font-size: 20px;
    }

    .vision-list li,
    .mission-list li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        padding: 2px;
    }

    .logo-container {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        order: 1;
    }

    .content-section {
        margin-top: 250px;
        height: 80vh;
    }
    .slide img{
        height: 400px;
    }

    .college-info {
        order: 2;
        width: 100%;
        padding-bottom: 10px;
    }

    .college-title {
        font-size: 15px;
    }

    .sub-title,
    .affiliation {
        font-size: 12px;
    }

    .nav-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        order: 3;
    }

    .nav-bar a {
        width: auto;
        padding: 8px 6px;
        font-size: 12px;
        border-bottom: none;
    }

    .main-content {
        padding-top: 0px;
    }

    .submenu {
        max-width: 0px;
        width: 0%;
        padding: 0px;
        margin: 0;
        font-size: 10px;
        background: rgba(255, 255, 255, 0.9);
    }

    .dropdown:hover .submenu {
        flex-direction: column;
        animation: none;

    }

    .submenu a {
        padding: 0px;
        margin: 0px;
        gap: 0px;
        display: block;
        min-width: none;
    }

    .submenu img {
        width: 10px;
        height: 10px;
    }

    .slideshow-container {
        font-size: 15px;
        flex: 0.60;
    }

    .logo-container img {
        max-height: 50px;
    }

    .footer-section {
        min-width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    .footer-section h2 {
        text-align: center;
    }

    .scrolling-text {
        white-space: nowrap;
        animation: scroll 20s linear infinite;
        font-size: 12px;
        padding-left: 100%;
    }

    .notifications {
        padding: 6px 2px;
        overflow: hidden;
    }

    .notice-text {
        font-size: 12px;
    }

    .welcome-title {
        font-size: 15px;
    }

    .welcome-text {
        font-size: 10px;

    }

    .principal-message {
        font-size: 15px;
    }

    .principal-name {
        font-size: 18px;
        font-weight: bolder;
    }

    .principal-title {
        font-size: 25px;
    }

    .principal-image img {
        height: 25vh;
    }

    .vision-text {
        font-size: 12px;
    }

    .mission-text {
        font-size: 12px;
    }

    .vision-list li,
    .mission-list li {
        font-size: 10px;
    }

    #cl {
        position: absolute;
        right: 170px;
        top: 50px;
        display: block;
    }

    #cl img {
        width: 30px;
        height: 30px;
    }

    #cl div {
        margin-top: 0px;
        font-size: 6px;
    }

    #cc {
        position: absolute;
        left: 170px;
        top: 50px;
        display: block;
    }

    #cc img {
        width: 30px;
        height: 30px;
    }

    #cc div {
        margin-top: 0px;
        font-size: 6px;
    }
}

@media screen and (max-width: 426px) {
    .college-title {
        font-size: 12px;
    }

    #cl {
        position: absolute;
        right: 175px;
        top: 20px;
        display: block;
    }

    #cl img {
        width: 30px;
        height: 30px;
    }

    #cl div {
        margin-top: 0px;
        font-size: 8px;
    }

    #cc {
        position: absolute;
        left: 175px;
        top: 20px;
        display: block;
    }

    #cc img {
        width: 30px;
        height: 30px;
    }

    #cc div {
        margin-top: 0px;
        font-size: 8px;
    }

    .sub-title,
    .affiliation {
        font-size: 10px;

    }

    .affiliation {
        padding-bottom: 2px;
    }

    .college-info{
        padding-bottom: 10px;
    }
    .content-section {
        margin-top: 250px;
        height: 60vh;
    }
    .slide img{
        height: 280px;
    }
    .principal-image img {
        height: 20vh;
    }
}


@media screen and (max-width: 400px) {
    .college-title {
        font-size: 12px;
    }

    #cl {
        position: absolute;
        right: 155px;
        top: 37px;
        display: block;
    }

    #cl img {
        width: 30px;
        height: 30px;
    }

    #cl div {
        margin-top: 0px;
        font-size: 6px;
    }

    #cc {
        position: absolute;
        left: 155px;
        top: 37px;
        display: block;
    }

    #cc img {
        width: 30px;
        height: 30px;
    }

    #cc div {
        margin-top: 0px;
        font-size: 6px;
    }
    .content-section {
        margin-top: 250px;
        height: 50vh;
    }
    .slide img{
        height: 250px;
    }
    .principal-image img {
        height: 20vh;
    }
}

@media (max-width: 360px) {
    .header {
        padding: 0px;
        text-align: center;
    }

    .college-title {
        font-size: 10px;
    }

    .content-section {
        margin-top: 250px;
        height: 50vh;
    }

    .logo-container img {
        height: 40px;
        max-width: 40%;

    }

    .sub-title,
    .affiliation {
        font-size: 11px;
    }

    .nav-bar a {
        font-size: 11px;
        padding: 6px 4px;
    }

    .main-content {
        padding-top: 0px;
    }

    .submenu {
        max-width: 0px;
        width: 0%;
        padding: 0px;
        margin: 0;
        font-size: 10px;
        background: rgba(255, 255, 255, 0.9);
    }

    .dropdown:hover .submenu {
        flex-direction: column;
        animation: none;

    }

    .submenu a {
        padding: 0px;
        margin: 0px;
        gap: 0px;
        display: block;
        min-width: none;
    }

    .submenu img {
        width: 10px;
        height: 10px;
    }

    .scrolling-text {
        font-size: 11px;
    }

    .notifications {
        padding: 0%;
    }

    .slideshow-container {
        font-size: 15px;
        flex: 0.60;
    }
    .slide img{
        height: 250px;
    }

    .welcome-title {
        font-size: 15px;
    }

    .welcome-text {
        font-size: 10px;

    }

    .principal-message {
        font-size: 15px;
    }

    .principal-name {
        font-size: 18px;
        font-weight: bolder;
    }

    .principal-title {
        font-size: 25px;
    }

    .principal-image img {
        height: 20vh;
    }

    .vision-text {
        font-size: 12px;
    }

    .mission-text {
        font-size: 12px;
    }

    .vision-list li,
    .mission-list li {
        font-size: 10px;
    }

    #cl {
        position: absolute;
        right: 145px;
        top: 20px;
        display: block;
    }

    #cl img {
        width: 30px;
        height: 30px;
    }

    #cl div {
        margin-top: 0px;
        font-size: 6px;
    }

    #cc {
        position: absolute;
        left: 145px;
        top: 20px;
        display: block;
    }

    #cc img {
        width: 30px;
        height: 30px;
    }

    #cc div {
        margin-top: 0px;
        font-size: 6px;

    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .content-section {
        flex-direction: column;
    }

    .notice-section {
        margin-left: 0;
        margin-top: 20px;
    }

    .logo-container {
        display: flex;
        margin-bottom: 1px;
    }

    .nav-bar {
        width: 100%;
    }

    .nav-bar a {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown {
        position: relative;
        /* Needed for submenu absolute positioning */
    }

    .submenu {
        position: absolute;
        /* Position relative to .dropdown */
        top: 100%;
        /* Show below the parent */
        left: -55px;
        /* Align to left of parent */
        z-index: 999;
        /* Ensure it appears above other elements */

        transform: none;
        animation: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(255, 255, 255, 0.9);
        min-width: 150px;
        /* Optional: Adjust width */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        /* Optional: For better UI */
    }

    .dropdown:hover .submenu {
        display: flex;
        flex-direction: column;
        /* If it’s a vertical list */
        transform: none;
        animation: none;
        
    }

    .dropdown:hover .submenu a{
        padding: 5px;
    }

    .welcome-principal-container {
        flex-direction: column;
    }

    .principal-section {
        max-width: 100%;
        margin-top: 20px;
    }

    .principal-image img {
        width: 100%;
    }

    .vision-mission-container {
        flex-direction: column;
    }

    .vision-section,
    .mission-section {
        width: 100%;
        margin-bottom: 20px;
    }
}