/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    background: white;
    color: #4b0082;
    overflow-x: hidden;
    width: 100%;
}

img, video {
    max-width: 100%;
}

/* ===========================
   HEADER
=========================== */

header {
    width: 100%;
    height: 80px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #4b0082;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: auto;
    padding: 0 clamp(16px, 4vw, 40px);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===========================
   LOGO
=========================== */

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #4b0082;
    gap: 12px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text h2 {
    font-size: 28px;
    font-family: Open Sans;
    font-weight: 700;
    letter-spacing: 2px;
    color: #4b0082;
}

/* ===========================
   NAVIGATION
=========================== */

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #4b0082;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

/* Underline Animation */

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -6px;
    background: #4b0082;
    transition: .3s;
}

nav a:hover {
    color: #4f003b;
}

nav a:hover::after {
    width: 100%;
}

/* Login Button */

nav a:last-child {
    background: #4b0082;
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    transition: .3s;
}

nav a:last-child:hover {
    background: #4f003b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 5, 6, 0.3);
}

nav a:last-child::after {
    display: none;
}

/* ===========================
   MOBILE MENU TOGGLE
=========================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #4b0082;
    border-radius: 3px;
    transition: .3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    background-color: #4b0082;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(30px, 6vw, 60px) clamp(20px, 4vw, 40px);
}
/* LEFT */

.hero-video{
  width: 100%;
  max-width: 700px;
  padding-left: 40px;
  padding-top: 20px;
  flex-shrink: 1;
  flex: 1 1 500px;
  min-width: 0;
}

.hero-video video{
    width:100%;
    height:auto;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    display: block;
}

.hero-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:clamp(30px, 6vw, 80px);
    flex-wrap: wrap;
    width: 100%;
}

/* OPAC Card */

.hero-search{
    width: 100%;
    max-width: 460px;
    flex: 1 1 340px;
    background:#ffffff;
    border-radius:20px;
    padding:clamp(20px, 3vw, 30px);
    box-shadow:0 15px 40px rgba(0,0,0,.25);
    margin-left:10px;
    
}

.hero-search h2{
    color:#4b0082;
    font-size:32px;
    margin-bottom:10px;
}

.hero-search p{
    color:#666;
    margin-bottom:10px;
    line-height:1.6;
}

.search-box{
    display:flex;
    gap:12px;
    margin-bottom:25px;
}

.search-box input{
    flex:1;
    padding:15px 18px;
    border:2px solid #ddd;
    border-radius:12px;
    font-size:16px;
    outline:none;
    transition:.3s;
    
}

.search-box input:focus{
    border-color:#4b0082;
    box-shadow:0 0 0 4px rgba(45,5,6,.1);
}

.search-box button{
    padding:15px 24px;
    border:none;
    border-radius:12px;
    background:#4b0082;
    color:white;
    cursor:pointer;
    font-weight:600;
    transition:.3s;
}

.search-box button:hover{
    background:#4f003b;
    transform:translateY(-2px);
}

/* ==========================
   WELCOME SECTION
========================== */

.welcome-section{
    max-width:1400px;
    margin:clamp(50px, 10vw, 100px) auto;
    padding:0 clamp(20px, 6vw, 80px);

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:clamp(30px, 6vw, 90px);
    flex-wrap: wrap;
}

/* LEFT */

.welcome-text{
    flex:1;
}

.section-title{
    color:#4b0082;
    font-size:25px;
    font-weight:700;
    letter-spacing:3px;
    display:block;
    margin-bottom:20px;
}

.welcome-text h1{
    font-size:clamp(24px, 4vw, 35px);
    line-height:1.15;
    color:#111;
    margin-bottom:25px;
    font-weight:700;
}

.welcome-text p{
    font-size:clamp(15px, 2vw, 18px);
    color:#555;
    line-height:1.9;
    margin-bottom:35px;
    max-width:620px;
}

/* BUTTON */

.learn-btn{
    display:inline-block;
    text-decoration:none;
    background:#4b0082;
    color:#fff;
    padding:14px 34px;
    border-radius:50px;
    transition:.3s;
}

.learn-btn:hover{
    background:#4f003b;
    transform:translateY(-3px);
}
.info-section{
    max-width:1400px;
    margin:clamp(50px, 10vw, 100px) auto;
    padding:0 clamp(20px, 6vw, 80px);
    text-align:center;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap:40px;
}
     
.info-courses{
    margin: 0 auto 35px auto; /* Centers the container */
    font-size:18px;
    color:#555;
    line-height:1.9;
    margin-bottom:35px;
    max-width:620px;
    
   
}
.typing-courses{
    color:#4b0082;
    line-height:1.9;
    font-size:30px;
    font-weight:700;
    letter-spacing:3px;
    display:block;
    margin-bottom:20px;

}

.info-news{
    margin: 0 auto 35px auto; /* Centers the container */
    font-size:18px;
    color:#555;
    line-height:1.9;
    margin-bottom:35px;
    max-width:620px;

   
}

.typing-news{
    color:#4b0082;
    line-height:1.9;
    font-size:30px;
    font-weight:700;
    letter-spacing:3px;
}
  



/* ===========================
   RESPONSIVE
=========================== */

/* Tablets and small laptops */
@media (max-width: 992px) {

    .hero-content {
        justify-content: center;
    }

    .hero-video {
        padding-left: 0;
        justify-content: center;
        margin: 0 auto;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Tablets / nav collapses into hamburger menu */
@media (max-width: 860px) {

    header {
        height: 70px;
    }

    .header-container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        padding: 30px 20px;
        transform: translateX(-100%);
        transition: transform .3s ease;
        overflow-y: auto;
        box-shadow: 0 12px 25px rgba(0,0,0,.08);
    }

    nav.open {
        transform: translateX(0);
    }

    nav a {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid #4b0082;
    }

    nav a:last-child {
        margin-top: 10px;
        border-bottom: none;
    }

    .hero {
        min-height: auto;
        padding-top: 90px;
    }

    .search-box {
        flex-wrap: wrap;
    }

    .search-box input {
        flex: 1 1 100%;
    }

    .search-box button {
        flex: 1 1 100%;
    }
}

/* Large phones */
@media (max-width: 600px) {

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo-text h2 {
        font-size: 20px;
    }

    .hero-search h2 {
        font-size: 26px;
    }

    .welcome-section {
        text-align: center;
        justify-content: center;
    }

    .welcome-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 24px;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Small phones */
@media (max-width: 400px) {

    .header-container {
        padding: 0 14px;
    }

    .hero-search {
        padding: 20px;
    }

    .learn-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================
   FOOTER
========================== */

footer{

    background:#333;

    color:white;

    margin-top:100px;
}
/* TOP */

.footer-container{

    max-width:1400px;

    margin:auto;

    padding:40px 40px;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:80px;
}

/* TITLE */

.footer-column h3{

    color:white;

    font-size:28px;

    margin-bottom:30px;

    position:relative;
}

.footer-column h3::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-10px;

    width:70px;

    height:3px;

    background:#4b0082;
}

/* LINKS */

.footer-column ul{

    list-style:none;
}

.footer-column li{

    margin-bottom:16px;
}

.footer-column a{

    color:#ddd;

    text-decoration:none;

    transition:.3s;
}

.footer-column a:hover{

    color:white;

    padding-left:8px;
}

/* CONTACT */

.footer-column p{

    color:#ddd;

    margin-bottom:15px;

    line-height:1.8;
}
/* Scroll reveal */

.hero-video,
.hero-search,
.welcome-text,
.info-courses,
.info-news,
.footer-column{

    opacity:0;
    transform:translateY(50px);
    transition:.8s ease;
}

.show{

    opacity:1;
    transform:translateY(0);
}

/* Header shadow */

.header-shadow{

    box-shadow:0 12px 35px rgba(0,0,0,.12);
}

/* Active nav */

nav a.active{

    color:#4b0082;
    position:relative;
}

nav a.active::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-8px;

    width:100%;
    height:3px;

    background:#4b0082;
}

/* Ripple */

.learn-btn{

    position:relative;
    overflow:hidden;
}

.ripple{

    position:absolute;

    width:5px;
    height:5px;

    background:rgba(255,255,255,.6);

    border-radius:50%;

    transform:translate(-50%,-50%);

    animation:ripple .6s linear;
}

@keyframes ripple{

    from{

        width:0;
        height:0;
        opacity:.8;

    }

    to{

        width:500px;
        height:500px;
        opacity:0;

    }

}

/* BOTTOM */

.footer-bottom {
    padding:18px 0;      /* Smaller padding */
    margin-top:20px;     /* Smaller gap */
    text-align:center;
    background:#4b0082;
    color:white;
    font-size:14px;
}