
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins;
}

body {
    background: #f4f7fc;
}

/* HEADER */

.topbar {
    background: #0b2c5f;
    color: white;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
}

.header {
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;

}

.logo img {
    width: 100px;

    height: 100px;

    object-fit: contain;

    background: white;

    padding: 5px;

    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .1);

}

.collegeName h2 {

    font-size: 25px;
    color: #0b2c5f;
    font-weight: 600;
    line-height: 1.3;

}

.collegeName span {
    font-size: 19px;
    color: #666;
    display: block;
    margin-top: 4px;

}

/* Tablet */

@media(max-width:992px) {
    .collegeName h2 {
        font-size: 18px;
    }
}

/* Mobile */

@media(max-width:600px) {

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        width: 60px;
        height: 60px;
    }

    .collegeName h2 {
        font-size: 16px;
    }

    .collegeName span {
        font-size: 13px;
    }

}

/* NAV */
nav{
    background:#c62828;
    position:relative;
    }
    
    nav ul{
    display:flex;
    justify-content:center;
    list-style:none;
    margin:0;
    padding:0;
    }
    
    nav li{
    position:relative;
    }
    
    nav a{
    color:white;
    padding:15px 18px;
    display:block;
    text-decoration:none;
    font-weight:500;
    }
    
    nav li:hover{
    background:#a31515;
    }
    
    /* Dropdown */
    
    .dropdown{
    position:absolute;
    top:100%;
    left:0;
    background:white;
    display:none;
    flex-direction:column;
    min-width:230px;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    z-index: 1;

    }
    
    .dropdown a{
    color:#333;
    border-bottom:1px solid #eee;
    }
    
    .dropdown a:hover{
    background:#f5f5f5;
    color:#c62828;
    }
    
    nav li:hover .dropdown{
    display:flex;
    }
    
    /* Mobile menu button */
    
    .menuToggle{
    display:none;
    color:white;
    font-size:28px;
    padding:10px 15px;
    cursor:pointer;
    }
    
    /* Responsive */
    
    @media(max-width:900px){
    
    .menuToggle{
    display:block;
    }
    
    nav ul{
    flex-direction:column;
    display:none;
    width:100%;
    }
    
    nav ul.active{
    display:flex;
    }
    
    nav li{
    width:100%;
    }
    
    .dropdown{
    position:relative;
    box-shadow:none;
    display:none;
    background:#f8f8f8;
    }
    
    nav li.active .dropdown{
    display:flex;
    }
    
    }
/* SLIDER */

.slider {
    height: 450px;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: 1s;
}

.active {
    opacity: 1;
}

.caption {

    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .6);
    color: white;
    padding: 20px;
    font-size: 28px;
    border-radius: 6px;

}

/* NOTICE SECTION */

.notice-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 50px 5%;
}

.notice {

    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.notice-title {

    margin-bottom: 15px;
    color: #0b2c5f;

}

.notice-container {
    height: 240px;
    overflow: hidden;
    background: #f7f9ff;
    border-radius: 10px;
    padding: 10px;

}

.notice-wrapper {
    animation: scrollNotice 18s linear infinite;
}

.notice-container:hover .notice-wrapper {
    animation-play-state: paused;
}

.notice-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
    align-items: flex-start;

}

.notice-date {

    background: #c62828;
    color: white;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    min-width: 55px;
    font-size: 12px;

}

.notice-date span {

    font-size: 18px;

    font-weight: bold;

    display: block;

}

.notice-text {

    font-size: 14px;

    flex: 1;

}

.new {

    background: #ff9800;

    color: white;

    font-size: 10px;

    padding: 3px 6px;

    border-radius: 4px;

    margin-left: 10px;

}

@keyframes scrollNotice {

    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }

}

/* ABOUT */

.about {

    background: white;

    padding: 25px;

    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);

}

.focus-title{
    text-align:center;
    }
    
    /* Container */
    
    .focus-container{
    width:90%;
    margin:auto;
    display:flex;
    gap:30px;
    padding:40px 0;
    justify-content:center;
    flex-wrap:wrap;
    }
    
    /* Cards */
    
    .focus-card{
    background:white;
    width:320px;
    padding:30px;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transition:.3s;
    }
    
    .focus-card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
    }
    
    /* Heading */
    
    .focus-card h3{
    color:#c62828;
    text-align:center;
    margin-bottom:20px;
    font-weight:500;
    }
    
    /* List */
    
    .focus-card ul{
    list-style:none;
    }
    
    .focus-card ul li{
    padding:10px 0;
    border-bottom:1px solid #eee;
    position:relative;
    padding-left:20px;
    }
    
    .focus-card ul li:last-child{
    border-bottom:none;
    }
    
    .focus-card ul li::before{
    content:"›";
    position:absolute;
    left:0;
    color:#999;
    font-size:18px;
    }
    
    /* Links */
    
    .focus-card ul li a{
    text-decoration:none;
    color:#777;
    font-size:15px;
    transition:.3s;
    }
    
    .focus-card ul li a:hover{
    color:#c62828;
    padding-left:5px;
    }
    
    /* Responsive */
    
    @media(max-width:900px)
    {
    .focus-container{
    flex-direction:column;
    align-items:center;
    }
    
    .focus-card{
    width:90%;
    }
    }
/* TEAM */

.team {

    background: #eef2fb;

    padding: 60px 5%;

}

.team-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 30px;

}

.member h3 {
    margin-bottom: 5px;
}

.member a {
    color: #0b2c5f;
    margin: 0 6px;
    font-size: 18px;
    transition: .3s;
}

.member a:hover {
    color: #c62828;
}

/* IMPORTANT LINKS */

.important {

    padding: 60px 5%;

    background: white;

}

.imp-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 25px;

}

.imp-card {

    background: #f7f9ff;

    padding: 25px;

    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .06);

    transition: .3s;

    text-align: center;

}

.imp-card:hover {

    transform: translateY(-6px);

}

.imp-card i {

    font-size: 28px;

    color: #c62828;

    margin-bottom: 10px;

}

/* FOOTER */

footer {

    background: #0b2c5f;

    color: white;

    padding: 50px 5% 20px;

}

.footer {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 30px;

}

.footer a {

    color: #ddd;

    text-decoration: none;

    display: block;

    margin: 8px 0;

}

.social a {

    font-size: 20px;

    margin-right: 10px;

    color: white;

}

.social i.fab {
    margin: 0;
    color: #ffffff;
}

.bottom {

    text-align: center;

    margin-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, .2);

    padding-top: 15px;

}

.footer h3 {
    margin-bottom: 15px;
}

.footer p {
    margin: 8px 0;
    font-size: 14px;
    color: #ddd;
}

.footer i {
    margin-right: 8px;
    color: #ffcc00;
}

.social a {

    display: inline-block;

    width: 38px;

    height: 38px;

    text-align: center;

    line-height: 38px;

    background: #c62828;

    border-radius: 50%;

    margin-right: 8px;

    transition: .3s;

}

.social a:hover {

    background: #ff9800;

    transform: translateY(-4px);

}

/* MOBILE */

@media(max-width:900px) {

    .notice-section {

        grid-template-columns: 1fr;

    }

    nav ul {

        flex-direction: column;

    }

}
