/* ==========================================================================
   Üründül Group - Universal Stylesheet
   ========================================================================== */

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-repeat: repeat;
}

/* Default background for most pages */
body {
    background-image: url('images/urundulgroupmain.jpg');
}

/* Specific background for tarihce and group pages */
body.tarihce-page,
body.group-page {
    background-image: url('images/urundulgroup.jpg');
}

/* Typography */
h1 {
    font-family: 'Average Sans', sans-serif;
    font-size: 18px;
    color: #43a3c9;
    font-weight: normal;
    margin: 0 0 10px 0;
}

p {
    padding: 5px;
    line-height: 25px;
    margin: 0 25px 8px 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #3B3B3B;
    text-align: justify;
}

strong {
    font-weight: 600;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

/* Header section */
#header {
    position: relative;
    margin: 0 auto;
    width: 1215px;
    height: 108px;
    background-image: url('images/backwrapper.png');
}

/* Main content area */
#content {
    position: relative;
    margin: 11px auto 0;
    width: 1195px;
    height: 606px;
    background-image: url('images/backrowa.png');
    background-repeat: no-repeat;
    z-index: 1;
}

/* Taller content for specific pages */
#content.tall-content {
    height: 1242px;
}

/* Medium height content (for board page) */
#content.medium-content {
    height: 712px;
}

/* Footer section */
#footer {
    position: relative;
    margin: 11px auto 0;
    width: 1195px;
    height: 35px;
    text-align: center;
    padding-top: 8px;
}

/* Background base element */
#bottombase {
    position: absolute;
    bottom: -457px;
    left: 0;
    width: 1205px;
    z-index: 0;
    background-image: url('images/backrowabase.png');
    background-repeat: no-repeat;
}

/* Taller background for specific pages */
#bottombase.tall-base {
    bottom: auto;
    top: 1087px;
}

/* Medium background for board page */
#bottombase.medium-base {
    bottom: auto;
    top: 598px;
}

/* ==========================================================================
   Navigation & Logo
   ========================================================================== */

/* Language switcher */
#turkish {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1001;
}

#turkish img {
    border: none;
    display: block;
}

/* Main logo */
#logo {
    position: absolute;
    left: 8px;
    top: 22px;
}

#logo img {
    border: none;
    display: block;
}

/* Navigation menu container */
#main-nav {
    position: absolute;
    left: 449px;
    top: 74px;
    display: flex;
    align-items: center;
}

#main-nav img {
    border: none;
    display: block;
}

#main-nav .nav-item {
    display: inline-block;
    line-height: 0;
}

#main-nav .nav-item.active img {
    cursor: default;
}

#main-nav .nav-spacer {
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

/* Header image */
#headimage {
    position: absolute;
    left: 8px;
    top: 20px;
    width: 1179px;
    height: 157px;
    z-index: 2;
}

#headimage img {
    display: block;
}

/* Bottom logo */
#bottomlogo {
    position: absolute;
    left: 15px;
    top: 502px;
    width: 1104px;
    height: 45px;
    z-index: 10;
}

#bottomlogo img {
    display: block;
}

/* Company History Section (Left) */
#solbir1 {
    position: absolute;
    left: 22px;
    top: 200px;
    width: 250px;
    z-index: 2;
}

/* Energy Section (Center-Left) */
#solbir2 {
    position: absolute;
    left: 296px;
    top: 200px;
    width: 300px;
    z-index: 2;
}

/* Social Responsibility Section (Center-Right) */
#solbir3 {
    position: absolute;
    left: 623px;
    top: 200px;
    width: 278px;
    z-index: 2;
}

/* Image Rotator Section (Right) */
#solbir4 {
    position: absolute;
    left: 935px;
    top: 222px;
    width: 240px;
    z-index: 2;
}


/* Vertical dividers between sections */
#solbirdot,
#solbirdot2,
#solbirdot3 {
    position: absolute;
    width: 8px;
    z-index: 2;
}

#solbirdot {
    left: 279px;
    top: 215px;
}

#solbirdot2 {
    left: 605px;
    top: 215px;
}

#solbirdot3 {
    left: 916px;
    top: 215px;
}

#solbirdot img,
#solbirdot2 img,
#solbirdot3 img {
    display: block;
}

/* ==========================================================================
   Sidebar Navigation (for tarihce and similar pages)
   ========================================================================== */

#sidebar-nav {
    position: absolute;
    left: 12px;
    top: 180px;
    width: 268px;
    z-index: 2;
}

.sidebar-header img {
    display: block;
}

.sidebar-divider {
    margin: 0;
}

.sidebar-divider img {
    display: block;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    display: block;
    line-height: 0;
}

.sidebar-item img {
    display: block;
    border: none;
}

.sidebar-item.active {
    cursor: default;
}

/* Main Content Area (for pages with sidebar) */
#main-content {
    position: absolute;
    left: 296px;
    top: 190px;
    width: 884px;
    z-index: 2;
}

.content-header {
    margin-bottom: 20px;
}

.content-header h1 {
    margin-bottom: 6px;
}

/* Timeline Image */
#timeline {
    float: right;
    margin-top: 38px;
    margin-left: 20px;
}

#timeline img {
    display: block;
}

/* Text Content */
.content-text {
    max-width: 487px;
}

/* ==========================================================================
   Section Components
   ========================================================================== */

.section-header {
    margin-bottom: 15px;
}

.section-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: #3B3B3B;
    line-height: 1.6;
}

.section-image {
    text-align: center;
    margin-top: 25px;
}

.section-image img {
    display: inline-block;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
}

.content-text {
    margin-top: 10px;
    font-size: 11px;
}

.content-link {
    margin-top: 10px;
}

/* ==========================================================================
   Lists
   ========================================================================== */

/* Business Sectors List */
.business-sectors {
    list-style: none;
    padding: 0;
    margin: 20px 0 20px 20px;
}

.business-sectors li {
    background: url('images/urundulbullet.png') no-repeat top left;
    padding-left: 25px;
    padding-top: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #3B3B3B;
    line-height: 1.6;
}

/* Sidebar Submenu */
.sidebar-submenu-wrapper {
    display: block;
    position: relative;
}

.sidebar-submenu {
    list-style: none;
    padding: 5px 10px 10px 10px;
    margin: 0;
    width: 200px;
    background: transparent;
}

.sidebar-submenu li {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 12px;
    line-height: 140%;
    margin: 0 0 6px 0;
    padding-left: 10px;
}

.sidebar-submenu a {
    color: #5985b1;
    text-decoration: none;
}

.sidebar-submenu a:hover {
    text-decoration: underline;
}

/* Chairman's Message Section */
.chairman-message {
    position: relative;
    border: 1px solid #43A3C9;
    padding: 10px;
    margin-top: 10px;
}

.message-image {
    float: left;
    margin: 10px 20px 10px 10px;
}

.message-content {
    overflow: hidden;
}

.message-content p {
    margin: 0 0 8px 0;
    padding: 5px;
    line-height: 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #3B3B3B;
    text-align: justify;
}

.signature {
    margin-top: 15px;
}

/* Book Content Section */
.book-content {
    position: relative;
    margin-top: 10px;
}

.book-image {
    float: left;
    margin: 0 20px 20px 0;
}

.book-text {
    overflow: hidden;
}

.book-text p {
    margin: 0 0 15px 0;
    padding: 5px;
    line-height: 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #3B3B3B;
    text-align: justify;
}

.book-link {
    color: #43a3c9;
    text-decoration: none;
    word-break: break-all;
}

.book-link:hover {
    text-decoration: underline;
}

/* Board Members Layout */
.board-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.board-photo {
    flex-shrink: 0;
}

.board-photo img {
    display: block;
}

.board-profiles {
    flex-shrink: 0;
    width: 240px;
    flex: 0 0 240px;
}

.board-rotator {
    width: 240px;
    height: 360px;
}

/* Biography Layout */
.bio-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.bio-text {
    flex: 1;
}

.bio-name {
    font-family: 'Average Sans', sans-serif;
    font-size: 18px;
    color: #43a3c9;
    font-weight: normal;
    margin: 0 0 5px 0;
}

.bio-title {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
}

.bio-text p {
    margin: 0 0 15px 0;
    padding: 5px;
    line-height: 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #3B3B3B;
    text-align: justify;
}

.bio-photo {
    flex-shrink: 0;
}

.bio-photo img {
    display: block;
}

/* Sector Pages Styling */
.sector-subtitle {
    color: #828282;
    font-weight: normal;
}

.sector-content {
    margin-top: 20px;
}

.sector-content p {
    margin: 0 0 15px 0;
    padding: 5px;
    line-height: 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #3B3B3B;
    text-align: justify;
}

.energy-section {
    margin-top: 20px;
}

.energy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.energy-list li {
    background: url('images/urundulbullet.png') no-repeat top left;
    padding-left: 15px;
    margin-bottom: 20px;
}

.energy-list p {
    margin: 0;
    padding: 5px;
    line-height: 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #3B3B3B;
    text-align: justify;
}

.energy-logo {
    text-align: center;
    margin: 30px 0;
}

.energy-logo img {
    display: inline-block;
}

/* Construction/EPC Sections */
.construction-section {
    border-top: 1px dotted #ccc;
    padding-top: 20px;
    margin-top: 20px;
}

.section-heading {
    font-family: 'Average Sans', sans-serif;
    font-size: 18px;
    color: #43a3c9;
    font-weight: normal;
    margin: 0 0 15px 0;
}

.construction-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.construction-text {
    flex: 1;
}

.construction-text p {
    margin: 0 0 15px 0;
    padding: 5px;
    line-height: 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #3B3B3B;
    text-align: justify;
}

.construction-image {
    flex-shrink: 0;
}

.construction-image img {
    display: block;
}

.construction-images {
    flex-shrink: 0;
}

.construction-images img {
    display: block;
    margin-bottom: 15px;
}

.image-caption {
    font-family: Calibri, sans-serif;
    font-size: 12px;
    color: #666;
    margin: 0 0 10px 0;
    padding: 0;
    text-align: left;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

.text-gray {
    color: #808080;
}

.link-teal {
    color: #296F8B;
    text-decoration: none;
}

.link-teal:hover {
    text-decoration: underline;
}

.link-purple {
    color: #56628B;
    text-decoration: none;
}

.link-purple:hover {
    text-decoration: underline;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.no-sidebar-content {
    width: 100%;
    padding: 180px 40px 40px 40px;
    /* Top padding to clear header image */
}

.contact-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
    /* Center items vertically */
}

.contact-map {
    flex: 2;
    /* Bigger map */
    min-height: 400px;
    /* Taller map */
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border: 1px solid #ddd;
}

.map-placeholder {
    text-align: center;
}

.contact-info {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 4px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h3 {
    color: #43a3c9;
    font-family: 'Average Sans', sans-serif;
    font-size: 16px;
    margin: 0 0 5px 0;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

.contact-item p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: normal;
}

.contact-link {
    color: #333;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
    color: #43a3c9;
}

/* Contact Form Styles */
.contact-form-container {
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #43a3c9;
    font-family: 'Average Sans', sans-serif;
    font-size: 20px;
    margin: 0 0 20px 0;
    font-weight: normal;
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #43a3c9;
    outline: none;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #43a3c9;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Average Sans', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #3688a8;
}

/* ==========================================================================
   Kindergarten Gallery & Description
   ========================================================================== */

.kindergarten-gallery {
    margin-bottom: 30px;
}

.kindergarten-description {
    margin-top: 20px;
}

.kindergarten-description img {
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
}

/* ==========================================================================
   Image Rotator Component
   ========================================================================== */

.image-rotator {
    width: 100%;
    max-width: 880px;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.rotator-screen {
    width: 100%;
    height: 308px;
    position: relative;
    overflow: hidden;
}

.rotator-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.rotator-image.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.rotator-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 10px;
    border-radius: 4px;
    z-index: 10;
}

.rotator-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
    color: #333;
    font-weight: bold;
}

.rotator-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.rotator-btn:active {
    transform: scale(0.95);
}

.rotator-indicators {
    display: flex;
    gap: 5px;
    align-items: center;
}

.indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: rgba(255, 255, 255, 1);
    width: 12px;
    height: 12px;
}