/* Base Styles */
:root {
    --primary-color: #1a76d2;
    --secondary-color: #0d47a1;
    --accent-color: #90caf9;
    --light-blue: #e3f2fd;
    --dark-text: #333;
    --light-text: #666;
    --white: #fff;
    --grey-light: #f5f5f5;
    --grey-medium: #e0e0e0;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
}

.grecaptcha-badge { 
    visibility: hidden; 
    display: none !important;
}

.required {
  color: #e32;
  font-weight: bold;
}

.optional {
  color: #666;
  font-size: 0.9em;
  font-style: italic;
}

.small-text {
  font-size: 0.85em;
  margin-top: -10px;
  margin-bottom: 15px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Language Toggle */
body[lang="en"] .en {
    display: block;
}

body[lang="en"] .gr {
    display: none;
}

body[lang="gr"] .en {
    display: none;
}

body[lang="gr"] .gr {
    display: block;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-text);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.language-toggle {
    display: flex;
    align-items: center;
}

.language-toggle button {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    margin-left: 0.5rem;
    border-radius: 5px;
    transition: var(--transition);
}

.language-toggle button.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-text);
}

/* Added styles for mobile menu */
.nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.nav-links.show li {
    margin: 1rem 0;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    background-color: var(--light-blue);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Desktop/Mobile name display control */
.mobile-name {
    display: none;
}

.desktop-name {
    display: block;
}

.mobile-image {
    display: none;
}

.desktop-image {
    display: block;
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 300px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    border: 5px solid var(--white);
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Doctor Bullets Styling */
.doctor-bullets {
    margin-bottom: 2rem;
    text-align: left;
}

.doctor-bullets ul {
    list-style: none;
}

.doctor-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 1.05rem;
    color: var(--light-text);
}

.doctor-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Expertise Section */
.expertise {
    background-color: var(--white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.expertise-item {
    background-color: var(--grey-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.expertise-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.expertise-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.expertise-item p {
    color: var(--light-text);
}

/* About Section */
.about {
    background-color: var(--grey-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.credential-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.credential-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.credential-item ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.credential-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Publications Section */
.publications {
    background-color: var(--white);
}

.publications-content {
    max-width: 900px;
    margin: 0 auto;
}

.publication-list {
    list-style: none;
}

.publication-item {
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--grey-medium);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-details p {
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

.journal-name {
    font-style: italic;
}

.show-more-container {
    text-align: center;
    margin: 2rem 0;
}

.hidden {
    display: none;
}

/* Tab functionality for old publications section - keeping for reference */
.publications-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.publications .btn {
    display: block;
    margin: 2rem auto 0;
    max-width: 350px;
    text-align: center;
}

/* Books Section */
.books {
    background-color: var(--grey-light);
    padding: 5rem 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: 2.5rem;
    justify-content: center;
}

.book-card-wrapper {
    position: relative;
    width: 276px;
    margin: 0 auto;
}

.book-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

body[lang="en"] .book-card-link.gr {
    display: none;
}

body[lang="gr"] .book-card-link.en {
    display: none;
}

.book-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.book-card-wrapper:hover .book-card {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.book-cover {
    width: 100%;
    height: 400px;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-placeholder {
    font-size: 4rem;
    color: var(--primary-color);
}

.book-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.book-info p {
    margin-bottom: 0.8rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

.book-isbn {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    text-align: left;
    align-items: flex-start;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact-form {
    background-color: var(--grey-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--grey-medium);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 118, 210, 0.2);
}

.contact-form .btn {
    width: 100%;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    text-align: right;
    order: 2;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: 10px;
}

.footer-contact {
    text-align: left;
    order: 1;
}

.footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-contact p i {
    margin-right: 0.8rem;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 1050px) {
    /* Switch name displays */
    .mobile-name {
        display: block;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .desktop-name {
        display: none;
    }
    
    /* Show mobile image instead of desktop image */
    .mobile-image {
        display: block;
        margin: 0 auto 2rem;
        text-align: center;
    }
    
    .desktop-image {
        display: none;
    }
    
    /* Hero section reorganization */
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }
    
    .hero-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .doctor-bullets {
        max-width: 600px;
        margin: 0 auto 2rem;
    }
}

/* New media query to change about layout at 1100px */
@media (max-width: 1100px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 0rem;
    }
    
    .about-text {
        margin-bottom: 2rem;
    }
    
    .credentials {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    header .container {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
    }
    
    .language-toggle {
        margin-right: 4rem;
        position: absolute;
        right: 0;
    }
    .contact-content {
        margin: 0 10%;
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1.5rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .tab-nav {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

 

    .publication-details p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }

    /* Added new media query for content margin adjustment */
    @media (max-width: 670px) {
        .container {
            padding: 0 10%;
        }
        
        /* Added single column layout for credentials */
        .credentials {
            grid-template-columns: 1fr;
        }
    }
}

@media (max-width: 650px) {
    .mobile-image img {
        max-width: 300px;
    }
}

/* Added new media query to handle layout issues around 540px */
@media (max-width: 600px) {
    .container {
        padding: 0 10%;  /* Maintained 10% padding here as well */
    }
    
    .mobile-image img {
        max-width: 80%;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .doctor-bullets {
        max-width: 100%;
        text-align: left;
    }
    
    .doctor-bullets li {
        font-size: 1rem;
    }
    
    .contact-content {
        margin: 0 5%;
    }
    
    /* Footer responsive adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 1rem;
        text-align: center;
        order: 1;
    }
    
    .footer-contact {
        text-align: center;
        order: 2;
    }
    
    .footer-contact h4 {
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

/* Added new media query for around 430px */
@media (max-width: 430px) {
    .container {
        padding: 0 10%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    

    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 10%;
    }
    .contact-content {
        margin: 0;

    }
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .doctor-bullets li {
        font-size: 0.95rem;
    }
    
    .book-card-wrapper {
        width: 100%;
        max-width: 240px;
    }
    
    .book-cover {
        height: 350px;
    }
    
    .book-info {
        padding: 1.2rem;
    }
    
    .book-info h3 {
        font-size: 1.2rem;
    }
    
    .book-info p {
        font-size: 0.9rem;
    }
    
    .language-toggle button {
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
    }

    .mobile-image img {
        max-width: 65%;
    }

    .mobile-name h1 {
        font-size: 2rem;
    }
    
    .mobile-name h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 350px) {
    .logo img {
        height: 40px;
    }
    
    .language-toggle button {
        padding: 0.2rem 0.3rem;
        font-size: 0.8rem;
    }
}