/* Color Palette */
:root {
    --navy: #002347;
    --yellow: #FFD200;
    --sky: #6A91D1;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
}

/* --- Navigation Styles --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--yellow);
    padding: 10px 5%;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-badge {
    height: 50px;
    width: 50px;
    border-radius: 50%; /* Makes logo circular */
    object-fit: cover;
    background: white;
}

.school-name {
    font-weight: bold;
    color: var(--navy);
    font-size: 1.2rem;
}

.utility-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-store {
    background: var(--navy);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.main-nav {
    background-color: var(--navy);
    padding: 15px 5%;
    display: flex;
    justify-content: flex-end; /* Pushes main links to the right */
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
}





/* Header Styles (Exact match to screenshot) */
header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-logo { height: 40px; border-radius: 50%; }
.school-name { font-weight: bold; color: var(--navy); font-size: 1.2rem; }

.utility-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
}

.fray-btn {
    background: var(--navy);
    padding: 8px 15px;
    border-radius: 5px;
}

.main-nav {
    background: var(--navy);
    padding: 15px 0;
    text-align: center;
}

.main-nav a {
    color: var(--white);
    margin: 0 20px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--yellow);
}

.about-hero{
    background: linear-gradient(rgba(0, 45, 98, 0.8), rgba(0, 45, 98, 0.8)), 
                url('https://images.unsplash.com/photo-1523050853064-9d58ef1bb724?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--yellow);  
}

.hero-content h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    animation: slideDown 0.8s ease;
}

.container {
    max-width: 1000px;
    margin: -50px auto 50px;
    padding: 0 20px;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.block{
    animation: scrolling linear;  
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}
@keyframes scrolling{
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}
/* Card Hover Effects */
.card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.8s ease forwards;
    position: relative;
    border-left: 5px solid var(--yellow);    
}

.card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0,35,71,0.2);
}
.card p {
  text-align: justify;
  }
.icon-wrap {
    width: 50px;
    height: 50px;
    background: var(--sky);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: transform 0.6s;
}

.card:hover .icon-wrap {
    transform: rotateY(180deg);
    background: var(--yellow);
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--yellow);
}


/*Grid Layout for Mission, Vision,..*/
.grid-layout{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Team Grid (3 per row) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.img-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 280px;
    border: 3px solid transparent;
    transition: 0.3s;
}

.img-box:hover {
    border-color: var(--yellow);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.img-box:hover img {
    transform: scale(1.1);
    filter: brightness(70%);
}

.caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: var(--navy);
    color: var(--yellow);
    padding: 10px;
    text-align: center;
    transition: 0.4s;
    font-weight: bold;
}

.img-box:hover .caption {
    bottom: 0;
}

/* Footer Styling */
.main-footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 20px 20px 20px;
    margin-top: 50px;
    border-top: 5px solid var(--yellow);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-div h3, .footer-div h4 {
    color: var(--yellow);
    margin-bottom: 20px;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    width: 50px;
    height: auto;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.footer-div p {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #cbd5e0;
}

/* Quick Links Styling */
.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links ul li {
    margin-bottom: 12px;
}

.quick-links ul li a {
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-links ul li a:hover {
    color: var(--yellow);
    padding-left: 8px;
}

/* Social Grid Styling */
.social-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-item {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-item:hover {
    color: var(--sky-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo-area {
        justify-content: center;
    }
    .quick-links ul li a, .social-item {
        justify-content: center;
    }
    .team-grid{
        grid-template-columns: 1fr;
    }    
    .grid-layout{
        grid-template-columns: 1fr;
    }    
}