:root {
    --cyber-900: #0a0a0a;
    --cyber-800: #121212;
    --cyber-700: #1a1a1a;
    --matrix-500: #00d166;
    --matrix-400: #00e472;
    --matrix-600: #00b359;
    --matrix-300: #a0ffd0;
    --tech-blue: #0095da;
    --tech-purple: #8a2be2;
    --tech-cyan: #00ffff;
    --tech-gray: #e0e0e0;
    --primary-color: #00f0ff;
    --secondary-color: #6e00ff;
    --cyber-green: #00d166;
    --dark-bg: #0a0a14;
    --card-bg: #121220;
    --text-color: #e0e0e0;
    --highlight: rgba(0, 240, 255, 0.1);
    --yellow-accent: #F3E500;
}

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

html,
body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-weight: 400;
    color: var(--tech-gray);
    background-color: var(--cyber-900);
    position: relative;
}

body {
    min-height: 100vh;
    display: flex;
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 50px;
    background-image:
        radial-gradient(circle at center, rgba(0, 209, 102, 0.05) 0%, transparent 80%),
        linear-gradient(to right, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='%2300d166' fill-opacity='0.05'/%3E%3C/svg%3E");
    background-size: cover, cover, 20px 20px;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 209, 102, 0.05) 0px,
            rgba(0, 209, 102, 0.05) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
.font-press-start {
    font-family: 'Press Start 2P', cursive;
}

.font-russo-one {
    font-family: 'Russo One', sans-serif;
}

a,
u {
    text-decoration: none;
}

.matrix-text {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 228, 114, 0.5);
}

.direction-text {
    color: #b3ffe0;
}

.quote-text {
    font-weight: 600;
    color: #d1f7e9;
}

.edu-text {
    font-weight: 600;
    color: #ffffff;
}

.latin-text {
    font-weight: 700;
    color: #00e472;
}

.department-text {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 16px;
}

/* Animations */
@keyframes wordFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 228, 114, 0.3);
    }
    14% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(0, 228, 114, 0.5);
    }
    28% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 228, 114, 0.3);
    }
    42% {
        transform: scale(1.3);
        box-shadow: 0 0 25px rgba(0, 228, 114, 0.6);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 228, 114, 0.3);
    }
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px #a2ff9e);
    }
    to {
        filter: drop-shadow(0 0 15px #a2ff9e);
    }
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 5px rgba(0, 228, 114, 0.5);
    }
    to {
        text-shadow: 0 0 15px rgba(0, 228, 114, 0.8),
                     0 0 20px rgba(0, 228, 114, 0.6);
    }
}

/* Layout Components */
.main-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 16px;
    position: relative;
    z-index: 10;
}

.background-words {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: -100;
    overflow: hidden;
}

.words-side {
    width: 30%;
    height: 100%;
    position: relative;
}

.word-column {
    color: rgba(0, 228, 114, 0.7);
    text-shadow: 0 0 5px rgba(0, 228, 114, 0.5);
    opacity: 0;
    animation: wordFall linear infinite;
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    position: absolute;
    will-change: transform;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    line-height: 1.8;
    user-select: none;
    font-size: 16px;
}

/* Header Section */
.name-304-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}

.name-304 {
    text-align: center;
    font-size: 30px;
    font-family: 'Russo One';
    font-weight: 200;
    color: #d5ffd4;
    animation: neonGlow 1.5s ease-in-out infinite alternate;
}

.logo-container-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 80px;
}

.logo-container {
    width: 208px;
    height: 208px;
    background: linear-gradient(to bottom right, var(--matrix-600), #000);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 209, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--matrix-500);
    animation: heartBeat 1.5s ease-in-out infinite;
    opacity: 0.1;
}

.logo-svg {
    width: 75%;
    height: 75%;
    color: rgba(0, 209, 102, 0.3);
}

.main-heading {
    text-align: center;
    font-size: 20px;
    margin: 80px 0 120px;
    font-family: 'Press Start 2P', cursive;
    animation: neonGlow 1.5s ease-in-out infinite alternate;
}


.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    margin: 0 auto 128px;
    justify-items: center;
    gap: 20px;
}

.cyber-card, .inf-cyber-card {
    background: linear-gradient(145deg, var(--cyber-800), #0e0e0e);
    border: 1px solid rgba(0, 209, 102, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 16px;
    width: 90%;
    text-decoration: none;
    margin: 0;
}

.cyber-card:hover {
    border-color: rgba(0, 228, 114, 0.4);
    box-shadow: 0 0 20px rgba(0, 228, 114, 0.3);
    transform: translateY(-5px);
}

.inf-cyber-card {
    background: linear-gradient(145deg, var(--cyber-800), #12100B);
    border: 1px solid var(--yellow-accent);
    max-width: 90%;
}

.inf-cyber-card:hover {
    border-color: #00c78b;
    box-shadow: 0 0 50px #69e900;
    transform: translateY(-5px);
}

.card-header, .inf-card-header {
    height: 64px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 209, 102, 0.3);
}

.card-header {
    background: linear-gradient(to left, #00d166, #021b12);
}

.inf-card-header {
    background: linear-gradient(217deg, var(--yellow-accent), rgba(255, 0, 0, 0) 70.71%),
                linear-gradient(127deg, #00c78b, rgba(0, 255, 0, 0) 70.71%),
                linear-gradient(336deg, #69e900, rgba(0, 0, 255, 0) 70.71%);
    box-shadow: 0 0 15px #00c78b;
}

.card-code, .inf-card-code {
    color: #ffffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
}

.inf-card-code {
    font-size: 14px;
}

.binary, .inf-binary {
    display: none;
}

.card-header:hover .decimal,
.inf-card-header:hover .inf-decimal {
    display: none;
}

.card-header:hover .binary,
.inf-card-header:hover .inf-binary {
    display: inline;
}

.card-title, .inf-card-title {
    font-size: 0.6rem;
    font-weight: 400;
    color: #d8e4e2;
    margin-bottom: 8px;
    font-family: 'Russo One';
}

.inf-card-title {
    font-size: 18px;
    color: #ffffff;
}

.card-subtitle, .inf-card-subtitle {
    font-size: 14px;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    color: rgb(184, 184, 184);
}

.inf-card-subtitle {
    color: #a2ff9e;
}

.inf-card-new-subtitle {
    font-size: 1.2rem;
    font-family: 'Russo One';
    color: var(--yellow-accent);
    justify-self: center;
}


.education-info {
    margin-top: 20px;
    border-top: 1px solid rgba(0, 209, 102, 0.2);
    padding-top: 16px;
}

.category-label {
    font-family: 'Russo One';
    font-weight: 200;
    position: relative;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(110, 0, 255, 0.1));
    border-radius: 4px;
    overflow: hidden;
    border-left: 2px solid var(--primary-color);
}

.category-value {
    font-family: 'Russo One';
    font-weight: 200;
    font-size: 1rem;
    font-weight: 100;
    margin-bottom: 16px;
    color: rgb(229, 240, 245);
    position: relative;
    padding-left: 12px;
}

.category-block {
    display: block;
    height: 170px;
    max-width: 500px;
}


.image-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 80px auto 80px;
    justify-content: center;
}

.image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    max-width: 288px;
    border: 1px solid rgba(0, 209, 102, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.card-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 10;
}

.card-label {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-family: 'Russo One';
    font-weight: 200;
}

.image-card:hover .card-bg {
    transform: scale(1.05);
}

.image-card:hover .card-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}


.about-section {
    max-width: 896px;
    margin: 0 auto 64px;
    padding: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--matrix-400);
    margin-bottom: 16px;
    font-family: 'Russo One';
}

.department-text {
    font-size: 1.1rem;
}

.matrix-grid {
    background-image:
        linear-gradient(rgba(0, 209, 102, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 209, 102, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 16px;
    border-radius: 4px;
}


.director-section {
    max-width: 896px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 80px;
}

.director-subtitle {
    font-size: 30px;
    font-family: 'Russo One';
    font-weight: 300;
    margin-top: -20px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.director-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.director-photo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background-image: url("../img/KimRV-official2.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid white;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
    margin-bottom: 24px;
}

.director-photo:hover {
    transform: scale(1.05);
}

.director-name {
    font-size: 24px;
    color: var(--matrix-400);
    font-family: 'Press Start 2P', cursive;
    margin-bottom: 12px;
}

.director-position {
    font-size: 20px;
    font-family: 'Russo One';
    font-weight: 200;
    margin-bottom: 20px;
}

.director-description {
    font-size: 16px;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    margin-bottom: 32px;
    max-width: 600px;
}

.director-button {
    padding: 8px 24px;
    background: linear-gradient(to right, var(--matrix-700), var(--matrix-900));
    color: #ffffff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 209, 102, 0.3);
    transition: all 0.3s ease;
    font-family: 'Russo One';
    font-size: 16px;
    font-weight: 300;
}

.director-button:hover {
    background: linear-gradient(to left, rgb(89, 0, 255), rgb(29, 145, 106));
    background-color: rgb(136, 72, 255);
    box-shadow: 0 0 40px rgba(133, 255, 219, 0.637);
}


.tech-cards-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 100px;
    padding: 0 16px;
}

.tech-card {
    background: linear-gradient(145deg, var(--cyber-800), var(--cyber-900));
    border: 1px solid rgba(0, 209, 102, 0.3);
    box-shadow: 0 4px 15px rgba(0, 209, 102, 0.2);
    transition: all 0.3s ease;
    border-radius: 16px;
    padding: 32px;
}

.tech-card-title {
    font-family: 'Russo One';
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.tech-card-text {
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 16px;
    color: var(--tech-gray);
    line-height: 1.6;
    margin-bottom: 8px;
}

.tech-card-text a {
    color: var(--matrix-400);
    text-decoration: none;
}

.tech-card-text a:hover {
    text-decoration: underline;
}

.our-friends-header {
    text-align: center;
    font-size: 2rem;
    margin: 30px 0 60px;
    font-family: 'Press Start 2P', cursive;
    animation: neonGlow 1.5s ease-in-out infinite alternate;
    color: rgb(204, 255, 234);
    text-shadow: 0 0 10px rgba(0, 255, 64, 0.336);
}

.friends-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 80px;
    padding: 0 16px;
    box-sizing: border-box;
}

.friend-block {
    cursor: pointer;
    position: relative;
    background: rgba(0, 33, 16, 0.612);
    border: 1px solid rgba(0, 255, 225, 0.3);
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    justify-content: center;
}

.friend-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 255, 140, 0.4);
    border-color: rgba(0, 255, 204, 0.7);
}

.friend-corner-decoration {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: #00ff55;
    border-style: solid;
    border-width: 0;
}

.f-top-left {
    top: 0;
    left: 0;
    border-top-width: 2px;
    border-left-width: 2px;
}

.f-bottom-right {
    bottom: 0;
    right: 0;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.friend-tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.5;
    pointer-events: none;
}

.friend-header {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.friend-logo, .gray-friend-logo {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 204, 0.863);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 140, 0.4);
    flex-shrink: 0;
}

.friend-logo {
    background: rgb(255, 255, 255);
}

.gray-friend-logo {
    background: rgba(88, 88, 88, 0.445);
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.friend-logo img, .gray-friend-logo img {
    width: 100%;
    height: auto;
    padding: 12px;
    object-fit: contain;
}

.friend-logo:hover, .gray-friend-logo:hover {
    transform: scale(1.05);
    border-color: #00ffcc;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.5);
}

.friend-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.friend-title {
    font-family: 'Russo One';
    font-size: 0.85rem;
    color: #abefc0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(96, 249, 190, 0.4);
    margin-bottom: 6px;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.friend-description {
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    color: #e0e0e0;
    line-height: 1.2;
    text-align: center;
    display: none;
}


.map-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding: 0 16px;
    margin-bottom: 64px;
}

.map-card {
    background: linear-gradient(45deg, #021b12, #5a9c4d);
    border: 1px solid rgba(0, 209, 102, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 768px;
}

.map-header {
    padding: 12px 16px;
}

.map-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
    animation: neonGlow 1.5s ease-in-out infinite alternate;
    color: white;
}

.map-address {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    text-align: center;
    color: var(--tech-gray);
}

.map-iframe-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 300px;
}

.map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 16px 16px;
}


.logo-particle {
    position: fixed;
    width: 60px;
    height: 60px;
    pointer-events: none;
    opacity: 0;
    transition: all 6s ease-out;
    animation: glow 2s infinite alternate;
}

.logo-particle svg {
    width: 100%;
    height: 100%;
    fill: #d5ffd4;
}

@media (min-width: 1024px) {
    .name-304 {
        font-size: 30px;
    }
    .cards-grid {
        grid-template-columns: repeat(3, auto);
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .main-container {
        padding: 0 60px 0 60px;
    }

    .image-cards-grid {
        justify-content: center;
        justify-items: center;
    }

    .category-block {
        height: 120x;
    }
    .category-value {
        font-size: 0.8rem;
    }
    .cyber-card {
        max-height: fit-content;
    }


    .friends-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-bottom: 60px;
    }
    
    .friend-block {
        padding: 12px;
        min-height: 130px;
    }
    
    .friend-logo, .gray-friend-logo {
        width: 60px;
        height: 60px;
    }
    
    .friend-logo img, .gray-friend-logo img {
        padding: 10px;
    }
    
    .friend-title {
        font-size: 0.8rem;
    }
    
    .our-friends-header {
        font-size: 1.5rem;
        margin: 20px 0 40px;
    }
}

@media (max-width: 768px) {
    .our-friends-header {
        font-size: 1.2rem;
        margin: 15px 0 30px;
        padding: 0 16px;
    }

    .friends-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 50px;
        padding: 0 12px;
    }
    
    .friend-block {
        padding: 10px;
        min-height: 120px;
    }
    
    .friend-header {
        gap: 8px;
    }
    
    .friend-logo, .gray-friend-logo {
        width: 50px;
        height: 50px;
    }
    
    .friend-logo img, .gray-friend-logo img {
        padding: 8px;
    }
    
    .friend-title {
        font-size: 0.75rem;
        margin-bottom: 4px;
        letter-spacing: 0.3px;
        line-height: 1.1;
    }
    
    .friend-corner-decoration {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    body {
        margin-top: 40px;
        padding: 10px 0 30px;
        overflow-x: hidden;
        width: 100%;
    }

    .background-words {
        display: none;
    }

    .main-container {
        padding: 16px 8px;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .name-304-container {
        margin-top: 15px;
    }

    .name-304 {
        font-size: 1.2rem;
        padding: 0 10px;
    }

    .logo-container-wrapper {
        margin-top: 40px;
    }

    .logo-container {
        width: 150px;
        height: 150px;
    }

    .main-heading {
        font-size: 0.9rem;
        margin: 40px 0 60px;
        padding: 0 10px;
        line-height: 1.4;
    }


    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0 auto 60px;
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
    }

    .cyber-card, .inf-cyber-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .image-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 40px auto 40px;
        padding: 0 10px;
        max-width: 100%;
    }

    .image-card {
        max-width: 100%;
        aspect-ratio: 1/1;
    }

    .card-label {
        font-size: 12px;
        padding: 0 5px;
    }

    .director-section {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .director-subtitle {
        font-size: 1.3rem;
        margin-top: -10px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .director-photo {
        width: 250px;
        height: 250px;
        margin-bottom: 20px;
    }

    .director-name {
        font-size: 0.8rem;
        margin-bottom: 8px;
        padding: 0 10px;
    }

    .director-position {
        font-size: 0.9rem;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .director-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
        padding: 0 10px;
        max-width: 100%;
    }

    .about-section {
        max-width: 100%;
        width: 100%;
        padding: 16px 10px;
        margin: 0 auto 40px;
    }

    .section-title {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .department-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .matrix-grid {
        padding: 12px 8px;
    }

    .tech-cards-container {
        flex-direction: column;
        gap: 16px;
        margin: 0 auto 60px;
        padding: 0 10px;
    }

    .tech-card {
        padding: 20px 16px;
        width: 100%;
    }

    .tech-card-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .tech-card-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .our-friends-header {
        font-size: 0.9rem;
        margin: 20px 0 30px;
        padding: 0 10px;
        line-height: 1.3;
    }

    .friends-container {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 40px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }

    .friend-block {
        padding: 12px;
        min-height: 80px;
        margin: 0 auto;
        width: 100%;
    }

    .friend-header {
        flex-direction: row;
        gap: 12px;
        text-align: left;
        justify-content: flex-start;
    }

    .friend-logo, .gray-friend-logo {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }

    .friend-logo img, .gray-friend-logo img {
        padding: 6px;
    }

    .friend-content {
        flex: 1;
        min-width: 0;
    }

    .friend-title {
        font-size: 0.75rem;
        margin-bottom: 2px;
        text-align: left;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }

    .map-container {
        margin: 0 auto 40px;
        padding: 0 10px;
    }

    .map-card {
        max-width: 100%;
        width: 100%;
    }

    .map-title {
        font-size: 1rem;
    }

    .map-address {
        font-size: 0.8rem;
    }

    .map-iframe-container {
        height: 40vh;
        min-height: 250px;
    }

    .category-label {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .category-value {
        font-size: 0.75rem;
    }

    .category-block {
        height: auto;
        min-height: 100px;
    }

    .education-info {
        margin-top: 15px;
        padding-top: 12px;
    }
}

.school-tech-card {
    margin: 30px auto 70px;
    padding: 30px;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(0, 15, 4, 0.9), rgba(0, 88, 34, 0.859));
    border: 1px solid var(--emerald);
    border-radius: 12px;
    box-shadow: 
        0 0 20px var(--glow-color),
        0 0 40px rgba(27, 107, 107, 0.2),
        inset 0 0 15px rgba(27, 107, 107, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}


.school-tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 0 30px var(--glow-color),
        0 0 60px rgba(27, 107, 107, 0.3),
        inset 0 0 20px rgba(27, 107, 107, 0.2);
}

.school-card-title {
    font-family: 'Russo One';
    font-size: 1.5rem;
    color: var(--accent-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px var(--glow-color);
    position: relative;
    padding-bottom: 10px;
}

.school-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}


.school-tech-button {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(201, 8, 53, 0.936);
    color: var(--accent-white);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Russo One';
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 1px;
    border: 1px solid var(--emerald);
    border-radius: 6px;
    box-shadow: 
        0 0 30px rgb(8, 30, 0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.school-tech-button:hover {
    border-color: var(--accent-red);
    box-shadow: 
        0 0 35px rgba(0, 255, 123, 0.6);
    transform: translateY(-2px);
}

@keyframes card-glow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .school-tech-card {
        padding: 25px 25px 25px 25px;
        max-width: 400px;
    }
    
    .school-card-title {
        font-size: 1.3rem;
    }
    
    .school-tech-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .school-tech-card {
        padding: 20px 20px 20px 20px;
        max-width: 90%;
    }
    
    .school-card-title {
        font-size: 1.2rem;
    }
    
    .school-tech-button {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}