
/* ==========================================
   UNIT TI STIFAR - MODERN DIGITAL CAMPUS
   ========================================== */

:root {
    --ti-navy: #071b3a;
    --ti-blue: #1266ed;
    --ti-cyan: #20d9ef;
    --ti-text: #142541;
    --ti-muted: #66758d;
    --ti-bg: #f5f8fd;
    --ti-radius: 22px;
}

html { scroll-behavior: smooth; }
body { background: var(--ti-bg); }
section[id] { scroll-margin-top: 100px; }

.ti-main { padding-top: 40px; padding-bottom: 60px; }

/* HERO */
.ti-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(125deg,#06162e 0%,#0b316c 55%,#1264c4 100%);
    color: #fff;
    min-height: 590px;
}

.ti-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to right,transparent,#000);
}

.ti-hero-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: .35;
}
.glow-one { background: #0785ff; right: -90px; top: -100px; }
.glow-two { background: #10d8df; left: 20%; bottom: -340px; }

.ti-hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 35px;
    min-height: 590px;
    padding-top: 75px;
    padding-bottom: 75px;
}

.ti-hero-content { position: relative; z-index: 2; }

.ti-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    border-radius: 100px;
    padding: 10px 17px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #35efbd;
    border-radius: 50%;
    box-shadow: 0 0 14px #35efbd;
}

.ti-hero h1 {
    font-size: clamp(38px,4.5vw,65px);
    line-height: 1.12;
    letter-spacing: -2.5px;
    font-weight: 850;
    margin: 27px 0 22px;
    color: white;
}

.gradient-text {
    display: block;
    background: linear-gradient(90deg,#fff,#6fe8ff,#36a6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ti-hero-content > p {
    max-width: 530px;
    font-size: 16px;
    line-height: 1.9;
    color: #d3e3fa;
}

.ti-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.ti-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 23px;
    border-radius: 11px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    transition: .25s;
}
.ti-btn-primary { background: #fff; color: #0a3672; }
.ti-btn-outline { color: #fff; border: 1px solid #7192bf; }
.ti-btn:hover { transform: translateY(-3px); }

.ti-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    margin-top: 43px;
    font-size: 11px;
    color: #b9d6f6;
    font-weight: 700;
}

/* HERO VISUAL */
.ti-hero-visual {
    min-height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ti-orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 50%;
}
.orbit-a { width: 390px; height: 390px; }
.orbit-b { width: 310px; height: 310px; border-style: dashed; }

.ti-logo-glass {
    position: relative;
    z-index: 1;
    width: 245px;
    height: 245px;
    border-radius: 36px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 25px 75px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: rotate(-7deg);
    animation: tiFloat 6s ease-in-out infinite;
}

.ti-logo-glass img {
    max-width: 155px;
    max-height: 155px;
    object-fit: contain;
}
.ti-logo-glass > span {
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #fff;
}
.ti-logo-placeholder { font-size: 90px; font-weight: 900; }

.ti-floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255,255,255,.95);
    color: #142b4c;
    border-radius: 14px;
    padding: 14px 19px;
    box-shadow: 0 15px 40px rgba(0,0,0,.18);
}
.ti-floating-card strong { display: block; font-size: 12px; }
.ti-floating-card small { color: #72829b; font-size: 10px; }
.floating-icon { font-size: 22px; color: #1676ed; }
.floating-top { right: 0; top: 50px; }
.floating-bottom { left: 0; bottom: 45px; }

@keyframes tiFloat {
    0%,100% { transform: translateY(0) rotate(-7deg); }
    50% { transform: translateY(-15px) rotate(-7deg); }
}

/* QUICK NAV */
.ti-quick-nav {
    position: relative;
    z-index: 4;
    margin-top: -35px;
    background: white;
    border-radius: 17px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    box-shadow: 0 15px 55px rgba(18,54,99,.12);
    overflow: hidden;
}
.ti-quick-nav a {
    padding: 25px 18px;
    text-decoration: none;
    color: #203550;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid #e9eef6;
    transition: .25s;
}
.ti-quick-nav a:last-child { border: 0; }
.ti-quick-nav a > span { color: #1674ed; font-size: 12px; }
.ti-quick-nav a b { margin-left: auto; color: #8da1bd; }
.ti-quick-nav a:hover { background: #edf6ff; color: #1266ed; }

/* SECTIONS */
.ti-section { padding: 65px 0 20px; }

.ti-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 29px;
}
.ti-kicker {
    display: block;
    font-size: 11px;
    font-weight: 900;
    color: #1266ed;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.ti-section-heading h2 {
    font-size: clamp(28px,3vw,42px);
    letter-spacing: -1.3px;
    line-height: 1.2;
    color: #11294a;
    margin: 0;
}
.ti-section-heading h2 em {
    color: #1675ed;
    font-style: normal;
}
.ti-section-heading p {
    color: var(--ti-muted);
    margin-top: 12px;
    line-height: 1.7;
}
.ti-heading-decoration { font-size: 70px; color: #d6e7ff; }

/* ABOUT */
.ti-about-card {
    display: grid;
    grid-template-columns: 30% 70%;
    background: white;
    border: 1px solid #e8eef7;
    border-radius: var(--ti-radius);
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(25,63,110,.05);
}
.ti-about-accent {
    background: linear-gradient(145deg,#0b397a,#167cf1);
    color: #fff;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}
.ti-about-icon { font-size: 65px; }
.ti-about-content { padding: 38px 45px; }
.ti-pill {
    display: inline-block;
    color: #1266ed;
    background: #eaf3ff;
    border-radius: 30px;
    padding: 7px 13px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}
.ti-about-content p {
    color: #42546d;
    line-height: 1.95;
    font-size: 16px;
    margin: 18px 0 0;
}

/* PURPOSE CARDS */
.ti-purpose-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    align-items: stretch;
}
.ti-purpose-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 29px;
    background: white;
    border: 1px solid #e4ebf5;
    border-radius: var(--ti-radius);
    box-shadow: 0 10px 30px rgba(20,55,100,.045);
    transition: .3s;
    overflow: hidden;
    min-width: 0;
}
.ti-purpose-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #1476ee;
}
.mission-card::before { background: #12bba6; }
.services-card::before { background: #9463e8; }
.ti-purpose-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(20,55,100,.12);
}
.ti-purpose-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #8999ad;
}
.ti-purpose-icon {
    width: 57px;
    height: 57px;
    display: grid;
    place-items: center;
    background: #e9f3ff;
    color: #1266ed;
    border-radius: 16px;
    font-size: 31px;
}
.mission-card .ti-purpose-icon { background: #e3faf4; color: #00a68c; }
.services-card .ti-purpose-icon { background: #f1eaff; color: #8753dc; }

.ti-purpose-card h3 {
    color: #152b49;
    font-size: 23px;
    margin: 27px 0 15px;
}
.ti-purpose-body {
    color: #5b6d83;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}
.ti-purpose-body p { margin: 0 0 12px; }
.ti-purpose-body ul,
.ti-purpose-body ol { padding-left: 20px; margin: 10px 0; }
.ti-purpose-body li { margin-bottom: 9px; }
.ti-purpose-body strong { color: #213e61; }

.ti-purpose-footer {
    margin-top: auto;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    color: #8292a8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}
.ti-purpose-footer span { color: #1266ed; font-size: 19px; }

/* TEAM */
.ti-team-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}
.ti-team-card {
    background: white;
    border: 1px solid #e7edf6;
    border-radius: 20px;
    overflow: hidden;
    transition: .3s;
}
.ti-team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(20,55,100,.12);
}
.ti-team-image {
    height: 275px;
    overflow: hidden;
    background: linear-gradient(135deg,#dcecff,#f2f7ff);
}
.ti-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .4s;
}
.ti-team-card:hover img { transform: scale(1.06); }
.ti-team-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4b86c9;
}
.ti-team-placeholder span { font-size: 75px; font-weight: 900; }
.ti-team-placeholder small { font-size: 10px; letter-spacing: 2px; }

.ti-team-info { padding: 24px; position: relative; }
.ti-team-role {
    color: #1266ed;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ti-team-info h3 {
    color: #152b49;
    font-size: 19px;
    margin: 9px 30px 0 0;
}
.ti-team-arrow {
    position: absolute;
    right: 23px;
    bottom: 25px;
    color: #1675ed;
    font-size: 24px;
}

/* ADMIN PREVIEWS */
.team-admin-item .admin-avatar {
    display: block;
    width: 76px;
    height: 76px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 0 16px;
}
.admin-logo-preview {
    display: block;
    width: 140px;
    height: 140px;
    max-width: 100%;
    object-fit: contain;
    margin: 16px 0;
}

/* DOCUMENTS */
.ti-documents-hero {
    padding: 65px 0 72px;
    background: radial-gradient(circle at 85% 10%,#205aa0 0%,transparent 38%),linear-gradient(120deg,#061b3a,#104a80);
    color: white;
}
.ti-documents-back { display: inline-block; color: #a8e3ff; font-weight: 700; margin-bottom: 42px; }
.ti-documents-back:hover { color: white; }
.ti-documents-hero .ti-kicker { color: #88d9ff; }
.ti-documents-hero h1 { font-size: clamp(38px,5vw,64px); letter-spacing: -2px; line-height: 1.12; margin: 0 0 18px; }
.ti-documents-hero h1 em { color: #75dcff; font-style: normal; }
.ti-documents-hero p { max-width: 600px; color: #d2e4f9; line-height: 1.7; margin: 0; }
.ti-documents-main { padding-top: 65px; padding-bottom: 100px; }
.ti-document-group { margin-top: 28px; }
.ti-document-group-title { color: #1b3150; font-size: 20px; margin: 0 0 12px; }
.admin-document-group { margin-top: 24px; }
.admin-document-group-title { color: #1b3150; margin: 0 0 10px; }
.ti-documents {
    background: white;
    border: 1px solid #e7edf6;
    border-radius: 20px;
    overflow: hidden;
}
.ti-document-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 23px 27px;
    border-bottom: 1px solid #edf1f7;
    transition: .25s;
}
.ti-document-row:last-child { border-bottom: 0; }
.ti-document-row:hover { background: #f5faff; }
.ti-document-icon {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eaf3ff;
    color: #1266ed;
    font-size: 29px;
}
.ti-document-info { flex: 1; min-width: 0; }
.ti-document-category {
    color: #1266ed;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.ti-document-info h3 {
    color: #1b3150;
    margin: 6px 0;
    font-size: 16px;
}
.ti-document-info p {
    color: #748399;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}
.ti-download {
    flex-shrink: 0;
    background: #1266ed;
    color: white;
    border-radius: 10px;
    padding: 12px 17px;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
}
.ti-download span { margin-left: 12px; }
.ti-download:hover { background: #084ebf; color: white; }
.ti-empty { padding: 35px; color: #77869b; }

/* CONTACT */
.ti-contact {
    position: relative;
    overflow: hidden;
    margin-top: 65px;
    padding: 50px;
    border-radius: 24px;
    background: linear-gradient(115deg,#061b3a,#1056ad);
    color: white;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 30px;
}
.ti-contact::after {
    content: "✳";
    position: absolute;
    font-size: 300px;
    color: rgba(255,255,255,.04);
    right: -50px;
    top: -140px;
    pointer-events: none;
}
.ti-contact-label {
    font-size: 11px;
    font-weight: 900;
    color: #66e5ff;
    letter-spacing: 2px;
}
.ti-contact h2 {
    color: white;
    font-size: clamp(28px,3vw,40px);
    line-height: 1.2;
    margin: 15px 0;
}
.ti-contact h2 em { color: #67ddff; font-style: normal; }
.ti-contact-content > p { color: #c7ddf6; line-height: 1.8; }
.ti-contact-box {
    position: relative;
    z-index: 1;
    padding: 25px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}
.ti-contact-box > span {
    color: #6be7ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}
.ti-contact-box p {
    color: white;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* RESPONSIVE */
@media(max-width: 1000px) {
    .ti-hero-container { grid-template-columns: 1fr 1fr; }
    .ti-purpose-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ti-team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ti-orbit.orbit-a { width: 300px; height: 300px; }
    .ti-orbit.orbit-b { width: 245px; height: 245px; }
    .ti-logo-glass { width: 205px; height: 205px; }
}

@media(max-width: 768px) {
    .ti-hero-container {
        grid-template-columns: 1fr;
        padding-top: 65px;
        padding-bottom: 40px;
        gap: 0;
    }
    .ti-hero h1 { letter-spacing: -1.5px; }
    .ti-hero-visual { min-height: 320px; }
    .ti-hero-features { gap: 12px; }
    .ti-quick-nav { grid-template-columns: repeat(2,1fr); }
    .ti-quick-nav a { padding: 18px 13px; font-size: 12px; }
    .ti-about-card { grid-template-columns: 1fr; }
    .ti-about-accent { min-height: 130px; }
    .ti-about-content { padding: 28px; }
    .ti-purpose-grid { grid-template-columns: 1fr; }
    .ti-team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ti-contact { grid-template-columns: 1fr; padding: 35px 25px; }
    .ti-section { padding-top: 50px; }
}

@media(max-width: 480px) {
    .ti-hero-badge { font-size: 9px; letter-spacing: .6px; }
    .ti-hero h1 { font-size: 39px; }
    .ti-hero-actions { flex-direction: column; }
    .ti-btn { width: 100%; }
    .ti-hero-visual { min-height: 270px; }
    .ti-logo-glass { width: 175px; height: 175px; }
    .ti-logo-glass img { max-width: 110px; max-height: 110px; }
    .ti-orbit.orbit-a { width: 255px; height: 255px; }
    .ti-orbit.orbit-b { width: 210px; height: 210px; }
    .ti-floating-card { padding: 9px; }
    .floating-top { top: 15px; right: -5px; }
    .floating-bottom { bottom: 10px; left: -5px; }
    .ti-team-grid { grid-template-columns: 1fr; }
    .ti-document-row { flex-wrap: wrap; padding: 19px; }
    .ti-download { margin-left: 75px; }
}

@media(prefers-reduced-motion: reduce) {
    .ti-logo-glass { animation: none; }
    .ti-purpose-card,
    .ti-team-card,
    .ti-btn { transition: none; }
}

/* HELPDESK BUTTON */
.ti-btn-helpdesk {
    background: linear-gradient(135deg, #092653, #1464b4);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 8px 24px rgba(9,38,83,.2);
    transition: all .3s ease;
}

.ti-btn-helpdesk:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(9,38,83,.3);
    background: linear-gradient(135deg, #1464b4, #092653);
}

.ti-contact-box .ti-btn-helpdesk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    text-decoration: none;
}


/* HELPDESK BUTTON */
.ti-hero-actions .ti-btn-helpdesk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1464b4, #092653);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.25);
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

.ti-hero-actions .ti-btn-helpdesk span {
    color: #fff;
}

.ti-hero-actions .ti-btn-helpdesk:hover {
    background: #fff;
    color: #092653 !important;
    border-color: #fff;
    transform: translateY(-3px);
}

.ti-hero-actions .ti-btn-helpdesk:hover span {
    color: #092653;
}




