:root {

    --bg-main: #f8f3ec;
    --bg-header: rgba(255, 252, 248, 0.92);
    --bg-card: rgba(255, 255, 255, 0.85);

    --accent: #6b3f23;
    --accent-soft: #efe0d2;
    --accent-dark: #4b2c18;

    --text-dark: #241c16;
    --text-light: #5a4a3f;
    --text-muted: #9c8e82;

    --shadow-soft: 0 10px 25px rgba(107,63,35,0.08);
    --shadow-medium: 0 25px 60px rgba(107,63,35,0.12);
    --shadow-strong: 0 40px 90px rgba(107,63,35,0.18);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(
        180deg,
        #fbf6f0 0%,
        #f1e7db 100%
    );
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1 { 
    font-size: 35px;
    line-height: 1.2;
}
p {
    color: var(--text-light);
}
h2 { 
    font-size: 22px;
    font-weight: 600;
}
h3 { font-size: 20px; }
h4 { font-size: 16px; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 3px;
    background: var(--accent);
    display: block;
    margin: 10px auto 0;
    border-radius: 10px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 60px;
    background: linear-gradient(
        180deg,
        rgba(228, 216, 200, 0.96) 0%,
        rgba(214, 198, 180, 0.94) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'>\
<filter id='noise'>\
<feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/>\
</filter>\
<rect width='100%' height='100%' filter='url(%23noise)'/>\
</svg>");
}
header.scrolled {
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.logo img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}
.logo h2 {
    font-size: 18px;
    color: #1e1712;
    font-weight: 600;
    white-space: nowrap;
}
.logo p {
    font-size: 12px;
    color: #6b5b4f;
    margin-top: 2px;
}

#menu {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 0 0 auto;
}

#menu li {
    white-space: nowrap;
}

@media (max-width: 900px) {
    header {
        padding: 14px 20px;
    }
    .menu-btn {
        display: flex;
    }
    #menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    max-width: 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 30px 30px 30px;
    gap: 18px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-left: 1px solid rgba(255,255,255,0.35);
    box-shadow: -25px 0 60px rgba(0,0,0,0.25);
    transition: right 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1200;
}
    #menu.active {
        right: 0;
    }
   #menu li,
   #menu a {
    pointer-events: auto;
}
    .nav-link {
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    width: 100%;
    position: relative;
    padding: 6px 0;
}
    .nav-link.active {
        color: var(--accent);
        font-weight: 600;
    }
    .nav-link.active::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 40px;
        height: 3px;
        background: var(--accent);
        border-radius: 3px;
    }
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
    z-index: 900;
}
.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
body.menu-open {
    overflow: hidden;
}
body.menu-open .page-content {
    filter: blur(8px);
    transition: 0.4s ease;
}

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    width: 28px;
    height: 24px;
    z-index: 1500;
}
.menu-btn span {
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    transition: 0.4s ease;
}
.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-link {
    position: relative;
    padding: 6px 4px;
}
.nav-link:hover {
    color: var(--accent);
}
.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}
.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 10px;
}

.hero {
    margin-top: 110px;
    padding: 60px 20px 40px;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 {
    font-size: 30px;     /* smaller */
    font-weight: 600;
    color: var(--accent);
    position: relative;
    padding-bottom: 14px;
}
.hero-description {
    font-size: 15px;     /* smaller */
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 14px;
}

section {
    padding: 70px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.container-large {
    max-width: 1050px;
    margin: auto;
    background: rgba(255,255,255,0.78);
    padding: 35px 40px;   /* reduced */
    border-radius: 20px;  /* smaller */
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    transition: 0.4s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.06);
}
.quick-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: 0.3s ease;
}
.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
    border-color: rgba(107,63,35,0.25);
}
.quick-link-card h3 {
    transition: 0.3s ease;
}
.quick-link-card:hover h3 {
    color: var(--accent);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: 0.4s ease;
}
.gallery-grid img:hover {
    transform: scale(1.04);
}
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 200px;
    }
}
.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}
.department-card h3 {
    margin-bottom: 10px;
}
.department-card ul {
    margin-top: 10px;
}
.department-card li {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}
.student-module {
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 20px;
}
.student-module h4 {
    margin-bottom: 8px;
}
.latest-news-container {
    position: relative;
    height: 340px;
    overflow-y: auto;
    scroll-behavior: smooth;
    border-radius: 18px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 10px 32px rgba(0,0,0,0.05);
    padding: 8px 0;
}
.latest-news-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'>\
<filter id='noise'>\
<feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/>\
</filter>\
<rect width='100%' height='100%' filter='url(%23noise)'/>\
</svg>");
}
.latest-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.latest-news-list li {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 13px;
}
.news-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.news-title {
    font-weight: 500;
    font-size: 14px;
}
.news-date {
    font-size: 11px;
    opacity: 0.65;
}
.news-link:hover .news-title {
    color: var(--accent);
}
.latest-news-list li[data-new="true"] .news-title::after {
    content: " NEW";
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 16px;
    background: rgba(107,63,35,0.12);
    color: var(--accent);
}

.principal-card {
    background: #f4efe9;
    border-radius: 26px;
    padding: 45px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.principal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}
.principal-header img {
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.principal-meta h2 {
    font-size: 20px;
    margin-bottom: 4px;
}
.principal-name-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.principal-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}
.principal-role {
    font-size: 13px;
    color: var(--text-muted);
}
.principal-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-light);
}
.principal-content p {
    margin-bottom: 18px;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.notice-embed {
    position: relative;
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}
.notice-embed:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}
.notice-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.notice-top img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.notice-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}
.notice-category {
    font-size: 11px;
    background: rgba(107,63,35,0.1);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: auto;
}
.notice-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}
.notice-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.notice-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}
.notice-image {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
}
.notice-image img {
    width: 100%;
    border-radius: 12px;
}
.notice-buttons {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.notice-btn {
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #a6784d,
        #8b5e34
    );
    box-shadow: 0 10px 25px rgba(139,94,52,0.35);
    color: white;
    transition: 0.3s ease;
}
.notice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(139,94,52,0.45);
}
.notice-new {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 10px;
    padding: 4px 8px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
}

.faq-item {
    margin-bottom: 14px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s ease;
}
.faq-item:hover {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.faq-question {
    width: 100%;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}
.faq-icon {
    font-size: 20px;
    font-weight: 600;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    font-size: 14px;
    color: var(--text-light);
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 22px 18px 22px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid #ccc;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.btn-primary {
    background: linear-gradient(
    135deg,
    #a6784d,
    #8b5e34
);
box-shadow: 0 10px 25px rgba(139,94,52,0.35);
    color: white;
    border: none;
    border-radius: 14px;
    transition: 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(95,140,255,0.4);
}

.map-container iframe,
.video-embed iframe {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-md);
    border: none;
}

.timeline {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}
.timeline-item {
    margin-bottom: 25px;
    position: relative;
}
.timeline-item::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--accent);
    position: absolute;
    left: -26px;
    top: 5px;
    border-radius: 50%;
}

.site-footer {
    position: relative;
    background: linear-gradient(
        180deg,
        #3e2b1f 0%,
        #2e1f15 100%
    );
    color: #f3e9df;
    padding: 35px 20px 15px;
    margin-top: 80px;
}
.footer-top {
    text-align: center;
    margin-bottom: 20px;
}
.footer-top img {
    display: block;
    margin: 0 auto 12px auto;
    width: 75px;
    height: 75px;
    border-radius: 50%;
}
.footer-top h3 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 4px;
}
.footer-top p {
    font-size: 13px;
    color: rgba(255,240,225,0.75);
}
.footer-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.footer-grid div {
    text-align: left;
}
.footer-grid h4 {
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 600;
    color: #ffffff;
}
.footer-grid a {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: rgba(255,240,225,0.75);
    transition: 0.3s ease;
}
.footer-grid a:hover {
    color: var(--accent-soft);
    transform: translateX(4px);
}
.footer-contact p,
.footer-contact a {
    font-size: 13px;
    margin-bottom: 6px;
    color: rgba(255,240,225,0.75);
}
.footer-map iframe {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    border: none;
    filter: saturate(0.9) contrast(0.95);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,240,225,0.6);
}

.project-credit {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255,240,225,0.5);
}

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    .footer-map {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
    .footer-map iframe {
        height: 170px;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: 0.7s cubic-bezier(.19,1,.22,1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
.slides {
    position: relative;
    height: 350px;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.slide.active {
    opacity: 1;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 28px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s ease;
}
.slider-btn:hover {
    background: rgba(255,255,255,0.4);
}
.prev { left: 15px; }
.next { right: 15px; }

.auto-scroll {
    max-height: 220px;
    overflow-y: auto;
    position: relative;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
}
@media (max-width: 900px) {

    header {
        padding: 16px 20px;
    }

    .menu-btn {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .principal-card {
        padding: 30px;
    }

    .principal-header {
        flex-direction: column;
        text-align: center;
    }

    .principal-name-row {
        justify-content: center;
    }

    .hero h1 {
        font-size: 20px;
    }
}
.cursor-glow {
    position: fixed;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(122,78,45,0.08), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

#imageModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
    z-index: 2000;
}

#imageModal.active {
    opacity: 1;
    pointer-events: auto;
}

#imageModal img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 20px;
}
.shape1,
.shape2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

/* STATS */
.stats-strip {
    position: relative;
    width: 100%;
    padding: 60px 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;

    text-align: center;

    background: linear-gradient(135deg, #cbb9a7, #d9cbbd);

    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stats-strip .stat-number {
    font-size: 40px;
    font-weight: 700;
    color: #4b2e1e;
}

.stats-strip p {
    margin-top: 8px;
    font-size: 14px;
    color: #5f4636;
    font-weight: 500;
}

/* PAGE BG EFFECT */
.page-content {
    position: relative;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(122,78,45,0.08), transparent 70%);
    filter: blur(120px);
    z-index: -1;
}

/* SPINNER */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4b2c18;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}
