/* Large Screens (max-width: 1399px) */
@media (max-width: 1399px) {
    /* Login */
    .form_page .form_block .shapes img:nth-child(2) {
        display: none;
    }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    .featured-item.style-1 {
        padding: 33px 60px 31px 20px;
    }
    .user-profile-card {
        position: sticky;
        top: 2rem;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 991px) {
    .featured-item.style-1 {
        padding: 33px 80px 31px 40px;
    }
    .about-header {
        padding: 60px 0;
    }

    .about-header-content h1 {
        font-size: 36px;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .statistics-list {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        padding: 0;
    } /* Navbar */
    #navbar {
        padding: 15px 0;
    }

    /* Header Sections */
    .founder-header,
    .about-header {
        padding: 60px 0;
    }

    .founder-header-content h1,
    .about-header-content h1 {
        font-size: 36px;
    }

    .founder-header-content .lead,
    .about-header-content .lead {
        font-size: 18px;
    }

    /* Content Sections */
    .founder-content-section,
    .about-content-section {
        padding: 60px 0;
    }

    .founder-main-content h2,
    .about-main-content h2 {
        font-size: 28px;
    }

    /* Grids */
    .achievements-grid,
    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Sidebar */
    .founder-sidebar,
    .about-sidebar {
        margin-top: 40px;
    }

    /* Statistics */
    .statistics-section .stat-item {
        margin-bottom: 30px;
    }

    /* Features */
    .featured-item.style-1 {
        padding: 25px 60px 25px 30px;
    }

    /* Search Form */
    .search-form input[type="search"] {
        height: 50px;
        font-size: 16px;
    }
    .services-list {
        margin-top: 30px;
    }

    .service-item {
        margin-bottom: 20px;
    }

    .service-item:last-child {
        margin-bottom: 0;
    }
    .founder-header {
        padding: 60px 0;
    }

    .founder-header-content h1 {
        font-size: 36px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
    .founder-header-content h1,
    .about-header-content h1 {
        font-size: 42px;
    }

    .achievements-grid,
    .objectives-grid {
        gap: 20px;
    }
    /* Login */
    .form_page {
        background: #fefcfb;
    }
    .footer-about,
    .footer-links,
    .footer-newsletter {
        text-align: center;
    }

    .footer-links h4::after,
    .footer-newsletter h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-links ul li a:hover {
        transform: translateX(8px);
    }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 767px) {
    /* Navbar */
    /* #navbar .navbar-brand img {
        width: 6rem;
    } */

    /* Header Sections */
    .founder-header-content h1,
    .about-header-content h1 {
        font-size: 32px;
    }

    .founder-header-content .lead,
    .about-header-content .lead {
        font-size: 16px;
    }

    /* Content */
    .founder-main-content p,
    .about-main-content p {
        font-size: 16px;
    }

    .founder-list li,
    .about-list li {
        font-size: 16px;
    }

    /* Features */
    .featured-item.style-1 {
        padding: 20px 50px 20px 25px;
    }

    .featured-item.style-1 .featured-title h5 {
        font-size: 18px;
    }

    /* Footer */
    .footer-section {
        padding: 60px 0 0;
    }

    .footer-about,
    .footer-links,
    .footer-newsletter {
        text-align: center;
        margin-bottom: 40px;
    }

    .social-links {
        justify-content: center;
    }
    .fixed-content .search-form input[type="search"] {
        padding-left: 40px;
    }
    .featured-item.style-1 {
        padding: 33px 20px 20px 20px;
        margin-bottom: 20px;
    }
    #DropMenu-Profile .dropdown-toggle::after {
        display: none;
    }
    .founder-header {
        padding: 40px 0;
    }

    .founder-header-content h1 {
        font-size: 28px;
    }

    .founder-header-content .lead {
        font-size: 16px;
    }

    .founder-main-content h2 {
        font-size: 24px;
    }

    .founder-main-content p {
        font-size: 16px;
    }
    .floating-elements {
        display: none;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .stat-item {
        margin-bottom: 20px;
    }

    .contact-item {
        margin-bottom: 15px;
    }

    .events {
        padding: 40px 0;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .event-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .events .countdown {
        gap: 10px;
    }

    .events .countdown-item {
        min-width: 60px;
        padding: 8px;
    }

    .events .countdown-item span {
        font-size: 1.5rem;
    }
    .about-header {
        padding: 40px 0;
    }

    .about-header-content h1 {
        font-size: 28px;
    }

    .about-header-content .lead {
        font-size: 16px;
    }

    .about-main-content h2 {
        font-size: 24px;
    }

    .about-main-content p {
        font-size: 16px;
    }
    .accordion-button {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .accordion-content {
        padding: 0 20px;
    }

    .blog-card {
        margin-bottom: 30px;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }
    .project-card {
        margin-bottom: 20px;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }
    .team-hero-section {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .team-member-details {
        padding: 20px;
    }

    .member-info h2 {
        font-size: 2rem;
    }

    .member-info .position {
        font-size: 1.1rem;
    }

    .member-bio p {
        font-size: 1rem;
    }

    .member-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .member-expertise h3,
    .member-education h3 {
        font-size: 1.3rem;
    }

    .member-expertise ul li,
    .member-education ul li {
        font-size: 1rem;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    /* Navbar */
    #navbar {
        padding: 10px 0;
    }
    #navbar .navbar-brand img {
        width: 3rem;
    }
    /* Header Sections */
    .founder-header,
    .about-header {
        padding: 40px 0;
    }

    .founder-header-content h1,
    .about-header-content h1 {
        font-size: 28px;
    }

    /* Search Form */
    .search-form input[type="search"] {
        height: 45px;
        font-size: 14px;
        padding: 15px 15px 15px 70px;
    }

    .search-form .search-submit {
        width: 60px;
        font-size: 14px;
    }

    /* Features */
    .featured-item.style-1 {
        padding: 20px;
    }

    .featured-item.style-1 .featured-icon {
        margin-right: -20px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 25px;
    }

    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 15px;
        margin-left: 0;
    }

    /* Login */
    .form_page .form_block {
        margin-top: 64px;
    }
    .form_page .form_block .text_block .or::after,
    .form_page .form_block .text_block .or::before {
        top: 12px;
    }
    .form_page .form_block .text_block .bottom-row {
        justify-content: center;
    }
    .form_page .form_block .shapes img:nth-child(1) {
        display: none;
    }
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-item {
        padding: 0.5rem 0;
    }
}

@media (max-width: 500px) {
    .language-switcher {
        flex-direction: column;
        gap: 8px;
    }
    .user-details button#profile-tab{
        padding: 5px;
    }
}

@media (max-width: 400px) {
    #navbar .navbar-toggler {
        padding: 5px;
    }
    #navbar .fixed-content {
        margin-left: 8px;
        margin-right: 8px;
    }
    #navbar {
        padding: 0;
    }
    #navbar .navbar-brand img {
        width: 2.5rem;
    }
    .fixed-content .search-form input[type="search"] {
        height: 45px;
    }
    .fixed-content .btn-submit {
        height: 100%;
    }
    #navbar .account-select a {
        padding: 5px;
    }
    .donation-form {
        padding: 18px !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer-section,
    .scroll-top {
        display: none;
    }

    body {
        background: white;
        font-size: 12pt;
    }

    .founder-header,
    .about-header {
        background: none;
        color: black;
        margin-top: 0;
        padding: 20px 0;
    }

    .founder-image,
    .about-image {
        page-break-inside: avoid;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}


@media print {
    .user-details {
        padding: 0;
        background: none;
    }

    .user-profile-card,
    .user-settings-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .btn,
    .change-photo-btn {
        display: none;
    }
}