/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.kitav-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-block;
    cursor: pointer;
}

.kitav-icon i {
    font-size: 20px;
    color: black;
}

.kitav-icon span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 10px;
    font-family: 'Arial', sans-serif;
}

/* Header */
header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding: 1rem;
    color: #f4f4f4;
    font-size: 1.8rem;
    font-weight: bold;
}

.bb-logo {
    height: 40px;
    width: auto;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem;
    background: #ECF0F1;
    flex-wrap: wrap;
}

nav a {
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    transform: translateY(-2px);
}

/* Search Bar */
.search-container {
    position: relative;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-input:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.3);
    background: white;
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    border: none;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    transform: translateY(-50%) scale(1.05);
}

.search-btn i {
    font-size: 16px;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
}

.search-dropdown.show {
    display: block;
}

.search-item {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-item:hover {
    background: #f8f9fa;
    padding-left: 25px;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item h4 {
    color: #2C3E50;
    margin-bottom: 5px;
}

.search-item p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Marquee */
.announcement-bar {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.marquee {
    display: flex;
    width: 100%;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.announcement-item {
    display: inline-block;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 500;
    flex-shrink: 0;
}

.announcement-item i {
    margin-right: 8px;
    color: #00ffcc;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}



/* Logo */
.logo1 img {
    height: 175px;
    width: 175px;
    display: block;
    margin: 0 auto;
}

/* Heading */
h1 {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    margin: 20px 0;
}

/* Class Box */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.class-box {
    width: 80%;
    max-width: 400px;
    padding: 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.class-box:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.3);
}

.class-box h2 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 10px;
}

.class-box h3 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 10px;
}

.class-box p {
    color: #dcdcdc;
    margin-bottom: 15px;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    background: #00ffcc;
    color: #121212;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 255, 204, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn a {
    color: #121212;
    text-decoration: none;
}

.btn:hover {
    background: #009977;
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 255, 204, 0.5);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

.message-box-btn {
    background: #00ffcc;
    color: #121212;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.message-box-btn:hover {
    background: #00e6b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.message-box-btn i {
    font-size: 16px;
}

/* Footer */
.resources-footer {
    background: #2C3E50;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 30px;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498DB;
}

/* Instagram Popup Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #00ffcc;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.modal-btn {
    display: inline-block;
    background-color: #00ffcc;
    color: #121212;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 255, 204, 0.3);
}

.modal-btn:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 255, 204, 0.5);
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Chat Bot Container */
.chat-bot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.chat-bot-container.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.chat-bot-header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-bot-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

.chat-bot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-message, .user-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
    position: relative;
    animation: messageAppear 0.3s ease;
}

.bot-message {
    align-self: flex-start;
    background: #f1f1f1;
    border-bottom-left-radius: 5px;
}

.user-message {
    align-self: flex-end;
    background: #e0e0ff;
    border-bottom-right-radius: 5px;
}

.chat-bot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.chat-bot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
}

.chat-bot-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Partner and Motivation Section */
.partner-motivation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px auto;
    max-width: 800px;
    gap: 20px;
    width: 90%;
}

.motivation-note {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.motivation-note p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 10px 0;
    font-style: italic;
    padding: 0 20px;
}

.motivation-note .fa-quote-left {
    position: absolute;
    top: 10px;
    left: 15px;
    opacity: 0.3;
    font-size: 1.5rem;
}

.motivation-note .fa-quote-right {
    position: absolute;
    bottom: 10px;
    right: 15px;
    opacity: 0.3;
    font-size: 1.5rem;
}

.partner-logos-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
}

.partner-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.partner-logo-container p {
    color: #2C3E50;
    font-weight: 500;
    text-align: center;
    margin-top: 5px;
}

.partner-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.partner-logo {
    height: 100px;
    width: 100px;
    object-fit: cover;
    border: 3px solid #6a11cb;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.round-logo {
    border-radius: 50%;
    border: 3px solid #e6683c;
}

.partner-logo-link:hover .partner-logo {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* As Featured In Section */
.featured-in-section {
    margin: 60px auto 40px;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    padding: 0 20px;
}

.featured-in-section .section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.logos-container-featured {
    position: relative;
    padding: 25px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Gradient overlays */
.logos-container-featured::before,
.logos-container-featured::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos-container-featured::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.logos-container-featured::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.logos-track-featured {
    display: flex;
    animation: scroll-right 25s linear infinite;
}

.logo-item-featured {
    padding: 0 40px;
    flex-shrink: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-featured {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.logo-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Different colors for each logo */
.logo-featured-1 { background: linear-gradient(135deg, #004c6d, #006da0); }
.logo-featured-2 { background: linear-gradient(135deg, #e31b23, #ff4d55); }
.logo-featured-3 { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.logo-featured-4 { background: linear-gradient(135deg, #f39c12, #e67e22); }
.logo-featured-5 { background: linear-gradient(135deg, #3498db, #2980b9); }
.logo-featured-6 { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.logo-featured-7 { background: linear-gradient(135deg, #1abc9c, #16a085); }
.logo-featured-8 { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.logo-featured-9 { background: linear-gradient(135deg, #34495e, #2c3e50); }
.logo-featured-10 { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* Pause on hover */
.logos-container-featured:hover .logos-track-featured {
    animation-play-state: paused;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease-out;
}

.popup-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Popup Content */
.popup-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

/* Close Button */
.popup-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #ff4757;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.popup-content .close-btn:hover {
    background: #ff3838;
    transform: scale(1.1);
}

/* Kitav Logo Styling */
.bb-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Disclaimer Content */
.disclaimer-header {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.note-emoji {
    font-size: 1.5em;
    margin-right: 10px;
}

.disclaimer-text {
    color: #34495e;
    line-height: 1.8;
    font-size: 1.05em;
    text-align: left;
    margin-bottom: 25px;
}

.disclaimer-text strong {
    color: #2c3e50;
    font-weight: 600;
}

.key-points {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.key-points h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.key-points ul {
    list-style: none;
    padding: 0;
}

.key-points li {
    color: #495057;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.key-points li::before {
    content: "•";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 8px;
    font-size: 1.2em;
}

.final-note {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    margin-top: 25px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .responsive-ad-container {
        width: 90%;
        max-width: 900px;
    }
    
    .search-container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: white;
        z-index: 999;
        transition: right 0.3s ease;
        padding-top: 60px;
        gap: 0;
    }
    
    nav.active {
        right: 0;
    }
    
    nav a {
        width: 100%;
        border-radius: 0;
        padding: 15px 20px;
        justify-content: center;
    }
    
    .search-container {
        width: 90%;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 8px 12px;
    }
    
    .marquee {
        animation: scroll 20s linear infinite;
    }
    
    .announcement-item {
        padding: 0 20px;
        font-size: 14px;
    }
    
    .responsive-ad-container {
        width: 95%;
        margin: 15px auto;
        padding: 10px;
        border-radius: 12px;
    }
    
    .responsive-ad-image {
        border-radius: 8px;
    }
    
    .container {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .donation-box {
        width: 90%;
        padding: 15px;
    }
    
    .qr-container img {
        max-width: 200px;
        max-height: 200px;
    }
    
    .motivation-note p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .partner-logos-row {
        gap: 20px;
    }
    
    .partner-logo {
        height: 80px;
        width: 80px;
    }
    
    .popup-content {
        padding: 25px;
        margin: 10px;
    }
    
    .disclaimer-header {
        font-size: 1.5em;
    }
    
    .disclaimer-text {
        font-size: 1em;
    }
    
    .logo-item-featured {
        padding: 0 25px;
        height: 50px;
    }
    
    .logo-featured {
        min-width: 150px;
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .logos-container-featured::before,
    .logos-container-featured::after {
        width: 60px;
    }
    
    .featured-in-section .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .partner-logos-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .motivation-note {
        padding: 15px 10px;
    }
    
    .responsive-ad-container {
        width: 98%;
        margin: 10px auto;
        padding: 8px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .responsive-ad-image {
        border-radius: 6px;
    }
    
    .logo1 img {
        height: 150px;
        width: 150px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin: 15px 10px;
    }
    
    .class-box {
        width: 90%;
        padding: 15px;
    }
    
    .chat-bot-container {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 80px;
        height: 60vh;
    }
    
    .floating-chat-btn {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .donation-box {
        width: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        height: 100vh;
        overflow-y: auto;
    }
    
    .qr-container img {
        max-width: 200px;
        max-height: 200px;
    }
    
    .close-donate-btn {
        position: sticky;
        bottom: 20px;
        width: 100%;
    }
    
    .logo-item-featured {
        padding: 0 15px;
        height: 45px;
    }
    
    .logo-featured {
        min-width: 130px;
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 320px) {
    .responsive-ad-container {
        width: 100%;
        margin: 8px auto;
        padding: 5px;
        border-radius: 8px;
    }
    
    .logo1 img {
        height: 120px;
        width: 120px;
    }
    
    h1 {
        font-size: 1.3rem;
        margin: 10px 5px;
    }
    
    .class-box {
        width: 95%;
        padding: 12px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Animation for fadeOut */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}