body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f6f8;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #e8ebf0;
}

.logo img {
    height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    color: #0059ff;
    background-color: white;
    padding: 10px 18px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #0059ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    background: linear-gradient(90deg, #8dadec, #0059ff);
    color: white;
    border-color: #0059ff;
}

nav a:hover::after {
    width: 80%;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(90deg, #dce9ff, #c4daff);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-title h1 {
    color: #1a2a5a;
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.page-title p {
    color: #0059ff;
    margin: 0;
    font-size: 1.2rem;
    font-style: italic;
}

/* Main Container */
.mainbox {
    margin: 30px 100px;
}

/* Vocab Card - Contains all 3 boxes */
.vocab-card {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    padding: 25px;
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f4ff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,89,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vocab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,89,255,0.15);
}

/* Individual Vocab Box */
.vocab-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.vocab-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,89,255,0.2);
}

/* Box 1: Slider Box - 300x300 */
.slider-box {
    width: 300px;
    min-width: 300px;
    height: 340px; /* 300 + 40 for arrows */
    display: flex;
    flex-direction: column;
}

.slider {
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.95);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slide Content (for text slides) */
.slide-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #0059ff 0%, #1a2a5a 100%);
    color: white;
    text-align: center;
}

.slide-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.slide-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Video Thumbnail Slide */
.video-thumbnail {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a2a5a 0%, #0d1a3a 100%);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.video-thumbnail:hover {
    background: linear-gradient(135deg, #2a3a6a 0%, #1d2a4a 100%);
}

.video-thumbnail .yt-thumbnail {
    width: 90%;
    height: 60%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .yt-thumbnail {
    opacity: 1;
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255,0,0,0.4);
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255,0,0,1);
}

.video-thumbnail p {
    color: white;
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Arrow Navigation */
.slider-arrows {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: linear-gradient(90deg, #e8f0ff, #dce9ff);
    border-radius: 0 0 15px 15px;
}

.arrow-btn {
    width: 35px;
    height: 28px;
    border: none;
    background: #0059ff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-btn:hover {
    background: #1a2a5a;
    transform: scale(1.1);
}

.slide-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c4daff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #0059ff;
    transform: scale(1.2);
}

.dot:hover {
    background: #8dadec;
}

/* Box 2: Definition Box */
.definition-box {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.definition-box h2 {
    color: #1a2a5a;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 3px solid #0059ff;
}

.word-title {
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.new-word {
    color: #0059ff;
    font-weight: bold;
    background: linear-gradient(90deg, #dce9ff, #c4daff);
    padding: 5px 15px;
    border-radius: 20px;
}

.definition {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    flex: 1;
}

.example-tag {
    align-self: flex-start;
    background: linear-gradient(90deg, #0059ff, #1a2a5a);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.example-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,89,255,0.3);
}

/* Box 3: Difference Box */
.difference-box {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.difference-box h2 {
    color: #1a2a5a;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 3px solid #0059ff;
}

.comparison {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.their-word, .our-word {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.their-word {
    background: linear-gradient(135deg, #ffe8e8, #fff0f0);
    border-left: 4px solid #ff6b6b;
}

.their-word:hover {
    transform: translateX(-3px);
    box-shadow: -4px 4px 15px rgba(255,107,107,0.2);
}

.our-word {
    background: linear-gradient(135deg, #e8fff0, #f0fff5);
    border-left: 4px solid #00C244;
}

.our-word:hover {
    transform: translateX(3px);
    box-shadow: 4px 4px 15px rgba(0,194,68,0.2);
}

.their-word h4, .our-word h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.their-word p, .our-word p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.examples {
    background: #f8faff;
    padding: 15px;
    border-radius: 10px;
    border: 1px dashed #c4daff;
}

.examples h4 {
    margin: 0 0 10px 0;
    color: #1a2a5a;
    font-size: 1rem;
}

.examples ul {
    margin: 0;
    padding-left: 20px;
}

.examples li {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.examples li:hover {
    color: #0059ff;
    transform: translateX(5px);
}

.examples strong {
    color: #0059ff;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #d2d5da, #c0c5cc);
    text-align: center;
    padding: 30px;
    color: white;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.socials img {
    width: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.socials img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px rgba(0, 89, 255, 0.5));
}

.cash-app-btn {
    display: inline-flex;
    align-items: center;
    background-color: #00C244;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.cash-app-btn:hover {
    background: #a0fc9d;
    transform: scale(1.05);
    color: rgb(19, 167, 0);
}

.cash-app-btn img {
    width: 60px;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
    .vocab-card {
        flex-direction: column;
        align-items: center;
    }
    
    .vocab-box {
        width: 100%;
        max-width: 500px;
    }
    
    .slider-box {
        width: 100%;
        max-width: 350px;
    }
    
    .slider {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mainbox {
        margin: 20px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .comparison {
        flex-direction: column;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
}