/*
Theme Name: ICT Minister Theme
Theme URI: https://ict.gov.bd
Author: Gemini
Author URI: https://deepmind.google/
Description: Fast-loading, responsive WordPress theme for the Ministry of ICT Division.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready
Text Domain: ict-minister-theme
*/

/*
 * Note: CSS generated by Gemini based on the user's mockup.
 * FontAwesome and Google Fonts are enqueued separately in functions.php.
 */

:root {
    --primary: #006a4e;
    /* Bangladesh Green */
    --secondary: #f42a41;
    /* Bangladesh Red */
    --accent: #2563eb;
    /* Tech Blue */
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.7);
    --gradient-primary: linear-gradient(135deg, #006a4e 0%, #059669 100%);
    --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    width: 100%;
}

/* Utils */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section-padding {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

.badge {
    background: rgba(0, 106, 78, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Header */
/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 0.5rem 0;
    flex-wrap: wrap;
    /* Allow wrapping */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
}

.logo-icon {
    font-size: 2rem;
    color: var(--secondary);
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.logo-text span:last-child {
    font-size: 1.25rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .logo-text span:first-child {
        font-size: 0.9rem;
    }

    .logo-text span:last-child {
        font-size: 1.5rem;
    }
}

/* Mobile Toggle */
.mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
}

@media (min-width: 900px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Nav Links - Desktop */
.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu Content */
.mobile-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
}

.mobile-menu.active {
    display: flex;
    /* Collapsed state controlled by JS */
}

.mobile-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid #f8fafc;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 106, 78, 0.3);
}

.btn-outline {
    background: white;
    color: var(--dark) !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    padding-top: 130px;
    /* Increased for mobile header safety */
    padding-bottom: 3rem;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        text-align: left;
    }
}

.hero-text {
    text-align: center;
    z-index: 2;
}

@media (min-width: 900px) {
    .hero-text {
        text-align: left;
    }
}

.hero-text h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 1rem 0;
    color: var(--dark);
}

@media (min-width: 600px) {
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (min-width: 900px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

.hero-text h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, #006a4e 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (min-width: 600px) {
    .hero-text p {
        font-size: 1.2rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 900px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Minister Card */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.minister-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    max-width: 450px;
}

.minister-img-placeholder {
    width: 100%;
    height: auto;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minister-img-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

.minister-details {
    margin-top: 1.5rem;
    text-align: center;
}

.minister-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

@media (min-width: 600px) {
    .minister-details h3 {
        font-size: 1.5rem;
    }
}

.minister-details p {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

.service-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.75rem;
    transition: transform 0.5s;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    background: var(--primary);
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Slider (Recent Works) */
.slider-section {
    background: white;
}

.slider-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .slider-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.slider-header h2 {
    font-size: 2rem;
    margin-top: 0.5rem;
}

.slider-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Slider Scrollbar */
.slider-container::-webkit-scrollbar {
    height: 6px;
}

.slider-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.slider-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.slide-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

@media (min-width: 600px) {
    .slide-card {
        flex: 0 0 45%;
        scroll-snap-align: start;
    }
}

@media (min-width: 1024px) {
    .slide-card {
        flex: 0 0 30%;
    }
}

.slide-img {
    height: 180px;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    background-size: cover;
    background-position: center;
}

.slide-content {
    padding: 1.25rem;
}

.slide-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.slide-content h4 a {
    text-decoration: none;
    color: inherit;
}

.slide-content h4 a:hover {
    color: var(--primary);
}

/* Bio Section */
.bio-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .bio-grid {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
        align-items: center;
    }
}

.bio-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bio-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #cbd5e1;
}

/* Contact */
.connect-section {
    background: #f0fdf4;
}

.connect-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .connect-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.connect-form {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 600px) {
    .connect-form {
        padding: 2.5rem;
    }
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}



/* Footer */
.site-footer {
    background: #0f172a;
    /* Darker than var(--dark) */
    color: #94a3b8;
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr;
        gap: 4rem;
    }
}

.footer-col h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* About Col */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.about-col p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* Links Col */
.links-col ul,
.contact-col ul {
    list-style: none;
    padding: 0;
}

.links-col li {
    margin-bottom: 0.75rem;
}

.links-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.links-col a::before {
    content: '\f054';
    /* fa-chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: margin-left 0.3s;
}

.links-col a:hover {
    color: var(--primary);
}

.links-col a:hover::before {
    margin-left: 5px;
    color: var(--primary);
    opacity: 1;
}

/* Contact Col */
.contact-col li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.contact-col i {
    color: var(--primary);
    margin-top: 5px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: white;
}

.separator {
    color: #334155;
}

/* Volunteer Form Styles */
.volunteer-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* More professional shadow */
    max-width: 600px;
    margin: 1rem auto;
    /* Reduced top margin */
    border: 1px solid #f1f5f9;
    /* Subtle border */
    position: relative;
    /* Fix z-index stacking context if any */
}

/* Reverted Button Style (Green Gradient) */
.volunteer-form button.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 106, 78, 0.2);
    width: 100%;
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

.volunteer-form button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 106, 78, 0.3);
    background: linear-gradient(135deg, #047857 0%, var(--primary) 100%);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .volunteer-form-container {
        padding: 1.5rem;
        margin: 1rem;
        width: auto;
        /* Allow it to shrink */
        border-radius: 12px;
    }

    .volunteer-form .form-control {
        font-size: 16px;
        /* Prevent zoom on iOS */
        padding: 0.75rem;
    }
}