/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-color: #f4a460;
    --secondary-color: #fad932;
    --accent-color: #ff6b35;
    --dark-color: #2c2c2c;
    --light-color: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --gradient-primary: linear-gradient(135deg, #f4a460 0%, #fad932 100%);
    --gradient-dark: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 50px rgba(0, 0, 0, 0.2);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Dark mode variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --navbar-bg: #ffffff;
    --navbar-text: #333333;
    --footer-bg: #f8f9fa;
    --footer-text: #333333;
}

/* Global Styles */


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(244, 164, 96, 0.1) 0%, rgba(250, 217, 52, 0.05) 100%);
  overflow-x: hidden;
}

/* Dark mode styles */
body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-card: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
    --navbar-bg: #2a2a2a;
    --navbar-text: #e0e0e0;
    --footer-bg: #2a2a2a;
    --footer-text: #e0e0e0;
}

/* Typography */
    h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem; /* Was 1rem */
    }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Announcement Popup Styles */
.announcement-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.announcement-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 550px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Dark mode for announcement content container */
body.dark-mode .announcement-content {
    background: #2a2a2a;
    color: white;
}

.announcement-content h3 {
    color: #333;
    margin-bottom: 20px;
}

/* Dark mode for announcement header */
body.dark-mode .announcement-content h3 {
    color: white;
}

.announcement-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item h4 {
    color: #f9db5d;
    margin-bottom: 10px;
}

.announcement-item p {
    color: #666;
    margin-bottom: 10px;
}

.announcement-item small {
    color: #999;
}

/* Dark mode text colors for announcement items */
body.dark-mode .announcement-item h4 {
    color: #f9db5d;
}

body.dark-mode .announcement-item p {
    color: white;
}

body.dark-mode .announcement-item small {
    color: #b0b0b0;
}

.announcement-date {
    color: #999;
    display: block;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .announcement-content {
        width: 95%;
        padding: 20px;
    }
}


/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(244, 164, 96, 0.9) 0%, rgba(250, 217, 50, 0.8) 100%);
    overflow: hidden;
}

/* Hero section dark mode - black background with white text */
body.dark-mode .hero-section {
    background: #2a2a2a;
}

body.dark-mode .hero-section::before {
    display: none;
}

body.dark-mode .hero-content {
    color: white;
}

body.dark-mode .hero-title {
    color: white;
}

body.dark-mode .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,2 18,6 18,14 10,18 2,14 2,6" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: black;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-hero {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-hero {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: var(--primary-color);
}

/* Dark mode styling for primary hero button */
body.dark-mode .btn-primary-hero {
    background: #2a2a2a;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-secondary-hero {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-hero:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* Features Section */
.features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef9f3 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(244, 164, 96, 0.1);
    position: relative;
    overflow: hidden;
}

/* Feature card dark mode */
body.dark-mode .feature-card {
    background: #2a2a2a;
    color: white;
}

body.dark-mode .feature-card h3 {
    color: white;
}

body.dark-mode .feature-card p {
    color: white;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover, .product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 7rem 0 4rem;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    position: relative;
    text-align: justify;
    color: var(--text-dark);
}

body.dark-mode .about-section {
    background: 
        linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    color: var(--text-primary);
}

.objectives-section {
    padding: 3rem 0;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    color: var(--text-dark);
}

body.dark-mode .objectives-section {
    background: 
        linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    color: var(--text-primary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* About text dark mode */
body.dark-mode .about-text h2 {
    color: white;
}

body.dark-mode .about-text p {
    color: white;
}

.about-video {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-video video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.play-btn i {
    font-size: 2rem;
    color: white;
    margin-left: 4px;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    color: var(--text-dark);
}

body.dark-mode .products-section {
    background: 
        linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    color: var(--text-primary);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Section titles dark mode */
body.dark-mode .section-title h2 {
    color: white;
}

body.dark-mode .section-title p {
    color: white;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(244, 164, 96, 0.1);
    height: 100%;
}

/* Product card dark mode */
body.dark-mode .product-card {
    background: #2a2a2a;
    color: white;
}

body.dark-mode .product-card h5 {
    color: white;
}

body.dark-mode .product-card p {
    color: white;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.clickable-product-card {
    cursor: pointer;
    position: relative;
}

.clickable-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 2rem;
}

.product-card h5 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

/* Product features dark mode */
body.dark-mode .product-features li {
    color: white;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* SACTOBEE Section */
.sactobee-section {
    padding: 50px 0 80px;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    color: var(--text-dark);
}

/* SACTOBEE section dark mode */
body.dark-mode .sactobee-section {
    background: 
        linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    color: var(--text-primary);
}

.sactobee-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    text-align: center;
}

.sactobee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: -1rem;
}

.sactobee-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    flex: 0 1 380px;
    cursor: pointer;
    position: relative;
}

/* SACTOBEE item dark mode */
body.dark-mode .sactobee-item {
    background: #2a2a2a;
    color: white;
}

body.dark-mode .sactobee-item h5 {
    color: white;
}

body.dark-mode .sactobee-item h6 {
    color: white;
}

body.dark-mode .sactobee-item p {
    color: white;
}

.sactobee-item-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sactobee-item-header h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.sactobee-item-header h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1rem;
}

.sactobee-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 1rem;
    text-align: center;
}

.sactobee-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-left-color: var(--accent-color);
}

.clickable-program-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-left-color: var(--accent-color);
}

.clickable-program-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.clickable-program-card:hover .sactobee-item-header h5 {
    color: var(--accent-color);
}

.sactobee-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.sactobee-item h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sactobee-item h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.sactobee-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Announcement Popup */
.announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;          
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.announcement-popup-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    position: relative; 
    margin: auto;
    border: 2px solid var(--primary-color);
}

.announcement-popup-header {
    background: var(--gradient-primary);
    color: black;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.announcement-popup-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.close-btn {
    background:  rgba(84, 78, 78, 0.3);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed backdrop-filter and transition for better performance */
}

.close-btn:hover {
    background: rgba(50, 45, 45, 0.3);
    /* Removed transform and box-shadow for better performance */
}

.announcement-popup-body {
    padding: 1.5rem;
    max-height: 40vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.announcement-popup-body::-webkit-scrollbar {
    width: 8px;
}

.announcement-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.announcement-popup-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.announcement-popup-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.announcement-item {
    padding: 0;
    border-radius: 8px;
    /* Removed transition for better performance */
}


.announcement-title {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.announcement-title i {
    font-size: 1rem;
}

.announcement-content {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-align: justify;
}

.announcement-date {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.announcement-date i {
    font-size: 0.8rem;
}

.announcement-popup-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 3px solid #e9ecef;
}

/* Announcement popup dark mode */
body.dark-mode .announcement-popup-content {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.dark-mode .announcement-popup-header {
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9));
    color: var(--text-primary);
}

body.dark-mode .announcement-popup-body {
    background: var(--bg-card);
}

body.dark-mode .announcement-popup-footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
}

body.dark-mode .announcement-title {
    color: var(--text-primary);
}

body.dark-mode .announcement-content {
    color: #2a2a2a;
}

body.dark-mode .announcement-date {
    color: white;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .announcement-popup-content {
        width: 85%;
        max-width: 550px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-video {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .sactobee-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-popup-content {
        width: 90%;
        max-width: 500px;
        max-height: 80vh;
    }
    
    .announcement-popup-body {
        max-height: 35vh;
        padding: 1.25rem;
    }
    
    .announcement-popup-header {
        padding: 1rem;
    }
    
    .announcement-popup-header h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-section,
    .about-section,
    .products-section,
    .sactobee-section {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .about-video video {
        height: auto;
        aspect-ratio: 16/9;
        max-height: 300px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .announcement-popup {
        padding: 0.5rem;
    }
    
    .announcement-popup-content {
        width: 95%;
        max-width: none;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .announcement-popup-header {
        padding: 0.8rem 1rem;
    }
    
    .announcement-popup-header h3 {
        font-size: 1rem;
    }
    
    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .announcement-popup-body {
        padding: 1rem;
        max-height: 45vh;
    }
    
    .announcement-popup-footer {
        padding: 1rem;
    }
    
    .announcement-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .announcement-content {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .announcement-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-card i {
        font-size: 2.5rem;
    }
    
    .product-card-body {
        padding: 1.5rem;
    }
    
    .sactobee-content {
        padding: 2rem 1.5rem;
    }
    
    .sactobee-item {
        padding: 1.5rem;
    }
    
    .announcement-popup {
        padding: 0.25rem;
    }
    
    .announcement-popup-content {
        width: 98%;
        max-height: 90vh;
        border-radius: 10px;
        margin: 0.5rem;
    }
    
    .announcement-popup-header {
        padding: 0.6rem 0.8rem;
    }
    
    .announcement-popup-header h3 {
        font-size: 0.95rem;
        gap: 0.3rem;
    }
    
    .close-btn {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .announcement-popup-body {
        padding: 0.8rem;
        max-height: 50vh;
    }
    
    .announcement-popup-footer {
        padding: 0.8rem;
    }
    
    .announcement-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .announcement-content {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    .announcement-date {
        font-size: 0.75rem;
    }
    
    .btn-hero {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Extra small devices (phones in portrait) */
@media (max-width: 400px) {
    .announcement-popup-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 8px;
        margin: 0;
    }
    
    .announcement-popup-header {
        padding: 0.5rem 0.8rem;
    }
    
    .announcement-popup-header h3 {
        font-size: 0.9rem;
    }
    
    .close-btn {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .announcement-popup-body {
        padding: 0.6rem;
        max-height: 55vh;
    }
    
    .announcement-popup-footer {
        padding: 0.6rem;
    }
    
    .announcement-title {
        font-size: 0.95rem;
    }
    
    .announcement-content {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .announcement-date {
        font-size: 0.7rem;
    }
    
    .btn-hero {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .announcement-popup-content {
        max-height: 70vh;
    }
    
    .announcement-popup-body {
        max-height: 35vh;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Dark mode toggle button in navbar */
.dark-mode-nav-toggle {
    cursor: pointer !important;
    padding: 8px 12px !important;
    border-radius: 50% !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(251, 191, 36, 0.1) !important;
    border: 2px solid #fbbf24 !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 5px !important;
}

.dark-mode-nav-toggle:hover {
    background: rgba(251, 191, 36, 0.2) !important;
    transform: scale(1.1) !important;
}

.dark-mode-nav-toggle i {
    font-size: 1.1rem !important;
    color: #fbbf24 !important;
    transition: var(--transition) !important;
}

body.dark-mode .dark-mode-nav-toggle {
    background: rgba(251, 191, 36, 0.1) !important;
    border-color: #fbbf24 !important;
}

body.dark-mode .dark-mode-nav-toggle:hover {
    background: rgba(251, 191, 36, 0.2) !important;
}

body.dark-mode .dark-mode-nav-toggle i {
    color: #fbbf24 !important;
}
