/* Mobile responsive CSS for all pages */

/* General responsive styles */
* {
    box-sizing: border-box;
}

body {
    padding-top: 80px;
    /* To account for fixed header */
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 40px 0;
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    font-size: 28px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #1dc44c;
}

/* Button styles */
.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #086924;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #055018;
    transform: translateY(-3px);
}

/* Social media banner */
.social-media-banner {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px 0 0 10px;
    z-index: 990;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    opacity: 1 !important;
}

.facebook {
    background: #1877f2 !important;
    color: white !important;
}

.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d) !important;
    color: white !important;
}

.zalo {
    background: #0068ff !important;
    color: white !important;
    font-size: 14px;
    font-weight: bold;
}

.youtube {
    background: #ff0000 !important;
    color: white !important;
}

.social-icon:hover {
    transform: translateX(-5px);
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
}

/* Home page styles */
.vision-content,
.sustainable-content,
.ecosystem-content,
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.vision-text,
.sustainable-text {
    flex: 1;
    min-width: 300px;
}

.vision-pillars,
.sustainable-images {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pillar-item {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pillar-icon {
    height: 180px;
    overflow: hidden;
}

.pillar-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ecosystem-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.ecosystem-item,
.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ecosystem-item-image,
.news-image {
    height: 180px;
    overflow: hidden;
}

.ecosystem-item-image img,
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ecosystem-item-content,
.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* News styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

/* About page styles */
.core-values,
.history-section,
.leadership-section {
    padding: 50px 0;
}

.values-list,
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.value-item,
.leader-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

/* Contact page styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

/* Investor page styles */
.stock-info,
.financial-highlights,
.reports-section {
    padding: 50px 0;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Ecosystem page styles */
.technology-section,
.telecom-section,
.education-section {
    padding: 50px 0;
}

.success-stories {
    padding: 50px 0;
    background: #f9f9f9;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Tablet Responsive Styles */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .vision-content,
    .sustainable-content {
        flex-direction: column;
    }

    .vision-text,
    .sustainable-text,
    .vision-pillars,
    .sustainable-images {
        flex: 100%;
        width: 100%;
    }

    .ecosystem-components,
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .pillar-icon,
    .ecosystem-item-image,
    .news-image {
        height: 160px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }

    section {
        padding: 30px 0;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section-header h2::after {
        width: 60px;
    }

    .vision-pillars,
    .sustainable-images {
        flex-direction: column;
    }

    .pillar-item {
        width: 100%;
        min-width: 100%;
    }

    .ecosystem-components,
    .news-grid,
    .values-list,
    .leadership-grid,
    .stories-grid,
    .financial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-media-banner {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        border-radius: 10px 10px 0 0;
    }

    .social-icon:hover {
        transform: translateY(-5px);
    }

    .contact-form {
        padding: 20px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .btn-secondary {
        padding: 8px 15px;
        font-size: 13px;
    }

    .pillar-icon {
        height: 150px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .social-media-banner {
        padding: 8px;
        gap: 8px;
    }
}