* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none !important;
    /* Removes underline */
    color: inherit !important;
    /* Keeps text color same as parent */
}

a:hover {
    color: inherit !important;
    /* Prevents color change on hover */
}

/* Navbar Container */
header.navbar-custom {
    width: 100;
    background-color: #5777AA !important;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo Styling */
.navbar-logo {
    max-height: 60px;
    width: auto;
    margin-right: 10px;
}


/* Text Styling */
.navbar-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

.navbar-text p {
    margin: 0;
    padding: 2px;
    line-height: 1.2;
    color: white;
}

.brand-name {
    font-weight: bold;
    font-size: 1.25rem;
}

.brand-description {
    font-size: 0.9rem;
    color: white;
}

/* Profile Section Styling */
#profile {
    background: linear-gradient(135deg, #f0f4ff, #e8efff);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Profile Card */
.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: space-between;
}

.profile-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Profile Image Wrapper */
.profile-img-wrapper {
    flex: 0 0 300px;
    overflow: hidden;
    border-radius: 12px;
}

.profile-img-wrapper1 {
    flex: 0 0 300px;
    overflow: hidden;
    border-radius: 12px;
}

.profile-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Text Content Styling */
.text-content {
    flex: 1;
    color: #333;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.candidate-info {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #555;
}

.candidate-info a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.candidate-info a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.vision {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Video Section Styling */
#video {
    background: #f8f9fa;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.video-section {
    text-align: center;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    flex: 1 1 48%; /* Each video takes 48% of the width */
    max-width: 600px;
}

.video-wrapper:hover {
    transform: scale(1.02);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-indent: -9999px;
    background: transparent;
    transition: background-color 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive Styling */
@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
    }

    .video-wrapper {
        flex: 1 1 100%; /* Full width on smaller screens */
    }
}


/* Base styling for the section heading */
#about-candidate h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

/* Horizontal Scrolling Grid */
.about-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Momentum scrolling on iOS */
    justify-content: flex-start;
    /* Start at the very left */
    padding: 0 10px;
    /* Optional horizontal padding */
    margin: 0;
    /* Remove default margins if any */
}

/* Hide scrollbar in WebKit browsers */
.about-grid::-webkit-scrollbar {
    display: none;
}

/* Individual Items */
.about-item {
    flex: 0 0 auto;
    /* Prevent items from shrinking */
    width: 150px;
    /* Set a fixed width (adjust as needed) */
    margin-right: 10px;
    text-align: center;
}

/* Image Styling */
.about-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-item img:hover {
    transform: scale(1.05);
}

/* Item Title */
.about-item h3 {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #555;
}

/* Campaign Section */
.campaign-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Campaign Card Container */
.campaign-card {
    text-align: center;
    padding: 1rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.campaign-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Bootstrap Icon Styling */
.campaign-icon {
    font-size: 4rem;
    color: #007bff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.campaign-icon:hover {
    transform: scale(1.1);
    color: #0056b3;
}

/* Card Title Styling */
.image-title {
    font-size: 1rem;
    color: #555;
    margin-top: 0.5rem;
}

/* Remove link underlines */
.campaign-card a {
    text-decoration: none;
}

.election-essentials-container1 {
    background-color: #b7cef0;
    border-radius: 20px;
}

.election-essentials-container2 {
    background-color: #f5c194;
    border-radius: 20px;
}

.election-essentials-container3 {
    background-color: #aef7c6;
    border-radius: 20px;
}

.election-essentials-container4 {
    background-color: #f0b7b7;
    border-radius: 20px;
}

.top-container {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 20px;
    /* Space between images */
}

.image-item {
    text-align: center;
}

/* Default sizes for desktop */
.top-small-img img {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.top-center-img img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.middle-container {
    text-align: center;
    padding: 40px;
}

.middle-heading {
    font-size: 28px;
    font-weight: bold;
}

.bottom-container {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 20px;
    /* Space between images */
}

.bottom-small-img img {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.top-container .top-small-img {
    flex: 0 0 auto;
    flex-wrap: wrap;
    max-width: 120px;
}

/* Image Title */
.image-title {
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

/* Party Highlights */
#party-highlights h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Party Card Styling */
.party-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.party-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Image Styling */
.party-image {
    width: 100%;
    height: 150px;
    /* Fixed height for uniformity */
    object-fit: cover;
    /* Crop images to fill container */
    border-radius: 8px;
}

/* Card Title Styling */
.party-title {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #555;
    text-align: center;
}

/* Social Icons Container */
.social-icons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    text-align: center;
}

/* Social Icon Styling */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 1.5rem;
    line-height: 1;
    /* ensures the icon is vertically centered */
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.social-icon i {
    color: inherit;
    /* Ensures icon inherits parent's color */
    transition: color 0.3s ease;
}

/* Hover Effect */
.social-icon:hover {
    background: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.social-icon:hover i {
    color: #fff !important;
    /* Force icon color to white on hover */
}


 .gelupu-para {
    text-align: center;
    background-color: #aef7c6;
    color: black;
    font-size: 24px;
    border-radius: 24px;
    padding: 8px;
 }
/* for language change in header*/
      .language-selector {
        position: relative;
        display: inline-block;
        margin-left: auto;
      }

      .language-btn {
        background: white;
        color: black;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 5px;
      }

      .language-options {
        display: none;
        position: absolute;
        background: white;
        border: 1px solid #ccc;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100px;
        text-align: left;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
      }

      .language-options ul {
        padding: 0;
        margin: 0;
      }

      .language-options li {
        padding: 5px;
        cursor: pointer;
        list-style: none;
      }

      .language-options li:hover {
        background: #f1f1f1;
      }
      

    /* footer */
    .image-section {
        text-align: center;
        margin-bottom: 20px;
        background-color: #5777AA;
    }
    
    .image-section img {
        max-width: 100px;
        height: auto;
        border-radius: 8px;  /* Optional: to add rounded corners to image */
    }

/* ✅ Responsive Image Size Adjustments */
@media (max-width: 768px) {

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-img-wrapper {
        width: 80%;
        margin: 0 auto;
    }

    .text-content h2 {
        font-size: 2rem;
    }

    .candidate-info {
        font-size: 1rem;
    }

    .vision {
        font-size: 0.95rem;
    }

    .top-small-img img {
        width: 90px;
        height: 90px;
    }

    .top-container .top-small-img {
        max-width: 100px;
    }

    .top-center-img img {
        width: 150px;
        height: 150px;
    }

    .middle-container {
        padding: 36px;
    }

    .middle-heading {
        font-size: 24px;
    }

    .bottom-small-img img {
        width: 110px;
        height: 110px;
    }

    .image-title {
        font-size: 12px;
    }
}



/* ✅ Further size reduction for smaller screens */
@media (max-width: 480px) {
    
    /* Item Title */
    .about-item h3 {
        font-size: 0.75rem;
    }
    
    .party-title {
        font-size: 0.8rem;
    }

    .about-grid {
        padding-left: 0.5rem;
        /* Adjust padding for smaller screens */
        padding-right: 0.5rem;
    }

    .about-item {
        min-width: 60px;
        /* Reduce item width for smaller screens */
        max-width: 80px;
    }

    .top-small-img img {
        width: 75px;
        height: 75px;
    }

    .top-container .top-small-img {
        max-width: 90px;
    }

    .top-center-img img {
        width: 120px;
        height: 120px;
    }

    .middle-container {
        padding: 24px;
    }

    .middle-heading {
        font-size: 20px;
    }

    .bottom-small-img img {
        width: 90px;
        height: 90px;
    }

    .image-title {
        font-size: 10px;
    }
    
    .gelupu-para {
        font-size: 16px;
     }
}


